- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-06-2023 12:42 PM - edited 12-06-2023 12:47 PM
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}}
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!