OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: tieske on March 23, 2025, 02:00:16 PM

Title: API getInterface
Post by: tieske on March 23, 2025, 02:00:16 PM
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?
Title: Re: API getInterface
Post by: patient0 on March 23, 2025, 02:43:52 PM
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'.