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

Read API XML input into MySQL database using Python

For a month now, we've been trying to convert the XML output from an API call to the Panorama for the "devicegroup" information. We can do that just fine but cannot convert it into a table that can be inserted into a MySQL database. The structure of the XML file is nested with several identical tags being uses. Each parent has two children. We a...

API to get Global protect users logs

Hi All, Any suggestions on how to get Global protect logs for last 24 hours from panorama.In the Web interface in the systems logs if we put the filter globalprotectportal-config-succ using the Time frame, we get all the previous user detail for global protect Thanks in Advance.

Resolved! XML API to get all policies using same Tags

Hi All, Any suggestions on how to get all the policies from paloalto with same name using XML api call.In the Web interface in the search bar if we search using the Tag, we get all the policies containing the tag names. However, in api interfaces not able to find a xpath to fetch all the policies using tag name. Thanks in Advance.

Connecting Firewalls to Azure Log Analytics / Sentinel CEF map log fields

Hi, how can we achieve creating additional fields for logs being processed in "CommonSecurityLog" (https://docs.microsoft.com/en-us/azure/azure-monitor/reference/tables/commonsecuritylog) when sending in logs using the described log connector from Azure Sentinel using Syslog? At the moment incoming data gets mapped to fields like "DeviceCustomSt...

Snap 2020-08-10 at 13.57.21p.png
Snap 2020-08-10 at 13.56.27.png

Paid API Account?

Hello everyone,,I'm a hobbyist developer and have created a new tool to display threaded discussions, am testing it on Reddit discussions trees and have an API question. For example, here's a Traverse representation of a recent submission.My question is, does Reddit have a paid developer account whereby I could sign up and pay for API calls in e...

challa by L0 Member
  • 2337 Views
  • 0 replies
  • 0 Likes

Using x-path with spaces

Hi,The "load config partial from x-path" is great for copy or moving config but I can't work out how to get it to deal with spaces. e.g. if I want to copy a policy and the policy name has a space in it I can't get the correct syntax. The XML API Browser gives me an x-path of .../entry[@name='Policy+Name+Here'] however the CLI returns an error "S...

SARowe_NZ by L3 Networker
  • 13820 Views
  • 13 replies
  • 0 Likes

Resolved! Dynamic Content updates

Hello all, I have recently deployed a few Palo Altos to provide IDS across our estate. Now this has given our Security team added visibility into whats going on. However, one of the things they want is reassurance that the dynamic content updates are up to date, BUT they dont want to simply go and check periodically, they want this process autom...

Resolved! Get reachable (not management) IP address of devices from Panorama API

Firstly, apologies if this has been asked before. I couldn't find it with a search, but if it has been asked I'll review that answer I'm writing a 'Health Check' script in Python, that connects to managed firewalls for all of our customers (we're an MSSP) and scrapes important data, then submits it to a central server for generating reports. Giv...

Add sub-interface REST API question

Trying to add sub-interface to aggregated one via REST-API on 9.1 and realized that I can't even see them using GET method:curl -k -X GET 'https://MyFW/restapi/v9.1/Network/EthernetInterfaces' -H 'X-PAN-KEY'gives me only physical interfaces and does not even show already created ones (ae with sub-ints), see below.Did anyone succeed on this task?...

Resolved! Prisma Access Retrieve IP Addresses API

Hi,I am trying to run the API script in python to retrieve the gateway addresses, but I am unable to get it to work. Any help would be appreciated. The command I used was:curl -X POST --data @prismaapi.txt -k -H header-api-key:(key redacted) "https://api.gpcloudservice.com/getPrismaAccessIP/v2" I get the error, File "<stdin>", line 1 and ...

Need Help For Using XML API with Ansible

Hi Everyone, need helping hand in my scenario I am calling xml api from ansible to generate the custom report to get top 10 src users consuming high bandwidth in my network and then I want to save only top src user in some variable and want to call the same variable which contains only 1 top src user in 2nd xml api to set qos policy for that use...

faisalma by L0 Member
  • 2351 Views
  • 0 replies
  • 0 Likes

Offline Content Downloader

We have a pair of Palo Alto's in a closed network with no access to the internet. We do not have Panaroma and at the moment the only way to get dynamic updates installed on to the units is by manually downloading from the website and impexing into the environment. I have found the Content Downloader Python script from btorresgil (https://github....

Resolved! Unable to get Configuration via API since upgrade to 8.1.15-h3

Hello, we get a backup daily via API. After the Patch we gat an error but I cannot find out what happens. I only get this Output <response status="error"><result><msg><line><outfile>/opt/pancfg/session/pan/user_tmp/8450601867371404/opresult.out.10322</outfile></line></msg></result></respon...

aii by L0 Member
  • 4816 Views
  • 2 replies
  • 0 Likes

Ansible - Backup config

I'm having a hard time understanding why I can't just use something like this to backup the my Palo.- name: Backup up config - Palo Altopanos_type_cmd:cmd: showxpath: "/config/devices/entry/deviceconfig/system"ip_address: '{{ ansible_host }}'username: '{{ ansible_user }}'password: '{{ ansible_ssh_pass }}'It seems like there should be an easy way...

jxjoseph by L0 Member
  • 4015 Views
  • 1 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions