How to pull Custom Reports using API

Reply
Highlighted
L0 Member

How to pull Custom Reports using API

Hi all,

I have created some Custom Reports by GUI, query: action allow & addr src=<IP_address>.

nguoiech_0-1603878899780.png

Now I am trying to pull those Custom Reports via API, but I cannot find documentation for this.

Can anyone please let me know how to pull created Custom Reports using API from the Panorama.

Thank you very much!

Regards,

Highlighted
L6 Presenter

@nguoiech 

 

You can try below API query.

 

/api/?type=report&async=yes&reporttype=custom&reportname=<Report-Name>

 

You can get all such syntax using https://<Gateway/Panorama_IP>/API



Mayur S.
Highlighted
L0 Member

@SutareMayur 

Thank you for reply.

I tried API query:

/api/?key={{api_key}}&type=report&async=yes&reporttype=custom&reportname=Daily-Report-User-Activity-10.16.224.0_19

but error appear: Illegal value for parameter &quot;reportname&quot; [Daily-Report-User-Activity-10.16.224.0_19].

error.png

 

How can I fix this?

Be regards,

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!