I would like to know is there a command from the API where we can export all the Allowed Categories or List of All Categories in URL categories.
The issue is when trying /config/predefined/url-categories it only gives partial data which looks like only for alert and block category while the remaining categories are not listed. As the command says it is only for pre-define, anything for custom
category is not shown.
Any thoughts on this will be of much appreciated.
This will show all pre-defined as well as custom categories for a URL profile:
https://<firewall IP or URL>/api/?&type=config&action=get&xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/profiles/url-filtering/entry[@name='<URL profile name>']&key=<API key>
If you need a list of all available categories, you can use this instead:
https://<firewall IP or URL>/api/?&type=config&action=get&xpath=/config/predefined/url-categories
It spits out the following:
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!
The Live Community thanks you for your participation!