Skip to main content

Python3 SDK for the Prisma SASE AppFabric

Project description

PyPI PyPI - Python Version Downloads PyPI - License GitHub issues

Palo Alto Networks Prisma SASE Python SDK v6.5.1b1

Python3 SDK for the Prisma SASE AppFabric

Synopsis

Intended to be a small, lightweight SDK wrapper around the Prisma SASE API for easy use. Initial version requires knowledge of JSON/Dict objects for POST/PUT/PATCH operations.

Requirements

Code Example

Comes with example.py that shows usage to get a JSON list of sites.

Super-simplified example code (rewrite of example.py in ~4 lines of code):

# Import the Prisma SASE SDK API constructor and JSON response pretty printer
from prisma_sase import API, jd

# Instantiate the Prisma SASEx API constructor
sdk = API()

# Call Prisma SASE API login using the Interactive helpers (Handle SAML2.0 login and MSP functions too!).
sdk.interactive.login_secret(client_id='api_user1@1111111111.iam.panserviceaccount.com', 
                             client_secret='xxxxxx', 
                             tsg_id=1111111111)

# Print a dump of the list of sites for your selected account
jd(sdk.get.sites())

License

MIT

Version

Version Build Changes
6.5.1 b1 Support for November 2024 Controller release.
6.4.2 b1 Support for August 2024 Controller release.
6.4.1 b1 Support for March 2024 Controller release.
6.3.2 b1 Support for Febuary 2024 Controller release.
6.3.1 b1 Support for November 2023 Controller release.
6.2.3 b1 Support for August 2023 Controller release.
6.2.2 b1 Support for June 2023 Controller release.
6.2.1 b1 Support for April 2023 Controller release.
6.1.2 b1 Support for January 2023 Controller release.
6.1.1 b1 Support for November 2022 Controller release.
6.0.1 b1 Support for May 2022 Controller release.

For more info

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prisma-sase-6.5.1b1.tar.gz (124.4 kB view details)

Uploaded Source

File details

Details for the file prisma-sase-6.5.1b1.tar.gz.

File metadata

  • Download URL: prisma-sase-6.5.1b1.tar.gz
  • Upload date:
  • Size: 124.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/6.7.0 pkginfo/1.7.1 requests/2.31.0 requests-toolbelt/1.0.0 tqdm/4.67.0 CPython/3.7.12

File hashes

Hashes for prisma-sase-6.5.1b1.tar.gz
Algorithm Hash digest
SHA256 ae78081e018bc51b83d72f59a11d99fbd7e6e5ed29a75619f04934c62b28df10
MD5 3fca972bfe2b75a68afe3801d895967d
BLAKE2b-256 3f1998822f25e50722589aae510e05741a56dd06c57a65bcc208d19e1a458d68

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page