Data Source: oci_data_safe_masking_analytic
This data source provides details about a specific Masking Analytic resource in Oracle Cloud Infrastructure Data Safe service.
Gets consolidated masking 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_masking_analytic" "test_masking_analytic" {
#Required
compartment_id = var.compartment_id
#Optional
compartment_id_in_subtree = var.masking_analytic_compartment_id_in_subtree
group_by = var.masking_analytic_group_by
masking_policy_id = oci_data_safe_masking_policy.test_masking_policy.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 masking analytics data should be grouped.masking_policy_id
- (Optional) A filter to return only the resources that match the specified masking policy OCID.target_id
- (Optional) A filter to return only items related to a specific target OCID.
Attributes Reference
The following attributes are exported:
items
- An array of masking analytics summary objects.count
- The total count for the aggregation metric.dimensions
- The scope of analytics data.policy_id
- The OCID of the masking policy..target_id
- The OCID of the target database.
metric_name
- The name of the aggregation metric.