OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: fabrice on June 15, 2024, 05:59:07 PM

Title: API Interfaces Assignments
Post by: fabrice on June 15, 2024, 05:59:07 PM
Hi,

I am working on some scripts to automate my network management and I am trying to find the api calls for assigning new interfaces. In this case I am trying to assign my new wireguards through the API.

I looked through the documents and also inspected api calls by the web ui and it seems it dosent use an api call but a form submit.

Am I wrong in understanding that assigning new interfaces is currently not supported by the API? Or is it just documented in another section than https://docs.opnsense.org/development/api/core/interfaces.html ?

Thanks
Title: Re: API Interfaces Assignments
Post by: DengelFred on June 17, 2024, 04:49:16 PM
As far as I know, there is no API call for adding interfaces. Currently I modify the config.xml directly to add interface assignments.