pcs_rql_search 
This script will run RQL search and take the results and format them into CSV (based on current CSV output on Investigate page)
Prisma Cloud RQL search to CSV
Version: 1.0 Author: Eddie Beuerlein
Summary
This script will run RQL search and take the results and format them into CSV (based on current CSV output on Investigate page)
Requirements and Dependencies
-
Python 3.7 or newer
-
OpenSSL 1.0.2 or newer
(if using on Mac OS, additional items may be nessessary.)
- Pip
sudo easy_install pip
- Requests (Python library)
sudo pip install requests
- YAML (Python library)
sudo pip install pyyaml
Configuration
-
Navigate to
config/configs.yml
-
Fill out your Prisma Cloud access key/secret, stack info, and RQL to be run. (Ignore filename - this will be used in future.)
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