Panorama API Custom Report

Reply
L1 Bithead

Panorama API Custom Report

Trying to pull website statitics through a custom report via API, so that results can go into a database from an automation process.  The problem is that the report job only stays on the Panorama for about 20 minutes and the retrieval has to be done inside of that window before it disappears. The report is already scheduled to run daily through the gui, can we not just grab those results with the API, rather than having to re-run the report?  And is it normal for the report to only stay there for about 20 minutes?

 

We run this to create the job :

https://<panorma>/api/?type=report&async=yes&reporttype=custom&reportname=WebsiteStatistics&KEY=<api key>

We use this to retrieve the job:

https://<panorma>/api/?type=report&action=get&job-id=57249&KEY=<api key>


Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!