12-15-2015 11:37 AM - edited 12-15-2015 11:39 AM
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.
01-27-2016 01:46 PM
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:
11-03-2022 07:52 AM
I have a need to get the PA categories - I thought they would be from content, but the above list (from 2016) looks like what I'm getting today as well. The above include categories like "illegal-drugs", but the PA category is "abused-drugs". Is there another API call to get the PA categories, so I would have the newly added ones from content, like encrypted-dns?
11-06-2022 01:08 PM
Hi @pataylor and all,
This should work to get the predefined URL categories:
Hope that helps!
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 LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!