Automation/API Discussions
Showing results for 
Search instead for 
Did you mean: 
Automation/API Discussions


Backup Using Powershell

add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certif


minow by L4 Transporter
  • 1 replies

Resolved! API - Security Rule Syntax

Version: PAN-OS 8


Hi all,


I am attempting to create new security rules in Panorama, but keep getting a response that says a schema node cannot be found


I have the following code in a PS function, where $Name is my intended rule name, and $DeviceAddre


Can't get src.user field via API.

In the below code - I"m using the API to query the URL logs. It works great. 


What isn't returning though is the src.user field, if it's mapped. How can I get this value? Do I need to do a separate query? 




# Build PAN API Connection and get token ...

punkrokk by L0 Member
  • 0 replies

scheduling quarterly reports

I need to setup quarterly reports for a security review. This can be done by creating a custom time frame but since these can't be scheduled it would require updating the date range every 3 months. Hardcoding a 90 day time frame would seem a simple f


Resolved! Show Local Device Policies

Hi all,


I'm searching through the API browser on my PAN-OS 8 instance, and wondering where the syntax exists for exploring/getting the local policies per-physical device.


Or for clarity's sake - what API endpoint would return all of the local device'


Having an issue with checkboxes in API

I am having an issue with changing settings that use checkboxes through API. For example the setting under 

/config/devices/entry[@name='localhost.localdomain']/deviceconfig/system/services. If I try to set <disable-telnet></disable-telnet> it says th


SNMP Monitoring - Missing Data

Hi all,


I'm currently working on developing SNMP  v3 reporting with data from my PA-3020's and Panorama.


While I can successful authenticate commands against each of my desired devices, I am not seeing any clearly available data that represents sessi


Resolved! Security rules via API with two vsys


This morning started with me pulling my hair out...just like yesterday ended.  So, here I am.  I want to query our Palo Alto firewall via the API to show me security rules...not a big deal.  However, the device as two vsys's (or however you wri


Any Automation tool for Palo Alto

Please suggest any Automation tool or software which can be integrated to firewall:

Main requirements:

We have many port based rules. which the tools requires to analysze the traffic logs and suggest which application can be replaced with this.



Top Liked Authors