A Compartment in Oracle Cloud Infrastructure (OCI) is a logical container used to organize and isolate cloud resources. It helps manage access control, resource grouping, and governance by allowing administrators to apply policies at the compartment level. Compartments can be nested, enabling flexible structuring of resources to match organizational needs.

oci.identity_compartment

Fields

TitleIDTypeData TypeDescription
_keycorestring
cloud_account_idcorestringThe identifier of the related cloud account. The concept of an account might have different names in different cloud providers. AWS is calling it account, GCP calls it project and Azure uses the term subscription.
cloud_account_namecorestringThe name of the account this resource belongs to.
cloud_providercorestringThe name of the cloud provider.
cloud_tagscorehstore
compartment_idcorestringThe value to assign to the compartment_id property of this Compartment.
created_atcoretimestampTime when the resource has been created.
descriptioncorestringThe value to assign to the description property of this Compartment.
freeform_tagscorehstoreThe value to assign to the freeform_tags property of this Compartment.
idcorestringThe value to assign to the id property of this Compartment.
inactive_statuscoreint64The value to assign to the inactive_status property of this Compartment.
is_accessiblecoreboolThe value to assign to the is_accessible property of this Compartment.
lifecycle_statecorestringThe value to assign to the lifecycle_state property of this Compartment. Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
namecorestringThe value to assign to the name property of this Compartment.
region_idcorestringThe region this resource resides within.
resource_typecorestringThe name of the resource type.
tagscorehstore_csv
time_createdcoretimestampThe value to assign to the time_created property of this Compartment.
updated_atcoretimestampTime when the resource has been updated the last time.
zone_idcorestringThe zone this resource resides within.