I need to generate a UAR for multiple users and wish to automate it.
I can script the creation of report, and I can use the API to schedule the report:
https://(firewallname)/api/?type=op&cmd=<schedule><uar-report><title>test3</title><user-group>tdc\palo alto networks test reporting</user-group></uar-report>&key=(key)
This comes back "Success" and provides a job ID. I check the tasks and confirm the job has status of "FIN" so it has completed successfully.
But I then cannot retrieve the report in PDF format. I found the documentation which states to do this: https://(firewallname)/api/?type=report&action=get&job-id=(jobid)&key=(key)
But it states "No such report".
Would love some help in finding out how I can leverate the API to run my multiple UAR's and either email them, or have them available somewhere on-box where I can retrieve them using tftp/scp etc.
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!