Not possible to list/update port alias via api?

Started by depeo, July 31, 2023, 11:41:05 PM

Previous topic - Next topic
Hello,

I want to list/update a port alias via the API but I just get this response:
# curl -s -k -u x:x https://172.21.0.1/api/firewall/alias_util/list/WEB
{"total":0,"rowCount":-1,"current":1,"rows":[]}


It should return port 80 and 443.

If I try to fetch a ip alias, it works fine:
# curl -s -k -u x:x https://172.21.0.1/api/firewall/alias_util/list/WAN_OUTGOING
{"total":8,"rowCount":-1,"current":1,"rows":[{"ip":"10.43.0.0\/24"},{"ip":"10.96.0.0\/24"},{"ip":"172.16.0.0\/16"},{"ip":"172.21.0.0\/23"},{"ip":"172.21.7.0\/24"},{"ip":"172.21.8.0\/24"},{"ip":"172.21.9.0\/24"},{"ip":"172.21.50.0\/23"}]}


Any ideas?

Ah ok, I need to use get/setItem instead of alias_util.