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-pan with Ansible Tower and Git

We are using Ansible Tower 3.5 and Ansible 2.8 to schedule and run network and security automation playbooks. We are looking at using the Ansible Galaxy modules for automating PANOS configurations. I was able to write the playbooks to do what we need, but whenever I run the playbook with the ansible-pan modules, the main task runs PIP to install...

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

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...

Pandevice/panpython, checksum?

Why are not this hosted at palo altos own site? Yes im abit paranoid but i have never understod why this kind of packages are hosted at pip? At least if they are hosted at external site. Would it not be possible to implement something like this https://media.djangoproject.com/pgp/Django-2.2.12.checksum.txt ?

hbalzac by L3 Networker
  • 2884 Views
  • 1 replies
  • 0 Likes

Ansible - Show ARP table

Hi, I have been trying to use Ansible to retrieve the arp table from a PA FW. Logging in with ssh, it's a quick and easy "show arp all", but using Ansible, I am struggling. I was sure panos_op would work with "show arp all", but it doesn't.I also looked at panos_type_cmd, but that seems not to be the way either. More config than state. Finally, ...

Connecting to PAN-OS Firewall Device via SSH and Bypassing HTTPS - Ansible Galaxy (PaloAltoNetwork)

Hi all, I'm new to Ansible and am trying a specific use case where I am connecting to a PAN-OS firewall device through SSH and running my panos_op commands. Is there a way to bypass HTTPS as our production firewalls are compliant to our customers with not allowing any HTTPS access from any host. When I run my script, I am getting: "msg": "Faile...

khangt_0-1586366954612.png
khangt by L0 Member
  • 4657 Views
  • 1 replies
  • 0 Likes

Resolved! [API/Ansible] Manipulating users and groups

Hello, Is there an available API call (XML or REST) or Ansible command that can be used to:1) create a user group2) add an existing user to the newly created group I looked through the API docs and Ansible collection docs, but wasn't able to find any user/group manipulation examples. Thank you for your time. Kind regards.

Resolved! [Ansible] Commit

Hello, I've noticed that Ansible will commit changes by default, False option doesn't seem to influence it. For example, if Ansible adds security rule for 10.10.10.1 - it will not be committed.Next run, adding rule for 10.10.10.2, will commit the rule added for 10.10.10.1, and leave rules for 10.10.10.2. Additionally, I have not been able to mak...

Receiving error when running ansible panos_static_route module

Hi Guys, stuck here, running the static route module and receive this error: ERROR! couldn't resolve module/action 'panos_static_route'. This often indicates a misspelling, missing collection, or incorrect module path. This should work as my other modules panos_object / panos_security_rule all work.

Resolved! Create Shared Objects and groups for multiple vsys

Hi Guys,I would like to create objects and Rules that would be shared between the different vsys I have setup within my Firewall.I used to create "Shared" objects through the WebUI and would like to reproduce the same tasks via an ansible playbook.I can't find how to do this (as if I don't put a vsys, the object is created by default into vsys1)...

Resolved! Ansible panos_pbf_rule giving me NameError: name 'PanDeviceError' is not defined

TASK [add a pbf rule] **************************************************************************************************************************************************************************************************************************An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError:...

Resolved! Output format for test/url-info-cloud and test/url-info-host

So I had a crazy idea and started poking around at the XML API on my firewall. I wanted to see if there was a generally efficient way to automate a query against PAN-DB. Seems straightforward enought; either test/url-info-cloud or test/url-info-host (depending on whether I want to check the MP cache or against the cloud... though I'm not sure ...

How to perform a full firewall backup?

Hello,How can I get a full backup including all settings, objects and security policies? The firewall is not managed by Panorama, I would like to be able to automate backup&restore process with Ansible and paloaltonetworks collection. Regards,Michael

Resolved! ansible zone creation failing

i'm trying to run the following task in my play to create a bunch of new L3 subinterfaces on ae2 and then add them to the appropriate security zone. if i try to assign the zone as part of the panos_l3_subinterface, or through a different play (as shown in code vs commented out section) i get the same error message. my understanding is that if i ...

Pouyesh1 by L1 Bithead
  • 3947 Views
  • 2 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions