Automation/API Discussions

Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Automation/API Discussions

Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.

About Automation/API Discussions

Threads in this discussion area are now read-only. If you have a question about Automation/API products please visit our product discussions.

Discussions

Need script to kill a session

I need to kill a session automatically for one appplication when this application appears on one egress interface.We have PBF rule for forcing some application to one ISP and virtual router for other ISP.once the PBF ISP is down, it goes to second ISP via virtual router.For some application it stays in that ISP for a long time untill we manually...

PAN sessioninfo version 2 - Snap Telemetry

I released version 2 of my PAN sessioninfo plugin. This is plugin in Go for Intel SDI telemetry Snap framework (see my post here). It allows to quickly create graphs i.e. in Grafana, see below. There are 33 metrics avail.Examples of PAN sessioninfo plugin metrics published to InfluxDb and pulled by Grafana

grafana-sessioninfo2.JPG
niuk by L3 Networker
  • 2783 Views
  • 0 replies
  • 4 Likes

Resolved! Wildcards in rest api configuration query?

Hi, I'm trying to write a reporting tool that will go throguh various device groups and identify rules that have certain keywords (change numbers in my case) in the description. I'm querying panorama configuration and using rest api directly from python (e.g. requests module or pan.xapi) For example, this query works perfectly for me and as a re...

KostiM by L2 Linker
  • 13273 Views
  • 13 replies
  • 0 Likes

XML API: show merged config

I am using the XML API on firewalls managed by a Panorama system. I would like to retrieve the merged configuration containing the firewalls configuration, plus any configuration gained from Panorama templates. I believe this is what the show config merged operation should do. However, after running the command, I don't seem to have any inform...

ebentley by L0 Member
  • 4548 Views
  • 1 replies
  • 1 Likes

USER-ID agnet get API by VBscript

I have an idea hit my head today I'm thinking to schedule a task (let say each half hour) to run a vbscript in user machines to send IP and username to the userid agent. Is it possible and can someone help me with code as I'm not that good in coding

Upload XML to another vPAN via PowerShell etc?

Palo Alto newbie so please excuse the nature of the question: I would like to know if there is a way use PowerShell, Panorama and/or the CLI to distribute and configure the XML file that can be pulled down via. . . (Invoke-WebRequest -outfile c:\scripts\the.xml -Method POST -Uri 'https://paloalto.contoso.com/api/?type=export&category=confi...

xapi Post Security Rule Order

Looking into automating security rule input into a pandevice but need to allow end users to change the order of which the security rules are currently laid out. Looking into this it does not appear that there is any built in function to say I want to add the new rule in as #3 and cascade each rule below it down. Has anyone successfully changed t...

Share, block scan-aggressive attack ips(log) collects to use XML API tool

I used the Palo Alto firewall in my company, and I thought of a way to block scan-aggressive attack IPs, and I created an XML API tool that automatically collects firewall logs every set minunte(default 10 minunte).It is possible to use it as a log collector if you use Palo Alto. How to use is also a video, if you have used. If you not programme...

allmnet by L0 Member
  • 2229 Views
  • 0 replies
  • 0 Likes

Resolved! Using the REST interface for XML API

Howdy,I have been using the REST interface for pulling reporting and config data using constructed URLs in scripts. All that works well. What I have been unable to do is use the set action for config. I am using a key generated for a sysadmin user, but consistently get an "Unauthorized request" message:<response status="unauth" code="16"&g...

Programmatic API Discovery Method?

Hello, I'm working on a Powershell module to interact with the XML API. I can get the syntax for the various commands just fine via the API browser and CLI/GUI debug, however I was wondering if there is a command or some way to get something like a WSDL file or XML document that defines all the command combinations and their syntax that I could ...

jgrote by L1 Bithead
  • 1858 Views
  • 0 replies
  • 0 Likes

link submission API call doesnt appear to be working.

When I submit a URL for analysis via Wildfire Public API. curl -F 'apikey=myapikeyenteredhere' -F 'link=https://www.paloaltonetworks.com/' 'https://wildfire.paloaltonetworks.com/publicapi/submit/link' I get a http status code of 200 and receive the submit link info (md5 & sha256).<?xml version="1.0" encoding="UTF-8"?><wildfire>...

How to make a basic XML API Request using C#

Hello, I'm trying to learn how to use the API with a C# Client. I'm able to make a API request, using a web browser, but can someone, give me an example in C#. So if I wanted to use this example: Make a call to get system information, which returns the IP address, hostname, and model of your firewall. 'https://firewall//api/?type=op&cmd=&lt...

Revoke XML API key for a specific user who is configured on radius server.

Hi, I would like to revoke a xml api key for a specific user who is configured on radius server . Changing the password on the radius server doesnt revoke the old api key of the user. Firewall is still athenticating the user using old api key. Is there anyway of revoking api key of a specific user on palo alto firewall ? Note : this specific us...

rirani by L0 Member
  • 4877 Views
  • 3 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions