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

Traffic log query using curl and retrieval

Hi Team, I presume pan devices allow API requests for traffic query using curl. Attempted following query using curl with no success. Got a prompt w/o any complaint. I was expecting job id so that I can query later curl -s -k 'https://firewall/api/?type=log&log-type=traffic&query=(user.src eq 'domain\username')&key='api-key'

Module for puppet/ chef for updating HIP opjects?

Hi, has anyone came across modules as such? I basically wanted to remove certain patch version number (eg MS KB number) from the current HIP object and add in new ones. I know we can use XML API to achieve that, I'm not too familiar with Puppet/Chef, hence just wondering how to achieve this using that? Thanks!

chtoh82 by L2 Linker
  • 2087 Views
  • 0 replies
  • 0 Likes

Firewall rules to graph

Hello,I'm using Panorama, is it possible from firewall rules to build a graph showing all interraction between segments, host etc. ?Thanks in advance

Pira777 by L0 Member
  • 2258 Views
  • 0 replies
  • 0 Likes

Not able to execute command on FW using ansible due to SSH key auth error

Advices are deeply appreciated, stuck in this issue for 2-3 days, please find below info. Sample script###############- name: running show system info cmdhosts: PAvars_files:- pass.ymlroles:- role: PaloAltoNetworks.paloaltonetworkstasks:- name: tasks will run nowpanos_op:#ip_address: '{{ ip_address }}'# username: '{{ username }}'password: '{{ pa...

Resolved! Pandevice: create firewall policy

Hello community,I've been playing around with pandevice (and pan-python) and get the basics running. But I can't find any example of a script that creates a security policy on a sinlge PA or on Panorama with python. I kindly ask the community to share an example that I can work with. Thanks

mseiler by L1 Bithead
  • 4016 Views
  • 1 replies
  • 0 Likes

Resolved! Adding Zones/Tags with XML API

So I have been REPLACING tags and zones with the xml API with great success. What I have yet to do is figure out how to ADD tags or zones without disturbing the existing objects...or even replace them with multiple tags/zones Working replacement of a zone-xpath=/config/devices/entry[@name='localhost.localdomain']/device-group/entry[@name='{{Loca...

Tag Selfsign Certificate Website using DAG

GOAL:1. automatically tag ip address of websites that using self sign certificatethen use that tag ip as input of Dynamic Address Group ?1. is that possible2. any doc that show me the stepssomething like this https://panos.pan.dev/docs/apis/panos_dag_qs but that link manually put ip addresstq

nbctcp by L1 Bithead
  • 2217 Views
  • 0 replies
  • 0 Likes

api error illegal paramater

Hi all, I have just started to working on API and following documentation from this site.http://api-lab.paloaltonetworks.com/keygen.html Sent my first request to the firewall but response came as op: "URLError: code: 400 reason: Illegal parameter [request]" (attached screenshot for reference). Can anyone tell me what is the error messag...

2020-04-25 19_43_53-API Key Generation — panos-xml-api-rtd 1.3 documentation.png

Anybody know a meal prep service that’s geared toward automation?

Here’s the question: what if I never had to think about what you ate or drank again?Emphasis on completely automating everything I eat and making it healthy. This is what I’m looking for.I don’t want to spend any time figuring out what to eat/drink. No time making it. No time grocery shopping. I just want to rest assured that it’s healthy. No de...

Kimon11 by L0 Member
  • 2034 Views
  • 0 replies
  • 0 Likes

Azure Terraform Bootstrap - cant get this working

I am trying to create a vm-series FW in Azure using Terraform. I am following this example:https://github.com/PaloAltoNetworks/terraform-azurerm-panos-bootstrapBut I get a similar error to this one in the bootstrap status and log.https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PP7jCAGI have tried using the same paramete...

DTG123 by L1 Bithead
  • 5134 Views
  • 3 replies
  • 0 Likes

Resolved! Firewall policy update based on conditions

Dear All,I have a situation to automate PaloAlto Firewall policy requests based on user input. Once i obtain the user input in a certain format, i will have to check certain conditions before creating the rule on the firewalls.1. Whether the Objects mentioned in the input file already exists or not. Only if any of the objects are not available,...

mgans80 by L1 Bithead
  • 5121 Views
  • 3 replies
  • 0 Likes

Response: set failed, may need to override template object first

Hi, When I am trying to hit below API, I am getting error response, pasted below. Payload:{"type":"config","action":"set","key":"<Key>","xpath":"/config/devices/entry/vsys/entry/address-group/entry/[@name='apadr']","element":"<static><member>dstobj02</member>\n<member>dstobj01</member>\n</static>"} Respo...

bcrogerz by L0 Member
  • 8814 Views
  • 2 replies
  • 0 Likes

Panorama managed All device health report automation

Hi All , I am trying to see if we can automate functionality to generate device health report daily using Panorama . I have checked the custom report but don't see any option for CPU/Fan/memory related report . Currently i am pulling details manually using -- Panorama ----- > managed device --- > health . Any help in this regard would ...

deepak12 by L3 Networker
  • 4970 Views
  • 3 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions