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

Wildfire IOC lookup via Teams Chatbot/PowerAutomate

I'm trying to build a simple MS Teams chat bot that queries Wildfire via HTTP POST requests. It appears to be accepting the apikey when I set it as a query (since I get an HTTP 400 in response), but I'm not doing something correctly, as I get a "The request could not be filled due to bad syntax. (400)" response. Anyone have any experience or sug...

Screenshot 2022-11-03 164614.png

Request Assistance with XMP API - Linux FreeRadius Perl

Hi PAN Peoples, My FreeRadius/Perl to PAN skills are a little rusty. We have a requirement to send UserID-IP Address Mappings from Wifi to PAN and have a Linux FreeRadius box in the middle doing Accounting only for this purpose. I can confirm the API Key has been entered into the Perl script and command line tests confirm connection to PAN fro...

API command to know URL Category

Hi Team, I would like to know is there a command from the API where we can export all the Allowed Categories or List of All Categories in URL categories. The issue is when trying /config/predefined/url-categories it only gives partial data which looks like only for alert and block category while the remaining categories are not listed. As th...

Resolved! Info on Ansible galaxy PanOS version 3.0.0

Hello. Looking at https://galaxy.ansible.com/PaloAltoNetworks/panos I see a version 3.0.0 listed as 3 months old. I find no information about this release in the github repository. https://github.com/PaloAltoNetworks/pan-os-ansible Only thing I can find is some reference to changes upcomming for version 3.0.0 in release notes.Any info on this 3....

Adding device to Panorama Using Python SDK

I am trying to add a device to Panorama using Python SDK (panos). I was able to configure the device side using below code but cannot do the same Panorama side. Any help is greatly appreciated! from panos.panorama import Panorama from panos.firewall import Firewall from panos.device import SystemSettings panorama = Panorama("192.168.254.1", "a...

Armen by L0 Member
  • 4116 Views
  • 2 replies
  • 0 Likes

XML API powershell, importing public wildcard pkcs12 certificates

I'm trying to automate importing public wildcard pkcs12 certificates with passphrase into Palo Altos with XML API and powershell. Importing the cert in the web gui works fine, I give it a name, browse to the .pfx file, select format pkcs12, and enter and confirm the passphrase. Great! And then I can create other profiles and reference that cert...

Resolved! Gather info with panos_security_rule

HiI dont fully understand how to use the panos_security_rule module to find rule panos_security_rule to find rules since https://github.com/PaloAltoNetworks/pan-os-ansible/blob/develop/plugins/modules/panos_security_rule_facts.py seems to be deprecated.What i do want is to get all the defined rules in the firewall.My supersimple playbook looks l...

zol123 by L1 Bithead
  • 5820 Views
  • 3 replies
  • 0 Likes

How to save and export named configuration snapshot with API

Hi Folks, I want to save and export new named configuration snapshot through API call.I found the API but don't know whether it export the latest details or old one, In UI we have option to save and export the saved configuration but unable to find with API.Can anyone help me if you already find out the way to export? Also want to export Device ...

Did anyone have success in upgrading palo using panhandler?

Hello Team, This is first time I am trying to software upgrade Palo using panhandler, I followed steps mentioned in https://live.paloaltonetworks.com/t5/quickplay-solutions-articles/ansible-playbook-to-baseline-the-ngfw/ta-p/391322 and I am getting an error whenExecuting Skillet: PAN-OS Full Upgrade / Downgrade (ERROR! [DEPRECATED]: community.ne...

Parthiprog_0-1666210294245.png

Resolved! trying to do commit and then push from panorama with a script

Hi Spending some time to integrate my letsencrypt setup with palo - shame that palo haven't done this yet ... thats another thread. I have a script that will take the lets encrypt certs - currently it pushes them into my nginx and my F5 setup ...I would like to push it into my panorama and commit - with comments and then push with comments I hav...

Paloalto Onprem Firewall PA3250 - Create multiple objects and object-group - using automation

Hi All, I am newbie here. I am trying to achieve below goal using automation.Problem statement: We have a frequent need to create at least 50 objects and 20 object-group for support purpose. We are supporting more than 30 Testing groups in our organization. On top of that, We also need to keep updating our Blacklisted IP object-group to add CISA...

How do i reference hosts from ansible tower in yaml file?

I'm trying to run a simple yaml file - name: Palo Test hosts: all connection: local gather_facts: false collections: - paloaltonetworks.panos tasks: - name: Get vr1 info panos_virtual_router_facts: provider: '{{ provider }}' name: 'VR1' register: vrlist My ansible tower template has hosts and inven...

Facing Error - [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)

Hi Team, I'm facing [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) error while running my small script. Can someone please help for the same. Code : ---- name: Palo Alto LRS Check hosts: "{{req_host}}" connection: local # gather_facts: False roles: - role: PaloAltoNetworks.paloaltonetworks vars: fw: ip...

Retrieving Hit Count and Last Hit Date Using Python

We have several firewall managed via Panorama. I want to pull the rulebase from each firewall to get the Hit Count and Last Hit date. I've got partial script, but I'm lost on accessing dict. Here are the two links that I've been using: https://pan-os-python.readthedocs.io/en/latest/module-policies.html#panos.policies.RulebaseHitCount https://pan...

Authentication issue to Palo Alto Panorama from Ansible

Just followed some examples from https://paloaltonetworks.github.io/pan-os-ansible/ and https://github.com/PaloAltoNetworks/ansible-playbooks/ to write my first playbook. The target system is a virtual Panorama instance on AWS (software version 10.1.6-h6)The playbook is just to show system info: I made sure the host inventory has been defined co...

merlintong_0-1665122126484.png
merlintong_1-1665122126489.png
merlintong_2-1665122126491.png
  • 1031 Posts
  • 68 Subscriptions