- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-12-2016 03:40 AM
Good morning,
I'm starting to use the API for exporting different reports from a remote server.
1) I've generated the API Key
2) I've checked if it runs in my browers without credentials
https://<myserver>/api/?type=config&action=show&key=mykey=&xpath=/config/devices/entry/vsys/entry/rulebase/security ant the result is an XML with the Security Rulebase.
3) If I try with curl or wget the xml result is the following <response status = 'error' code = '403'><result><msg>Invalid credentials.</msg></result></response>
Where can i find/ solve this issue?
kindly regards
12-12-2016 06:10 AM
Try using the following example with curl,
Make sure it doesn't include spaces. If that still gives you an error I'd suggest trying generating a new API key with a different username.
regards,
Gerardo.
12-12-2016 07:05 AM
Many thanks Gerardo.
It runs but I've to change the profile for these account. I'll check and give the details
regards
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!