01-30-2018 11:27 AM
Howdy all. I'm trying to get started with some API work on my PAN instances in AWS. I walked through the Getting Started guide for 8.0 and I created a user, assigned an Admin Profile to it that had API access, and then generated a key. Seems pretty simple but no matter what I do, every request is coming back 403:
curl -k 'https://w.x.y.z//api/?type=op&cmd=<show><system><info></info></system></show>&key=LUFRPT0zTG5aOUEvbF...'
<response status = 'error' code = '403'><result><msg>Invalid credentials.</msg></result></response>
I've changed the password, I've recreated the user, i've redone the key after password changes. Nothing works. I have to be missing something simple. Can anyone provide me some guidance? I can't even figure out how to get to logfiles that would provide any debug output about why the user is getting rejected.
02-01-2018 10:36 AM
The name of the API key parameter is key, not api. So change the part preceding your key with &key= instead of &api=
02-05-2018 04:19 AM
silly me!
I was looking for mistake in any other places,
thank you!
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!