oci_iam_list_compartments
List compartments in an OCI tenancy hierarchy. Specify a parent compartment OCID to filter child compartments and set a limit to control the number of results.
Instructions
List compartments in the tenancy hierarchy
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum compartments to return | |
| compartment_id | No | Parent compartment OCID (defaults to tenancy) |