Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paloaltonetworks/pcs-compare-csv-accounts-to-tenant
Utilize a CSV list of accounts to see if a list of accounts exists in a Prisma Cloud tenant
https://github.com/paloaltonetworks/pcs-compare-csv-accounts-to-tenant
csv prisma-cloud python
Last synced: 1 day ago
JSON representation
Utilize a CSV list of accounts to see if a list of accounts exists in a Prisma Cloud tenant
- Host: GitHub
- URL: https://github.com/paloaltonetworks/pcs-compare-csv-accounts-to-tenant
- Owner: PaloAltoNetworks
- Created: 2021-03-05T21:40:43.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T18:15:40.000Z (almost 4 years ago)
- Last Synced: 2024-12-26T23:56:20.186Z (17 days ago)
- Topics: csv, prisma-cloud, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 9
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Prisma Cloud CSV account checker
Version: *1.0*
Author: *Marc Hobson*### Summary
This script will ingest a ```.csv``` file with a header named ```Id``` and the following entries in that column being
cloud account ID's; ex. AWS: 012345678901, GCP: project-123, and compare the ```.csv``` to the accounts already onboarded
into a Prisma Cloud tenant. The script will then create a new ```.csv``` with an additional ```InPCS``` header and
mark ```yes``` or ```no``` in that column if it has already been onboarded.#### CSV Table example:
Input:
|Id|
|--------|
|01234|Output:
|Id|InPCS|
|--------|--------|
|01234| yes |
|56789| no |### Requirements and Dependencies
1. Python 3.7 or newer
2. OpenSSL 1.0.2 or newer
(if using on Mac OS, additional items may be nessessary.)
3. Pip
```sudo easy_install pip```
4. Requests (Python library)
```sudo pip install requests```
5. YAML (Python library)
```sudo pip install pyyaml```
### Configuration
1. Create CSV file with header ```Id``` and paste the cloud account ID's below that header in the same column.
2. Place the CSV file to be checked in the ```/main``` directory of this repository after pulling down from GitHub.
3. Navigate to ```config/configs.yml```
4. Fill out your Prisma Cloud access key/secret, stack info, and CSV filename to be scanned.
*To determine stack, look at your browser when access console (appX.prismacloud.io, where X is the stack number.
Change this to apiX.prismacloud.io and populate it in the configs.yml.
Or go here for more information:* https://api.docs.prismacloud.io/### Run
```
python main.py
```