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

RegEx values for DLP

I’m wondering if there is a way to test for a 7 digit number that starts with a 4. Here is an example of a regex I know works, but will not work in the Palo 4[0-9]{6} and an example number 4123456. I have various other regex values I’m trying to test for such as specific credit card numbers. The first 6 digits are constant and the last 10 difits...

Introducing pyldfire - An easy-to-use Python module for the Wildfire API

Hi All, While reading over the documentation for the WildFire API, I created this Python module for it. Features Python 2 and 3 support Returns native Python objects Raises exceptions on API errors with error details Supports HTTPS proxies and SSL/TLS validation Supports WildFire cloud or appliance Supports all WildFire 7.1 API calls Uploa...

How to retrieve a scheduled custom report ?

Hello, I already know how to retrieve a custom report using XMP API, which use asynchroneous mode, by firstly getting the job ID corresponding to the report processing. What I want to do is getting a scheduled custom report using XML API. I mean that I don't want the report to be generated on demand, but I just want to get the schedlued report (...

REGEX for AND command, String search ....

Hi Team, Could you please help for below REGEX 1) AND command to combined 2 statements2) How to define regex for not case sensitive.3) SSN(with dash and without dash) and Keyword/String in single statement (not case senstive)4) To Combined 2 string/expression like (hello Jatin) AND (How are you), both should match to trigger an alert I have tri...

Resolved! How to Configure the Management Interface IP via API

Trying to automate a task of configuring the management interface of a firewall device through the API. I see where the API's leading for the configuration, but I'm stumped as to how to edit/set the IP. Example. using Powershell: $Firewall = https://firewall$apiKey = apikey$ipaddress = x.x.x.x $content1 = Invoke-RestMethod "$Firewall/api/?type...

SA129 by L1 Bithead
  • 6952 Views
  • 4 replies
  • 0 Likes

Wildfire Get Sample API no longer working

Some time in the past I used to be able to retreived WF submitted samples using the REST API's get/sample. I am no longer able to do this and I do not see any type of response to indicate what error occurred. I am able to submit samples, get verdicts and reports. Has something changed? If so, please update your documentation. Documentation: http...

lcastro by L0 Member
  • 3733 Views
  • 3 replies
  • 0 Likes

Using API to reset IPSEC tunnel

I have a need to automate issuing test and clear commands to IPSEC vpn tunnels and gateways. This seems very straight forward using panxapi or curl. The concern I have is that there does not seem to be any checking that the tunnel exists. When you issue the command to test/clear from the CLI and you specify a bad name it errors out. When you do ...

Resolved! how to generate a local certificate with python APi

I have the following api-python code to generate a local certificate but this not work import pan.xapiimport sysimport getpassadmin = raw_input("AdminFw:")pwd = getpass.getpass(prompt='Admin Password :',stream=None)hst = raw_input("Host:") try:xapi = pan.xapi.PanXapi(tag='pa-3060', api_username=admin, api_password=pwd, hostname=hst)except pan.xa...

Can I script through CLI to run reports with custom reports

I am having an issue getting the "email scheduler" to send custom reports properly. Essentially we want a report, that covers 7 days worth of data/logs that will be sent every week via email to a group of people, preferably via CSV format; however speaking with PA support on this issue there is a pending feature request (low priority, so no inf...

using Panorama as a proxy for api calls

I read that you are supposed to be able to use Panorama as a proxy to update DAG on managed firewalls. As far as I know, DAG are part of the User-ID section but when I browse to /api on my Panorama there isn't a User-ID section. Could someone explain how to use Panorama as a proxy to update Dynamic Address Groups on devices managed by Panorama?

pieters by L1 Bithead
  • 2857 Views
  • 2 replies
  • 0 Likes
  • 1031 Posts
  • 68 Subscriptions