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

How to upload a certificate into a Panorama template using XML API?

I'm trying to upload a set of SSL certificates into some templates on my Panorama using XML API. But I've not been able to find any documentation for doing that. I'm able upload certificates for the Panorama, using APIs. But I also want to be able to upload certificates into specific firewall template configs that I have on the Panorama using AP...

Resolved! Unable to find exact api url for device certificate features like import, export, renew and revoke

Can someone help to find exact api url for device certificate features like import, export, renew, revoke, generate I tried to generate certificate under template(tlv-5260) but it is getting generated under panorama tab only instead of Device Tab as per API URL given under Manage Certificates(API) page link.https://docs.paloaltonetworks.com/pan-...

AModi by L1 Bithead
  • 5557 Views
  • 4 replies
  • 0 Likes

Panorama Template Overridden objects

Do you know where in CLI or configuration files we can find Panorama Template objects which were locally overridden on a firewall? I am trying to script for locally overridden configuration settings checks of multiple Panorama-managed firewalls, but noting in the configuration files indicates that the object was overridden.Do you have more insi...

batd2 by L4 Transporter
  • 7390 Views
  • 6 replies
  • 0 Likes

Collecting debug logs through Automation.

My organization was tasked with collecting a series of debug logs on one of our firewalls every 20-25 minutes for several days due to an issue which PAN was having trouble diagnosing and/or determining the cause of. These commands took approximately 5 minutes to run to completion, so you can imagine it was not a fun weekend for the team members ...

Resolved! Empty pano.predefined.refreshall_services()

Hello everyone, I'm struggling to get a list of the predefined services and applications via the panos python SDK.I'm able to get a proper answer if i'm asking a specific service, but the "refreshall_services" or "refreshall_applications" classes always answer me a None object : This works fine :pano = connect_to_panorama()dg = DeviceGroup("shar...

Klayhan by L0 Member
  • 3727 Views
  • 2 replies
  • 0 Likes

Resolved! IOC upload 401 response

Hello, I am trying to upload IOC's with this API reference: Insert Simple Indicators, CSV (paloaltonetworks.com) I'm posting the data with the requests module in python and always get a 401 response for "Unauthorized access. An issue occurred during authentication. This can indicate an incorrect key, id, or other invalid authentication paramete...

Resolved! Configuring syslog in templates using ansbible

Hi, We are currently trying to configure syslog using ansible, this for the firewalls that are maintained by #PanoramaWe noticed that we can't (or don't know / found a way how) configure syslog in our templates.My question is (simple?); is it possible to configure templates (in our case the syslog and log settings part) using ansible Best regard...

Panos_admpwd Hangs

Hi there, I have a super basic Ansible script that is meant to just change the admin password using SSH. --- - name: change admin password for newly deployed Palo Alto firewall hosts: firewall collections: - paloaltonetworks.panos gather_facts: no tasks: - name: Change admin password using SSH panos_admpwd: ip_ad...

Dapper by L0 Member
  • 2741 Views
  • 1 replies
  • 0 Likes

Need help with creating service ports and firewall rules using python

Hello Everyone,Asrar here... Thanks in advance.I am in the process of creating services ports(bulk) and then add them to the a service port group.2.Make address objects (Again in bulk).3.Configuring a rule using the address objects, Service group created earlier.Wanted to automate this whole task so as to speed this up. Any help in this will be ...

AsrarF by L0 Member
  • 3988 Views
  • 3 replies
  • 0 Likes

Find Single Rule - Pan Os Python

We are in the process of renaming all our FW rules. I'd like to run a python script with Pan OS Python. The script would look at a CSV file where in column1 is the current name, column2 is the new name, and column3 is an Audit Comment. I'm able to do the first two tasks but can't for the life of me figure out how to tell python to find the na...

RyanBess by L2 Linker
  • 3661 Views
  • 1 replies
  • 0 Likes

Panorama API not retrieving some older logs

I'm working on a script to pull logs from our firewall, and noticed that I'm unable to grab logs more than couple days ago from the current date. For example, I can see logs in the UI for a specific domain on 8/20, but querying with the API won't yield results that far back. Even when adding (time_generated leq 'some date here') to the query, it...

change value type

I wrote a script for a dynamic widget. The script finds the necessary indicators and displays the list in the table. There were 2 problems. 1. How to change the type to URL for the URL column so that the link is not in the form of text but can be clicked on. 2. The table in the display is shifted upwards and the headers are not visible

ansible panos_dag_tags causes Panorama to crash.

Hi PA devops! I'm trying to automate adding addresses and then adding tags to them. The first part succeeds but the second part causes Panorama to become unresponsive. I am wondering if I'm doing something dumb, or if this is a bug? I'm on Panorama v7.1.6. Here's my playbook: - name: Get input from user hosts: panorama connection: local va...

sgardne by L0 Member
  • 2965 Views
  • 1 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions