Automation/API Discussions
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Automation/API Discussions

Discussions

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
  • 1525 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 base
from pandevice import firewall
from pandevice import policies
from pandevice import objects
from pandevice

...

deepak12 by L3 Networker
  • 2197 Views
  • 2 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”)

                             

...

Resolved! Creation of App-Id though XML Api

Hi Guys I am trying to create a App Id though xml api. I looked at the request though Debug Console:

<request cmd="set" obj="/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/application/entry[@name='test2']" cookie="39209

...

Resolved! Ansible module - selecting "None" value

I'm trying to create a tunnel interface using Ansible module panos_tunnel from  Galaxy role PaloAltoNetworks.paloaltonetworks

My playbook is failing because it cannot detect correct netflow-profile value. In my configuration I don't have any netflow-p

...

XML API - Get thret ID and CVE (version 8.0)

Hello.

 

Working with firewalls on version 7 with a query to the following path: xpath=/config/predefined/threats/vulnerability  I was able to get an XML with CVE of every threat, but on version 8 XML doen't contain associated CVE.

 

Are any other path t

...

m.molina by L1 Bithead
  • 8093 Views
  • 7 replies
  • 2 Likes

block ip duration through API call

IHAC who are planning to evaluate our firewall which needs block bad ip duration through API call. For example, they want to know we can block one bad ip after one hour to release. Any suggestions and input? 

vpeng by L2 Linker
  • 1525 Views
  • 0 replies
  • 0 Likes
Top Solution Authors
Top Liked Authors