- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
Content translations are temporarily unavailable due to site maintenance. We apologize for any inconvenience. Visit our blog to learn more.
09-21-2016 05:17 AM
Hello,
I already know how to retrieve a custom report using XMP API, which use asynchroneous mode, by firstly getting the job ID corresponding to the report processing.
What I want to do is getting a scheduled custom report using XML API. I mean that I don't want the report to be generated on demand, but I just want to get the schedlued report (=custom report with "scheduled" checkbox enabled).
Indeed, from the WebUI, the schedulded custom report are automatically generated every night and directly available from the report menu, without the need to be generated on demand. I want to retrieve these custom reports directly using XML API.
Is there a way to achieve this ?
Regards,
Laurent
09-27-2016 03:30 PM - edited 09-27-2016 03:31 PM
This is the syntax to request the most recent custom report:
https://firewall/api/?type=report&reporttype=custom&reportname=custom_report_name&action=download&key=key
09-29-2016 12:54 AM
Hello,
Thanks for your help, but this is the same behavior (asynchroneous job) :
When I issue this request, I got a job ID and then the Panorma process the request and generate the custom report (I see the reportd process overloaded during dozen of minutes before the report is available).
I need to get the already generated custom report that is availlable from the Panorama WebUI when you specify "scheduled" in the customer report settings.
Regards,
09-29-2016 10:37 AM
I just tried this request and got back a full report without a Job ID.
09-30-2016 12:32 AM
Hello,
I confirm that using this request results in asynchronesous job request :
- <response status="success"> - <result> - <msg> <line>Report job enqueued with jobid 541</line> </msg> <job>541</job> </result> </response>
10-03-2016 11:52 AM
What PAN-OS version are you using? The reason for the difference in response is likely related to the version you have.
10-03-2016 11:29 PM
I'm running PanOS 6.1.12. but I have a device in a lab also I could try with a newer release.
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!