Data Source: oci_identity_policies

This data source provides the list of Policies in Oracle Cloud Infrastructure Identity service.

Lists the policies in the specified compartment (either the tenancy or another of your compartments). See Where to Get the Tenancy’s OCID and User’s OCID.

To determine which policies apply to a particular group or compartment, you must view the individual statements inside all your policies. There isn’t a way to automatically obtain that information via the API.

Example Usage

data "oci_identity_policies" "test_policies" {
	#Required
	compartment_id = var.tenancy_ocid

	#Optional
	name = var.policy_name
	state = var.policy_state
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Policy Reference

The following attributes are exported: