[PANDEVICE] HOW TO GET POLICY HIT COUNT
Hi all,There is a method to get hit count value (like rule.hit_count)?Thanks
Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.
Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.
Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.
Hi all,There is a method to get hit count value (like rule.hit_count)?Thanks
I see that I can commit at a Device Group level through Web UI, but I can't find any documentation on how this can be done through API. I can see documentation on <commit> at a user level, but I need to be able to commit at Device Group level, similar to Web UI.
Hi,I am running twistcli scans for images as part of my Azure Pipeline. The Scans work fine and display inline results in tabular form. I also want to publish these results to Prisma Cloud Console and apparently, using --ci flag along with --token to ensure these are visible there but, it displays the JSON Result on my Pipeline stdout rather tha...
Hello, Has anyone perhaps encountered a similar issue when omitting device_group on panos_security_rule when pushing to Panorama: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Scope \"shared\" is not allowed"} I can create objects as shared, when omitting device_group, but it fails when applying to security policy.Additionally, sp...
Hello, I just would like to know what RestAPI is about "export table" button.I already knew how to export rules with using RestAPI as below"xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security" In my opinion, the result from using "export table" button looks better than other result with RestAPI ...
https://access.redhat.com/articles/3642632 Can someone with insight answer if palo plan to have their collection "certified" ?
Hi community When using the following operational XML-API command on panorama, there seems to be a bug with version 8.1.15:?type=op&cmd=<show><config><running></running></config></show>Prior to 8.1.15 the outpout started like this:<response status="success"> <result> <config version="8.1....
I’m have a bit of trouble getting the alert/dismiss (https://api.docs.prismacloud.io/reference#dismiss-alerts) call of the rest Api to work. I get a 400 error code with no error message in the response (e.g. missing required parameter, invalid parameter, etc), so I'm not sure what is wrong with my payload. payload: { alerts: ["P-41149", "P-41...
When installing the Pan-Os Ansible module from the Git repo links on the Livecommunity site on my Ubuntu Ansible server, it installs module version 2.4.1 (even when I use the ansible-galaxy -force option). Somewhere between 1/3 and 1/2 of the commands listed in the module documentation on this site say they were introduced in version 2.8. When...
Hi all,I'm writing a script that removes policies that have hit counts equal to 0. How can I delethe them? what is the method to use. In the documentation I have not found the method to access the hit count variable, does it exist? import pandevice import pandevice.firewall import pandevice.policies HOSTNAME = 'ip' API_KEY = 'key' fw = pandevice...
Greetings, Using pandevice, I am able to add a tunnel interface, give it and IP, comment, and set the virtual router. using the set_virtual_router() function. However when trying the set_zone() function to set the security zone, I get an error. <previous code removed>#Create a network interface object named tunnl.[TunnelID]tun = network.Tu...
Hi, I have upgraded my firewall on version 9.0.5 and after that, I am not able to make changes or modify any security policy. Please suggest on this. Regards,Aman
All, trying to send a command via the API to change the metric value of a static route, this is because occassionally my primary connection is extremely slow, but doesnt fail so path monitoring doesnt remove the primary static route. I'd like to be able to integrate this into some other home automation I have. I feel like I'm close, but cant see...
Hello Experts, I am trying to add a static route in a PAN FW using the Palo Alto module panos_static_route. Here is the variable file: user@C02X67V3JG5J ➜ FW git:(master) ✗ $ cat host_vars/lap-pva01.domain.com/routing.ymlrouting:static_route:- name: 'Test-One'destination: '1.1.1.1/32'nexthop_type: 'none'interface: 'tunnel.18'virtual_router: 'VR_...
In another article here, from 2014 (precambrian issues) - they broke down some of the insides of the device state config backup.One of the commands listed said that I should issue the "save device state" command from the config cli - only - it's no longer there.My script worked brilliantly for pulling the configs down on my Mac - just want to ma...

