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

PAN-OS 10.2 REST API Objects/Addresses missing data

I have two HA pairs, one PA-460 and one PA-3250. With "/restapi/v10.2/Objects/Addresses" I get two different sets of data from the two pairs, both of which are missing data compared to the UI and CSV downloads:UI/CSV: Name, Location, Type, Address Tags. (Type is one of: IP Netmask, FQDN, IP Range, or IP Wildcard Mask)PA-460: @name, @location, @v...

Address group - addresses addition using API

Dear Team, We have been following the api's provided in documentation and we are stuck where the address created automatically, cannot be added to the address group but the possibility that was seen is only for PUT methods which will overwrite the existing address group. Please suggest if there is a REST-api method that can be utilized to push a...

Deleting interface + dhcp relay using ansible

Hello,Versions in use:ansible 2.9.22pan-python==0.19.0pandevice==0.14.0panos firewall 9.1.10I have created a playbook that adds a DHCP relay element and now i need to do the delete the DHCP relay and haven't found the way.This is the playbook for adding one:--- - name: DHCP hosts: localhost connection: local vars: - ansible_python_interpreter: /...

batchenr by L1 Bithead
  • 3208 Views
  • 2 replies
  • 0 Likes

Resolved! Paramiko doesnt get any data

Im using python3 with Paramiko 2.10.3 on a palo alto version 9.1.10I created this python script:def connect_SSH(): ssh_client = paramiko.SSHClient() ip='10.x.x.x' port=22 username='someuser' password='somepassword' ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh_client.connect(ip,port,username,pas...

batchenr by L1 Bithead
  • 6392 Views
  • 5 replies
  • 0 Likes

HIP Report not found via API

Hey guys, i'm having a weird issue when trying to extract HIP Reports via the API.I'm using the following API endpoint to extract HIP Reports:https://<FIREWALL_IP>/api?type=op&cmd=<show><user><hip-report><computer>HOSTNAME</computer><ip>IP_ADDRESS</ip><user>USERNAME</user></hip-r...

nirkain by L0 Member
  • 2203 Views
  • 1 replies
  • 0 Likes

Querying for Detailed HIP Report on XML API

Hi all, I am wondering if anyone has found a way to query the XML API to get a HIP report back.All I am able to retrieve with the following call is an XML formatted version of the data you can find in the HIP match log, but not the HIP report you can see in the GUI by pressing the magnifying glass next to a log. I saw another thread from 6 years...

API Calls override password

Hi,I have a network template contains information for SNMP and SNMP trap configuration. This network template is associated with multiple template-stack with appliances assigned to them. I created a PowerShell script which grabs the SNMP and SNMP trap configuration from the network template using XML API calls, modifies the username information ...

sanmakai by L0 Member
  • 2325 Views
  • 1 replies
  • 0 Likes

How to determine if Palo Alto is fully operational after reboot

What is the best way to determine if Palo Alto is fully operational after a reboot. Currently, I am using the ability to log into the API as a gauge, but unfortunately Palo Alto is not fully available at that time. When doing PanOS upgrades in the past, I have given it 3 additional minutes to stabilize before applying a configuration change, but...

API Connectivity to PAN-DB

Hello. I have a customer asking whether API connectivity for automated URL category queries from a different vendor appliance is possible (specifically Swimlane). I haven't been able to find much in general on API URL queries, let alone from different vendors. I found a Live Community thread from a couple years ago: https://live.paloaltonetwor...

Not able to create an Address Object using postman

Hi!I'm using Postman to create an address object using Rest API.This is what I'm posting:*https://10.46.169.141/restapi/v9.1/Objects/Addresses?name={{"My-Address"}}&location=vsys&vsys=vsys1 This is my body:{ "entry": { "@name": "My-Address", "ip-netmask": "8.8.8.8", "description": "My test address" }} This is ...

sconejo by L0 Member
  • 2112 Views
  • 1 replies
  • 0 Likes

CSR export via XML API

I am trying to export a CSR via XML API as per this article and as per /debug output that I get when I perform the export via Web UI. The request I run is as follows:https://<fw-address>/api/?type=export&category=certificate&certificate-name=<cert-name>&format=pkcs10&include-key=no&key=<api_key> However this...

forward_next_hop_type gets failed in PBF ansible module..

hi , i'm trying to create PBF using ansible module but it keeps throwing an error when i choose "forward_next_hope_type" as a "ip-address" , and even it doesn't take a value of IPV4 when i have given to "forward_next_hope_value". ansible-playbook/task:- name: pbf policypanos_pbf_rule:provider: '{{ provider }}'name: '{{ vendor_name }}_AWS-VPN-PB...

Resolved! need help to define static route using ansible for next-vr...

hi , i'm trying to create static route with next hop type as a "next-vr" , and as a interface "None" in ansible. but seems like i'm getting an error for nexthop and interface... sample playbook: - name: Create route to aws tunnel-1 panos_static_route: provider: '{{ provider }}' name: "Route {{ item.id }} to {{ vendor_name }...

Resolved! Get routes through Panorama

Hello Fellow Community Members, we are currently working on automation solution which involves getting routing tables from firewalls. Is there any way we can get routing tables from firewalls through Panorama's API? Thanks in advance!

czinu by L0 Member
  • 5502 Views
  • 2 replies
  • 0 Likes

API call to Panorama to get active Firewall and Management IP Address?

I am working on a Python automation project that will accept a user entering an IP address, then making API calls to Panorama to find the IP in the network. So far, I'm able to call the Panorama API call to get aggregate interfaces and ethernet interfaces - and build a dictionary of where subnets are - with their site. Now that I know the subne...

  • 1031 Posts
  • 68 Subscriptions