Listing Compartments

Learn how to view the compartments in an an IAM tenancy.

    1. Open the navigation menu  and select Identity & Security. Under Identity, select Compartments.

      A list of the compartments in your tenancy is displayed.

    2. Select a compartment to view a list of the child compartments.
  • Use the list command and required parameters to view the compartments in a specified compartment:

    oci iam compartment list

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the ListCompartment operation to list the compartments in a specified compartment.