List compartments
list_compartmentsRetrieve compartments recursively within an OCI tenancy, starting from the tenancy root or a given OCID, while filtering out those outside the allowlist.
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) |