Skip to main content

Utility to interact with Prisma via Panorama.

Project description

Prisma Get Info

Requirements

  • Panorama with cloud_services plugin v1.8 or higher (Prisma Access)
  • Python >=3.7 (may work on lower)
  • Python modules:

License

MIT

Installation:

  • Via PIP: pip install --upgrade prisma_get_info
  • Via download: Clone/Download, and from the directory run ./get_prisma_spn.py

Usage:

Run prisma_get_spn or prisma_get.spn.py depending on how downloaded/installed.

edwards-mbp-pro:prisma_get_info aaron$ prisma_get_spn
Panorama Hostname: panorama-test.mydomain.org
Panorama Username: aaron
Panorama Password: 
us-east             us-southwest
------------------  ----------------------
us-east-clementine  us-southwest-kumarahou
                    us-southwest-poplar
edwards-mbp-pro:prisma_get_info aaron$

Can also use --output-json-file command line switch to save output as JSON file:

{
    "us-east": [
        "us-east-clementine"
    ],
    "us-southwest": [
        "us-southwest-kumarahou",
        "us-southwest-poplar"
    ]
}

Full options available when run with --help.

Version

Version Changes
1.0.1 Initial Release.

Arguments

edwards-mbp-pro:prisma_get_info aaron$ prisma_get_spn --help
usage: prisma_get_spn [-h] [--host HOST] [--user USER] [--pass PASS] [--panorama-api-key PANORAMA_API_KEY]
                      [--tenant TENANT] [--output-json-file OUTPUT_JSON_FILE]

Prisma get Info (managed by Panorama).

optional arguments:
  -h, --help            show this help message and exit

API:
  These options change how this program connects to the API.

  --host HOST           Panorama hostname or IP (or ENV var PANORAMA_HOST). If not entered, will prompt.
  --user USER           Panorama username (or ENV var PANORAMA_USERNAME). If not entered, will prompt.
  --pass PASS           Panorama password (or ENV var PANORAMA_PASSWORD). If not entered, will prompt.
  --panorama-api-key PANORAMA_API_KEY
                        Authenticate with Panorama API KEY instead of username/password.
  --tenant TENANT       Tenant name (if multi-tenancy is enabled.)

Output:
  These options change how the output is generated.

  --output-json-file OUTPUT_JSON_FILE
                        Output as JSON to this specified file name
edwards-mbp-pro:prisma_get_info aaron$

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_get_info-1.0.1b1.tar.gz (12.6 kB view details)

Uploaded Source

File details

Details for the file prisma_get_info-1.0.1b1.tar.gz.

File metadata

  • Download URL: prisma_get_info-1.0.1b1.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.7

File hashes

Hashes for prisma_get_info-1.0.1b1.tar.gz
Algorithm Hash digest
SHA256 40d8eb34ffaa7d355f8f2752f26eb8846361c40b86e39da8260152f58976f660
MD5 f23fd4ea2421772d5e1996ce17313599
BLAKE2b-256 b1d3fbfaacae7df0ea406a014aa44ef398f8c33369e7a8c14f3b26d8081b95af

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