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

ansible initial configuration

Hello all - I have a factory-reset 3020 I'm trying to access via ansible to do inital configuration. I installed ansible galaxy on my mac and I'm running version 2.4.3.0 of ansible. I am able to connect but it doesn't appear to do anything in the playbook. Any help is appreciated - here's the relevant configuration. $ ansible --versionansible 2....

Resolved! Zone Creation W/ Python Device Framework

I am working on a script to do automation of new tenant builds. One thing I am having a tough time with is creating VLAN Zones because I need to assign them to the specifc VSYS/Location but don't seem to have a paramter to do that. I have been able to successfully add things under Objects and Policies to their specific VSYS, but this zone add is...

Panorama API Custom Report

Trying to pull website statitics through a custom report via API, so that results can go into a database from an automation process. The problem is that the report job only stays on the Panorama for about 20 minutes and the retrieval has to be done inside of that window before it disappears. The report is already scheduled to run daily through ...

Resolved! WildFire API Malware Hashes

I'm trying to get the file hash values for all submissions WildFire deems as malware. Is this possible? From what I've read you have to specify the hash value in the API call but I'd just like a list of all values.

jt1025 by L2 Linker
  • 5070 Views
  • 3 replies
  • 0 Likes

Resolved! Configuration Table Export csv by api?

I might be missing it however does anyone know if the configuration table export option [0] is available through the api? my goal is to obtain this via api if that is an option. after going through the api browser and check export/show command I am not seeing this functionality anywhere. [0] https://www.paloaltonetworks.com/documentation/81/pan...

ajr0 by L3 Networker
  • 9716 Views
  • 7 replies
  • 0 Likes

Leveraging PAN-defined objects within Terrafom

A brand new PAN device has pre-defined objects. What is the best method to consume these existing objects? Should I be dumping the PAN objects from the API, and creating Terraform data objects to statically consume? Should I import them into panorama_address/service_objects to manage them within my TF state file? Is Palo Alto planning on scripti...

parse error in module panos_match_rule.py

Hi, I am having some issues with the panos_match_rule.py module. The details are below. Any help would be appreciated.Thanks. COMPONENT NAME panos_match_rule.py ANSIBLE VERSIONansible 2.5.2 config file = /var/lib/awx/projects/sccm_dp_tob_sr_v2/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible...

sam.lee by L0 Member
  • 2146 Views
  • 0 replies
  • 0 Likes

ANSIBLE: panos_match_rule.py - 'NoneType' object has no attribute 'element_str'\n",

Hi there.I have a licensed VM100 running.I'm trying to use the module "panos_match_rule.py", but for some reason is not working.From the 20 modules that are available with the ansible default instalation, this is the only one not working.I tried to use the dev version of the modules from the github repo (ansible-pan/library/panos_match_rule.py) ...

Resolved! Ansible playbook timeout - panos_import - xapi.py in keygen

I'm getting a timeout on the panos_import command. I see a reference to xapi.keygen() in the traceback... Showing my playbook and the traceback below. Thanks for any tips,Chris.(spoiler tags? code blocks?) The Playbook:Spoiler (Highlight to read) --- - name: Initialize the Palo Alto Networks firewall hosts: localhost connection: local gat...

chrisjx by L0 Member
  • 4531 Views
  • 1 replies
  • 0 Likes

Bootstrapping using terraform in openstack - personality issues

I am trying to automate a vm inside openstack in our Ocata environment using terraform. But I am having issues using the personality when i am building the instance. Using heat template the snippet of the code is as follows. ### Heat ####user_data_format: RAWconfig_drive: truepersonality:/config/init-cfg.txt: {get_file: "/root/bootstrap/con...

ec2624 by L1 Bithead
  • 4755 Views
  • 3 replies
  • 0 Likes

Resolved! Finding API Commands

Dear All, We are planning to config server profile through api, we followed below article but couldn't understand. https://www.paloaltonetworks.com/documentation/80/pan-os/xml-api/get-started-with-the-pan-os-xml-api/explore-the-api/use-the-web-interface-to-find-xml-api-syntax#idb2f51600-e288-42a9-a34e-125d234399d1 Can anyone pro...

Is there a Way to create a new vsys with API or Ansible

We are wanting to be able to make the creation of vsys's and vrouters more cookie cutter and eventually automate them.Has anyone does this, and if so how have you done so. With pythons scripts and API or with Ansible?Been also trying to do with set commands and variables.Any input would be helpfulThank you

dwmaas by L2 Linker
  • 3118 Views
  • 2 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions