A resource in Oracle Cloud Infrastructure (OCI) is identified by a unique identifier called an Oracle Cloud Identifier (OCID). The OCID is a string that uniquely identifies every resource within OCI, such as users, groups, instances, volumes, VCNs, and more
. The OCID follows a specific syntax:
ocid1.<RESOURCE TYPE>.<REALM>.[REGION][.FUTURE USE].<UNIQUE ID>
- ocid1: Indicates the version of the OCID.
- RESOURCE TYPE: The type of resource (e.g., instance, volume, user, group).
- REALM: The realm where the resource resides, such as
oc1
for commercial,oc2
for government cloud, oroc3
for federal government cloud. - REGION: The geographical region of the resource (e.g.,
phx
,iad
,eu-frankfurt-1
). This may be blank if the resource is not regional. - FUTURE USE: Reserved for future use, currently blank.
- UNIQUE ID: A unique string that distinguishes the resource within its type and scope
This OCID is used in the OCI Console, APIs, CLI, and Terraform to reference and manage resources uniquely across the cloud environment
. In summary, the OCID is the fundamental way OCI identifies and tracks resources uniquely across its cloud infrastructure.