OPNsense Forum

English Forums => General Discussion => Topic started by: GaardenZwerch on June 30, 2021, 11:57:48 AM

Title: [SOLVED] API flush alias
Post by: GaardenZwerch on June 30, 2021, 11:57:48 AM
Hi,
I can successfully use API calls to list the content and flush an alias,
but after a few seconds, the contents gets restored 'magically'.

After a flush, the /conf/config.xml doesn't reflect that the alias should be empty, whereas a 'list' API call returns
{"total":0,"rowCount":-1,"current":1,"rows":[]}

Am I doing this wrong?

Thanks in advance,
Frank
Title: [SOLVED] Re: API flush alias
Post by: GaardenZwerch on June 30, 2021, 01:09:37 PM
solved, thanks
https://docs.opnsense.org/manual/aliases.html (https://docs.opnsense.org/manual/aliases.html)