A Policy in Oracle Cloud Infrastructure (OCI) is a resource that defines permissions for groups of users to access specific cloud resources within a tenancy. Policies are written in a human-readable language and allow administrators to control access at the compartment or tenancy level. They provide fine-grained authorization by specifying who can access which resources and what actions they can perform, ensuring secure and organized management of cloud environments.

oci.identity_policy

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 Policy.
created_atcoretimestampTime when the resource has been created.
descriptioncorestringThe value to assign to the description property of this Policy.
freeform_tagscorehstoreThe value to assign to the freeform_tags property of this Policy.
idcorestringThe value to assign to the id property of this Policy.
inactive_statuscoreint64The value to assign to the inactive_status property of this Policy.
lifecycle_statecorestringThe value to assign to the lifecycle_state property of this Policy. 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 Policy.
region_idcorestringThe region this resource resides within.
resource_typecorestringThe name of the resource type.
statementscorearray<string>The value to assign to the statements property of this Policy.
tagscorehstore_csv
time_createdcoretimestampThe value to assign to the time_created property of this Policy.
updated_atcoretimestampTime when the resource has been updated the last time.
version_datecoretimestampThe value to assign to the version_date property of this Policy.
zone_idcorestringThe zone this resource resides within.