Data Source: oci_data_safe_discovery_analytics
This data source provides the list of Discovery Analytics in Oracle Cloud Infrastructure Data Safe service.
Gets consolidated discovery analytics data based on the specified query parameters. If CompartmentIdInSubtreeQueryParam is specified as true, the behaviour is equivalent to accessLevel “ACCESSIBLE” by default.
Example Usage
data "oci_data_safe_discovery_analytics" "test_discovery_analytics" {
#Required
compartment_id = var.compartment_id
#Optional
compartment_id_in_subtree = var.discovery_analytic_compartment_id_in_subtree
group_by = var.discovery_analytic_group_by
is_common = var.discovery_analytic_is_common
sensitive_data_model_id = oci_data_safe_sensitive_data_model.test_sensitive_data_model.id
sensitive_type_id = oci_data_safe_sensitive_type.test_sensitive_type.id
target_id = oci_cloud_guard_target.test_target.id
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) A filter to return only resources that match the specified compartment OCID.compartment_id_in_subtree
- (Optional) Default is false. When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned. Depends on the ‘accessLevel’ setting.group_by
- (Optional) Attribute by which the discovery analytics data should be grouped.is_common
- (Optional) A filter to return only the common sensitive type resources. Common sensitive types belong to library sensitive types which are frequently used to perform sensitive data discovery.sensitive_data_model_id
- (Optional) A filter to return only the resources that match the specified sensitive data model OCID.sensitive_type_id
- (Optional) A filter to return only items related to a specific sensitive type OCID.target_id
- (Optional) A filter to return only items related to a specific target OCID.
Attributes Reference
The following attributes are exported:
discovery_analytics_collection
- The list of discovery_analytics_collection.
DiscoveryAnalytic Reference
The following attributes are exported:
items
- An array of discovery analytics summary objects.count
- The total count for the aggregation metric.dimensions
- The scope of analytics data.sensitive_data_model_id
- The OCID of the sensitive data model.sensitive_type_id
- The OCID of the sensitive type.target_id
- The OCID of the target database.
metric_name
- The name of the aggregation metric.