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

Resolved! Configuration to Export Address and Address Objects

I would like to review the addresses and address groups on our PA. I was trying to use the article “How to Export Address and Address-group Objects Using PAN-OS API” from the link below to display the address objects and address groups.https://live.paloaltonetworks.com/t5/Tutorials/How-to-Export-Address-and-Address-group-Objects-Using-PAN-OS-API...

Referencing spaces in names using XML API

The only thing he hasn't been able to resolve now is if the URL to block contains certain characters, like &, he gets a malformed request error. Any idea how to get around this. I tried \ before it as well as using an encoding value like %26 in place of it. If it helps, below is an example of a url that is not working. If I delete both insta...

Resolved! API: add a managed device into panorama

Hi,I'm looking for the correct syntax to add a new managed device (serial number) into panorama, using API.I tried lots of stuffs, but without success.Does anybody can help me? or is it simply not supported?Thx in advance,Olivier

RegEx Pattern for Email Addresses

Hi,I am trying to use DLP to catch if somebody is trying to send multiple email addresses of our customer database over the internet. I am trying to create a Regex to catch email addresses but no matter what I try I always fall into the 7-byte limitation. Is there a way to create a Regex that catches email addresses?Thanks,Solon

shoutris by L0 Member
  • 2818 Views
  • 1 replies
  • 0 Likes

User ID Count

Im using this operational command to pull out the number of mapped users by the user id:<show><user><ip-user-mapping><all><option>count</option></all></ip-user-mapping></user></show> This was working fine till I upgraded to PAN OS 8.the operational command <show><user><ip...

Sjoerd by L2 Linker
  • 4205 Views
  • 2 replies
  • 0 Likes

Resolved! Ansible for interfaces on PA

The ansible module "panos_interface" doesn't seem to have all the parameters that shoud should be availble for an interface. I need to create *many* sub-interfaces, assing tags, vlans, and zones to each. Was hoping to do this with ansible since that's our automation platform. Any thoughts on the best way to do this with ansible? Maybe load_c...

jacksonp by L0 Member
  • 5544 Views
  • 4 replies
  • 0 Likes

Resolved! Commit and push in Panorama 8.0.3

Is there an API command to do a commit and push in Panorama in 8.0.3? I can only find a commit to panorama or a commit to template. The issue is that in Panorama 8.0 by default the running configuration is pushed out as opposed to the candidate configuration. So it's necessary to commit any changes to Panorama first before pushing it out to a te...

Resolved! pushed-shared-policy

Hi, We have a development what extract the configuration via rest api and analize this. In a firewall with vsys and panoroma, i have this problem. in PAN-OS 7.0.x extract the policy configuration for all vsys with this call /api/?type=op&cmd=<show><config><pushed-shared-policy></pushed-shared-policy></config>&lt...

MPoffal by L2 Linker
  • 4223 Views
  • 2 replies
  • 0 Likes

Is there a log file for API activity?

I'm trying to integrate ClearPass User-id and their syntax I believe is way wrong. Is there any debug log file for API commands being thrown at the firewall? I'm looking for the posted data/URI info. Thanks!

bspilde by L4 Transporter
  • 2375 Views
  • 0 replies
  • 1 Likes

Resolved! How to register IP address to dynamic address group thru API ?

Is there a way to register IP address to dynamic address group thru API ? So far I use pandevice script dyn_address_group.pyI am trying to tag existing IP 10.34.20.94 on firewall 10.43.34.34 (PANOS 7.1.7) with tag General , getting error below:$ python dyn_address_group.py 10.43.34.34 admin 'password' 10.34.20.94 General usage: dyn_address_group...

niuk by L3 Networker
  • 3716 Views
  • 1 replies
  • 0 Likes

RegEx - Pattern Match

Hello everyone. I would like to build a pattern that matches with the following expresionXXXXXXXXX-X All Xs are numbers. In other words, nine number followed by dash, followed by other number. Thanks

DNT_FLAR by L0 Member
  • 2798 Views
  • 1 replies
  • 0 Likes

script not working for mapping a network drive.

Hi Team, I have a case: 00573844 The customer wants that a particular script should run before connecting to the GP.This script will help to map the network drives on his network by chaning few window registry setting. The script is attached to the case.file: AcertaLogin - Copy1.txt Kindly let me know, if there is something wrong with the scrip...

Resolved! API usage vs. load on FW

So, in general, are API calls considered a threat to the FW performance? Specifically, with this API call:?type\=op\&cmd\=\<show\>\<session\>\<info\>\</info\>\</session\>\</show\>Should I worry if I run it every second, or 5 seconds, or minute....?Is there a way to quatify the impact of an API call in gen...

dberber1 by L2 Linker
  • 2691 Views
  • 2 replies
  • 0 Likes

Update MOTD banner message

Does anybody know how to actually set this with the API? Whenever I try to run the set command it's just throwing an invlaid set object handler message.

BPry by Cyber Elite
  • 1616 Views
  • 0 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions