I want to use the API to query URL (Brightcloud) categorisation. This is the command in the CLI:
pan1(active)> test url theguardian.com
theguardian.com news-and-media (Base db)
running the same check via the API browser:
<response status="error" code="400">
the firewall is on 6.0.1, and I think this worked via the API on PAN-OS 5. Other commands under the API "test" hierarchy are coming back unsupported also - perhaps the syntax has changed? (can't find anything in the API reference though).
Have you generated the key: http(s)://hostname/api/?type=keygen&user=username&password=password
PFB a helpful document for the same.
I'm testing through the API browser (ie the GUI) so the key is automatically generated (that's the API_TOKEN in the URL I pasted above). It doesn't work using a generated key either - we're already using the API for other functions that work fine.
Have you been able to resolve this? I'm also getting the "unsupported command" message when running operation commands with the API.
I'm running 6.0.4 on the firewall.
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!