Skip to content

setup ha #17

Closed Answered by ansibleguy
itmwiw asked this question in Q&A
Discussion options

You must be logged in to vote

Greetings.
Yes - that seems to be the current state of the API implementation.

You can easily check the implementation using the Browser 'Developer Console'.
Log-in to your firewall, perform the action you would like to automate and check how the requests are performed.
In API-enabled parts the request will:

  • be sent to an URL starting with the '/api' location (most of the time)
  • use data in json format as request payloads
  • return data in json format as responses

In case of the interface management one can see that OPNSense V23.1.8 uses:

  • Interface settings
    • URL: interfaces.php?if=lan
    • Request: in form-format (many URL parameters)
    • Response: im HTML format
  • Interface assignment
    • URL: interf…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ansibleguy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants