This directory contains useful scripts for querying data from OCI CLoud Guard.
The get_cg_sz_data.py
script gets the following data from Cloud Guard and Security Zones.
- Cloud Guard Data (Flag:
-cg True
)- All Cloud Guard responders saved as
all_responders.csv
- All Cloud Guard detectors saved as
all_detectors.csv
- All Cloud Guard recommendations saved as
all_recommendations.csv
- All Cloud Guard problems saved as
all_problems.csv
- All Cloud Guard responders saved as
- Security Zones Data (Flag:
-sz True
)- Security Zones polices saved as security_zone_policies.csv
- Download the python script:
wget https://raw.githubusercontent.com/Halimer/oci-scripts/master/cloud_guard/get_cg_sz_data.py
- Create a virtual environment:
python3 -m venv oci_scripts_venv
- Source the environment:
source oci_scripts_venv/bin/activate
- Install the dependences:
pip3 install oci
- Source the environment:
source oci_scripts_venv/bin/activate
- Run the script:
python3 get_cg_sz_data.py -sz True
- Source the environment:
source oci_scripts_venv/bin/activate
- Run the script:
python3 get_cg_sz_data.py -dt -cg True
- Source the environment:
source oci_scripts_venv/bin/activate
- Run the script:
python3 get_cg_sz_data.py -cg True -sz True