Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Panorama API Rule HitCount S/N

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Panorama API Rule HitCount S/N

L0 Member

Hi Folks,

 

I need to run this api call against Panorama, to query security policies hit-count from a device-group. As we Have HA enabled, it is displaying the same security rule twice as a results for the Active and Passive Firewall.

 

I tried to add to the call <device-vsys>/devices/entry[@name='SN-ACTIVE-FW']</device-vsys>, but it does not accept it into the structure, there is no way to run the call below against a specific S/N that is the active Firewall?

 

 https:// {{host}}/api/?&type=op&cmd=<show><rule-hit-count><device-group><entry name='TEST-FW-DG'><pre-rulebase><entry name='security'><rules><rule-name><entry name='TEST-SEC-POLICY'/></rule-name></rules></entry></pre-rulebase></entry></device-group></rule-hit-count></show>&key={{key}} ​
0 REPLIES 0
  • 443 Views
  • 0 replies
  • 0 Likes
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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!