API getInterface

Started by tieske, March 23, 2025, 02:00:16 PM

Previous topic - Next topic
I'm struggling a bit to get an API endpoint working on version 25.1.3:

http://192.168.10.1/api/interfaces/overview/getInterface?if=wan

It gives me "{"message":"failed"}", while interface wan exists. Am I missing something?

March 23, 2025, 02:43:52 PM #1 Last Edit: March 23, 2025, 02:53:01 PM by patient0
I looked at https://self-hosted.tools/p/opnsense-api-get-ip/ for help:

http://opnsense/api/interfaces/overview/getInterface/vtnet0

... in my case for WAN, or

http://opnsense/api/interfaces/overview/interfacesInfo

... to get a list of all the 'if'.
Deciso DEC740