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.xapi no response

Why am I not getting response when using pan.xapi vs panxapi.py?

 

from python interpretor:

 

api_sess = pan.xapi.PanXapi(hostname="10.209.32.33",api_username="myusername", api_password="mypassword",api_key='mykey')

 

api_sess..show(xpath = "/config/device

...

bdugger by L0 Member
  • 4198 Views
  • 2 replies
  • 0 Likes

pandevice help with Panorama

I did some work with pandevice and I am able to create new configuration  in a Firewall, but struggling working with the existing Panorama configuration. Can you please help me with ideas for the below.

 

I need to move a firewall between panorama appl

...

batd2 by L4 Transporter
  • 2030 Views
  • 0 replies
  • 0 Likes

Loading partial configuration snapshot

Hello,

I am new to Palo Alto and its API, and I am a bit lost: I need to load a named configuration snapshot, which may be uploaded from a third party, without changing the

/config/shared/local-user-database-user-database entry.

 

I am currently download

...

PAN firewall automation: A new thorough approach

Hi,

 

I would like to introduce a completely new thorough approach to the PAN firewall automation with you by sharing the part of my ongoing work. I would consider this as an equivalent of pandevice even though there are still a lot of work to be done.

...

hstsvn by L1 Bithead
  • 2591 Views
  • 0 replies
  • 2 Likes

test security policy from Panorama using pandevice

 

@gfreeman , @btorresgil 

 

Just checking can we use test security policy using Panorama  . In version 9 under GUI option i can see that ( Device grp ---> Policy )

 

I was trying using pandevice but getting exception error :

 

andevice\base.py", line 3486,

...

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

Manage On-prem IPSEC config with PAN TF provider

Here is my use-case,

 

We have a bunch of VPCs,VNETs in different cloud providers. When we spin up a VPC, we configure the VPN back to the on prem which is a Palo Alto firewall. The VPN configuration on the Palo alto firewall is manual.

 

I m wondering i

...

pbomma by L0 Member
  • 2495 Views
  • 1 replies
  • 0 Likes

Resolved! fw.refresh_ha_active() functionality

Hi @gfreeman  and all 

 

I am trying to use refresh_ha_active() functionality so that script always run on active device.  As per my understanding once i set the peer it will check internally and run it on active box or my understanding is wrong here ?

...

deepak12 by L3 Networker
  • 4775 Views
  • 4 replies
  • 0 Likes

Building an Automation host in AWS

Hi All,

having just painfully struggled through getting my first ansible automation to work I figured I'd share my findings here for other total beginners. It turns out my fight wasn't about getting Ansible talking to the firewall but about getting An

...

Resolved! How to handle file generate fw.op in python

Hi,

 

I have the following code to check the vpn status, this code execute op "show vpn flow'

I'm ussing pandevice library in my imports


def check_vpn_status(fw): #check vpn status
vpn_ike = fw.op(cmd= "show vpn flow", xml=True)
with open('vpn_stat...

  • 1034 Posts
  • 71 Subscriptions
Top Liked Posts
Top Liked Authors