Utility to print or export all CloudGenix ServiceLinks to Prisma.
Project description
Cloudgenix Get Prisma
Requirements
- Active CloudGenix Account
- Python >=3.7 (may work on lower)
- Python modules:
- cloudgenix >= 5.4.1b1 - https://github.com/CloudGenix/sdk-python
- cloudgenix_idname >= 2.0.1 - https://github.com/ebob9/cloudgenix-idname
- tabulate == 0.8.7 - https://github.com/astanin/python-tabulate
License
MIT
Installation:
- Via PIP:
pip install --upgrade cloudgenix_get_prisma
- Via download: Clone/Download, and from the directory run
./get_prisma_servicelinks.py
Usage:
To authenticate, set AUTH_TOKEN in an environment variable
export AUTH_TOKEN="<Your AUTH_TOKEN text here>"
Otherwise, script will prompt you for username/password or SAML2 login info and log in interactively.
Once authenticated, if no arguments - will print table:
edwards-mbp-pro:cloudgenix_get_prisma aaron$ get_prisma_servicelinks
Site Element Interface Element Online Admin State Operational State Extended State Prisma Remote On-boarding Parent Interface
-------- --------------- ------------------------------------ ---------------- ------------- ------------------- ---------------- --------------------------- ------------------
Branch 3 Branch 3 ION 3K AUTO-PRISMA_IPSEC-Tunnel_us-west-1_1 Online True up tunnel_up AUTO-CGX_ecmp-3 1
Branch 3 Branch 3 ION 3K AUTO-PRISMA_IPSEC-Tunnel_us-west-1_4 Online True up tunnel_up AUTO-CGX_ecmp-3 4
Branch 2 Branch 2 ION 3K AUTO-PRISMA_IPSEC-Tunnel_us-east-1_1 Online True up tunnel_up AUTO-CGX_ecmp-2 1
Branch 2 Branch 2 ION 3K AUTO-PRISMA_IPSEC-Tunnel_us-east-1_4 Online True up tunnel_up AUTO-CGX_ecmp-2 4
Branch 1 Branch 1 ION 3K AUTO-PRISMA_IPSEC-Tunnel_us-east-1_1 Online True up tunnel_up AUTO-CGX_remotenet-1 1
edwards-mbp-pro:cloudgenix_get_prisma aaron$
Can also use --csv-output-file
command line switch to save output as CSV.
Full options available when run with --help
.
Version
Version | Changes |
---|
1.0.0| Initial Release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for cloudgenix_get_prisma-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 275bfe6b12141667440a8882b78960cd23aea89063053e9326bbdf01671373d7 |
|
MD5 | 3a4b7bb90bcda67fd23452235c894cca |
|
BLAKE2b-256 | 303ae1b8f90e72063a3421250a682f4ce581070f8e0d62daa08b2b5d0316a382 |