List compartments
list_compartmentsRecursively lists compartments in an OCI tenancy, excluding those outside the configured allowlist. Enables discovery of accessible compartments for resource mapping and Terraform generation.
Instructions
List compartments in the tenancy (recursively). Compartments outside the allowlist are filtered out.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootCompartmentId | No | OCID to list under (defaults to the tenancy root) |