Scripts I created for OCI (Oracle Cloud Infrastructure)
Bash script to display the names and IDs of all compartments and subcompartments in a OCI tenant using OCI CLI
prerequisites : OCI CLI installed and OCI config file configured with profiles
Similar to OCI_compartments_list.sh with formatted output (color and indent to easily identify parents of subcompartments)
Bash script to list the instance names and IDs in all compartments and subcompartments in a OCI tenant in a region using OCI CLI
prerequisites : OCI CLI installed and OCI config file configured with profiles
Bash script to list OCI objects in a compartment in a region using OCI CLI
Note: it does not list the objects in subcompartments
Supported objects:
- Compute : compute instances, custom images, boot volumes, boot volumes backups
- Block Storage : block volumes, block volumes backups, volume groups, volume groups backups
- Object Storage: buckets
- File Storage : filesystems, mount targets
- Network : VCNs, DRGs, CPEs, IPsec connections, Public IPs
- IAM : Policies
prerequisites : jq installed, OCI CLI installed and OCI config file configured with profiles