Data Source: oci_data_safe_attribute_sets

This data source provides the list of Attribute Sets in Oracle Cloud Infrastructure Data Safe service.

Retrieves the list of attribute sets.

The ListAttributeSets operation returns only the attribute sets in the specified compartmentId.

The parameter accessLevel specifies whether to return only those compartments for which the requester has INSPECT permissions on at least one resource directly or indirectly (ACCESSIBLE) (the resource can be in a subcompartment) or to return Not Authorized if Principal doesn’t have access to even one of the child compartments. This is valid only when compartmentIdInSubtree is set to true.

The parameter compartmentIdInSubtree applies when you perform ListAttributeSet on the compartmentId passed and when it is set to true, the entire hierarchy of compartments can be returned. To get a full list of all compartments and subcompartments in the tenancy (root compartment), set the parameter compartmentIdInSubtree to true and accessLevel to ACCESSIBLE.

Example Usage

data "oci_data_safe_attribute_sets" "test_attribute_sets" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	access_level = var.attribute_set_access_level
	attribute_set_id = oci_data_safe_attribute_set.test_attribute_set.id
	attribute_set_type = var.attribute_set_attribute_set_type
	compartment_id_in_subtree = var.attribute_set_compartment_id_in_subtree
	display_name = var.attribute_set_display_name
	in_use = var.attribute_set_in_use
	is_user_defined = var.attribute_set_is_user_defined
	state = var.attribute_set_state
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

AttributeSet Reference

The following attributes are exported: