Update Alias with multible Host entries

Started by cybernik, March 23, 2023, 04:03:21 PM

Previous topic - Next topic
I try to update the firewall alias rules with API but run into problems.
I can update a host entry in alias but cannot update multible hosts entries.
Where can I find some references to do this?
Maybe someone has already done such an update.

use browser dev-console to view api request payload when do similar update via gui?

Thx! That was a good hint!
I found no information in web about this.
For any one who run into the same problem:
To define multible hosts in an alias each IP Address has to be seperated by \n
See Examle:
{ "alias": { "name": "test", "content": "1.1.1.1\n2.2.2.2\n3.3.3.3", "enabled" : "1", "type" : "host"}}