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

9.0 REST API - updating custom URL list unable to append

Hi Guys, First post on this forum - relitivly new to PAN however I am looking to automate the addition of new URLs to a custom URL catagory we have called "allowed_urls" - I figured I can do this via the RESI API - using the put method, I am using the requests library in python to achieve this. However my problem is that my exisiting list gets...

Cannot add user to Security Rule by API

There is a good example how to add user by APIhttp://api-lab.paloaltonetworks.com/groups.html#example-add-user-to-group-mappings-groups If I put the XML from the example to https://192.168.1.100/php/rest/browse.php/user-id<uid-message><version>2.0</version><type>update</type><payload><login><entry nam...

Снимок экрана 2019-09-30 в 19.07.18.png

Resolved! Rest calls from PowerShell failing

I have a script that I use that reads a copy of my palo's configuration that I manually export. I am looking to create a PowerShell script that can call the rest service instead of having to manually export the XML configuration file. I also want to be able to give the script to co-workers (using their own key). However, when I go to call the se...

Looking for xml api to add a new patch number to hip-objects

Hi all, am having trouble to find the right element value to add in a new patch number under hip objects, the goal is to add '5678' as a new patch number under the following:below is what i tried without any success with an error msg of "malformed request":https://fw_ip/api/?key=api_key&type=config&action=set&xpath=/config/shared/pro...

Screenshot 2019-09-16 at 3.17.51 PM.png
Screenshot 2019-09-16 at 3.21.06 PM.png
chtoh82 by L2 Linker
  • 3415 Views
  • 1 replies
  • 0 Likes

Panorama deployment in Ansible

Hi.Im working with a customer using PANW/NSX that wants to automate Panorama/firewall deployment with ansible. So far I have found a few stumbling blocks:The ESXi OVA file defines the VM with 4vCPUs and 8GB RAM. This wont work for Panorama mode, only legacy modeThe Panorama ESX ova does not have DHCP enabled by default on the MGMT interface, unl...

OysteinK by L3 Networker
  • 4038 Views
  • 1 replies
  • 0 Likes

License Firewall ESXi VM before bootstrapping

We are trying to do automated deployment of multiple VM firewalls, managed by Panorama and using bootstrapping for the initial setup. All appliances will be hosted on ESXi server. The problem we have is how to license the VM firewalls before bootstrapping. I read the related admin guides and the VM licensing part is not quite clear. Documentat...

BatD by L4 Transporter
  • 3513 Views
  • 1 replies
  • 0 Likes

Ansible Module for Device serial number swap in Panorama

Hi,Need help in creating a ansible playbook for " Device Serail Number Swap in Panorama".CLI command: > replace device old <old SN#> new <new SN#>XML API:<replace><device><old>*old device serial number*</old><new>*new device serial number*</new></device></replace>

Resolved! Windows Script to connect PaloAlto firewall and run commands

Hi TeamMy requirement is:Run a Python/Powershell script from a windows box which should connect to Palo Alto by command line with SSH connection and run some commands, like "show user group list" or "show system disk-space", It should display the output on screen and store output in a file.I have found one python script, it works with linux serv...

IpsecTunnel api refresh

im trying to get a list of ipsec tunnels from each template stack i have. but anytime i attempt to use the class pandevice.network.IpsecTunnel i receive an error that pandevice doesnt have an attribute network.... according to the documentation here:https://pandevice.readthedocs.io/en/latest/module-network.html it does have a class pandevice.n...

Policy Optimizer API calls

I am trying to create a report and automate disabling rules that have not been used in the last 30 days. the report will run the 1 st of every month. So I am looking for API calls for the Policy Optimizer "unused in 30 days"or the CLI commands so I can build the API calls..

Resolved! How to automate rules with App-ID

How can you automate firewall rule creation when App-ID is used? This seems easy enough on a port-based firewall, but I have yet to see anything addressing APP-ID. A typcial flow could look like this:user submits firewall request formappropriate approvals submittedautomation handles the form automation provisions the firewall based on the approv...

  • 1031 Posts
  • 68 Subscriptions