Skip to content

Files

Latest commit

f112148 · May 7, 2025

History

History

tools

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 8, 2022
Jan 27, 2025
Apr 26, 2024
Nov 8, 2022
Mar 23, 2022
Dec 20, 2023
Mar 23, 2022
Nov 17, 2023
May 7, 2025
Mar 23, 2022
Nov 17, 2023
Sep 18, 2023
Mar 17, 2021
Oct 2, 2018
Oct 17, 2023

Updating Palo Alto Application Definitions

Palo Alto application definitions can be pulled from a firewall or Panorama device via their web APIs.

To pull the definitions you'll need an API key. You can issue a GET request to the keygen API providing a username and password (replace the IP address and <USERNAME> and <PASSWORD> below):

curl -X GET 'https://10.0.0.1/api/?type=keygen&user=<USERNAME>&password=<PASSWORD>'

Once you have that API key, you can substitute it in below for <KEY>, in the actual config query to pull application definitions:

curl -X GET 'https://10.0.0.1/api/?key=<KEY>&type=config&action=get&xpath=/config/predefined/application' > palo_alto_applications.xml

Once you have the application definition XML (palo_alto_applications.xml), run the script to generate the file needed for Batfish:

bazel run //tools:generate_pan_apps