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

Get config diff for single user from CLI/API

Is it possible to get a config diff for a single user from the CLI or XML API, the way you can through the GUI by selecting "Commit Changes Made By: user" and "Preview Changes"? Running 'show config diff' from the CLI shows me the diff between the running config and candidate config for all users but I don't see any way to filter that for a sing...

Getting error while running an Ansible playbook in aws

Getting below error:The error was: botocore.exceptions.NoCredentialsError: Unable to locate credentials when running the playbook, where exactly credentials needs to be stored other vars.yml. Below is the playbook that I am running: - hosts: localhost connection: local gather_facts: False roles: - role: PaloAltoNetworks.paloaltonetworks ...

Pulling interface details using python SDK

Hi All , I am trying to pull interface details using Python SDK . However getting below error : PanDeviceXapiError: show -> interface -> all needs to have non NULL value Trying to run below query : Intedetails = fw.op("show interface all", xml=True)

deepak12 by L3 Networker
  • 4241 Views
  • 2 replies
  • 0 Likes

Resolved! API Key for HA Pair

I have a HA pair (PA-3020) and have generated a API key on the active node using the url and the admin username and password. Will this API key be applicable for both nodes? Thanks for your help.

Lesgall by L1 Bithead
  • 3890 Views
  • 2 replies
  • 0 Likes

Resolved! Ansible Module ver 2.2 does not support sec rule update operation deprecated

Newly Ansible Module ver 2.2 does not support sec rule update. operation keyword is deprecated and state key only has absent or present values. I have also experienced after creating sec-rule, objects are not created automatically. I can see the rule is created with the specified source and destination ips but objects of the ip addresses not p...

mesgun by L1 Bithead
  • 8822 Views
  • 6 replies
  • 0 Likes

Pre-VPN Drive Mapping batch script in Registry Key

So I'm having an issue getting a batch script to run from inside the pre-vpn-connect registry key. I followed this article exactly with a couple different variations and no matter what I do the batch script is not being triggered. https://docs.paloaltonetworks.com/globalprotect/7-1/globalprotect-admin/set-up-the-globalprotect-infrastructure/dep...

Ansible - Failure when processing no_log parameters. Module invocation will be hidden.

I am getting starting with Ansible automation tool against our panorama and firewall devices, i have downloaded the PA roles and trying to check the configuration via an example using panos_adminstrator module, but getting an error as following. TASK [configure foo administrator] ******************************************************************...

Destination zone shows as ****

The API command "/api/?key={KEY}&type=config&action=get&xpath=/config/panorama&target={SERIAL}" generates an XML dump of the firewall's configuration. However, the XML contains "*****" instead of the destination zone name.

snimshad by L1 Bithead
  • 2272 Views
  • 0 replies
  • 0 Likes

Help with Python script

Hi All , I am trying with basic python script for Operational cmd. However getting syntax error for print statement : from pandevice import basefrom pandevice import firewallfrom pandevice import policiesfrom pandevice import objectsfrom pandevice import networkfrom pandevice import devicefw = firewall.Firewall('x.x.x.x', '#######', '1#######'...

deepak12 by L3 Networker
  • 3364 Views
  • 2 replies
  • 0 Likes

Creation of address using REST API

Hi All , I am trying to create new address using REST API and entering details POSTMAN. However while running query getting " 400 cannot Json to xml". Any idea how we need to put values ?

deepak12 by L3 Networker
  • 1907 Views
  • 0 replies
  • 0 Likes

When I use the API to pull the device-state - am I getting the latest device state?

In another article here, from 2014 (precambrian issues) - they broke down some of the insides of the device state config backup.One of the commands listed said that I should issue the "save device state" command from the config cli - only - it's no longer there.My script worked brilliantly for pulling the configs down on my Mac - just want to ma...

josilvia by L0 Member
  • 2441 Views
  • 0 replies
  • 0 Likes

Resolved! New to Python:Having issues with pandevice

Getting below error when connecting to firewall: >>> import pandevice>>> fw = Firewall("137.117.105.197", “firewall”, “firewall@123”) File "<stdin>", line 1 fw = Firewall("137.117.105.197", “firewall”, “firewall@123”) ^SyntaxError: invalid character in identifier>>&gt...

  • 1031 Posts
  • 68 Subscriptions