Skip to main content

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

AD_4nXfkgFAJaMJMhwhtdhvz38FtFr1oSbIez-CN2W7VKJiqzKLng_4VzbdMqljQmbCScr--qyjUbjv3xUMbrNQYufRktUEdtaBstT0sZXy4_keRAgpIcBjzQr45XmQF6xd0sxgTOZjR?key=cKE7I7E0cHbjOkDX03rGgKAs

  • Ensure there is a token which has:-

 /api/v2/nsiq/urllookup

AD_4nXcSWUY0ptj-ID_ovl0DUFRUUoJ5LJmKdp581UJod9p1EDPspS9NmylSxICdzdWYa6jqsDqridTOJkDY7hrWM8v7RG8Q8fkOFpgK7x3gn1wnBdZ-NXJact-OmVPswdsvwRQXiIwQBg?key=cKE7I7E0cHbjOkDX03rGgKAs

  • Search or scroll down to /api/v2/nsiq/urllookup

AD_4nXdaQ5pfghiF97nx_zkov0-G-erzHObfcu_n7M440neGyEc9WfZmZbajH-5Cg2NlrlPFrXvhOpFyxjWyGIpF2RHJqmGh2GYz3_oyOje0ieDiuYISEO5fsa8SyTD6GEiPHuov24QM7g?key=cKE7I7E0cHbjOkDX03rGgKAs

  • Click to try out the API
    • Edit the text to select the URLs  you want to check for category and URL list
    • Click Execute

AD_4nXdJRug-Eskz5yM2vToJS1W-s4UIUgmyO6KPuynszRFWJY0Psg6NIYKqilO7mZaT7BfhfuRRXYlTcqoehlk2Px3MhYv9swvrMARnybMGNPW8O6Y36mw1lQESJfQb-SHaWeetp0Gldg?key=cKE7I7E0cHbjOkDX03rGgKAs

 

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

AD_4nXfqgR2baooZeHBTQ7xH8NkOv1Ddi69U37HSDfCeNKAHcKF1EcXNZBS1qN9-Ruce0PlFW80qR6mbfrBqiWp29JOkK4EP62m4Uo0qaFytz69QlZCmKz54ODRf_eyxmS_URuV3t0XB?key=cKE7I7E0cHbjOkDX03rGgKAs

 

  • To verify the categories are correct, check the tenant UI

AD_4nXfgqKwblmM5DyJHj4EgXv395hSEese-4nH1cj-Wo2zwUfHh_v72Xuy3uUsHetbaUH2bo_heMLXeRHEBpTUJRu4EKZVVfesdAa0q-fogOp3-jZFihAvt73wztHVln63R4RJCVCbK?key=cKE7I7E0cHbjOkDX03rGgKAs

 

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

 

Be the first to reply!

Reply