FIND COMPARTMENT ID IN ORACLE CLOUD (OCI)

To find the list of compartment and their details use the below command

kishankish@cloudshell:~ (xx-xxx-1)$ oci iam compartment list --all
{
  "data": [
    {
      "compartment-id": "ocid1.tenancy.oc1..aaaaaaaaqnkop4qljndjinhueg4av4kwy2r4sp4pkijfbios7gqjkrj2ajvq",
      "defined-tags": {},
      "description": "idcs-7c998b53e6994853b89fdce2610ce096|23806255|kishankish905@gmail.com-991299",
      "freeform-tags": {},
      "id": "ocid1.compartment.oc1..aaaaaaaao4jlpizbnbaoya6bn6rnq4w736dctkptpn2s2e42bf5dzln5kvmq",
      "inactive-status": null,
      "is-accessible": null,
      "lifecycle-state": "ACTIVE",
      "name": "ManagedCompartmentForPaaS",
      "time-created": "2021-08-17T10:57:40.268000+00:00"
    }
  ]
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s