How can we check which category and URL list a specific URL belongs to?
Rest API provides a useful method to extract this information.
How to use Rest API:-
- Go to Settings/Tools/Rest API v2
- Select API Documentation
- Ensure there is a token which has:-
/api/v2/nsiq/urllookup
- Search or scroll down to /api/v2/nsiq/urllookup
- Click to try out the API
- Edit the text to select the URLs you want to check for category and URL list
- Click Execute
You will get a response back which will show whether the has succeeded or not, but also some info which might be useful for your API tool of choice
If you get an error, check your API token, and any brackets, or commas in the requested body above.
The response will show the categories (pre-defined & Custom) and URL lists
- To verify the categories are correct, check the tenant UI
If you need to modify the URL lists, check out:-
https://community.netskope.com/real-time-protection-key-policies-72/how-to-automate-url-list-updates-via-api-7167