Data Source: oci_data_safe_security_assessment_template_analytics

This data source provides the list of Security Assessment Template Analytics in Oracle Cloud Infrastructure Data Safe service.

Gets a list of template aggregated details in the specified compartment. This provides information about the overall template usage, by returning the count of the target databases/target groups using the templates. It also provides information about the statistics for the template baseline and the comparison related. If the comparison is done, it will show if there is any drift, and how many checks have drifts. The dimension field - isGroup identifies if the targetId belongs to a target group or a individual target. The dimension field - isCompared identifies if the comparison between the latest assessment and the template baseline assessment is done or not. The dimension field - isCompliant identifies if the latest assessment is compliant with the template baseline assessment or not. The dimension field - totalChecksFailed identifies how many checks in the template have drifts in the comparison.

When you perform the ListTemplateAnalytics operation, if the parameter compartmentIdInSubtree is set to “true,” and if the parameter accessLevel is set to ACCESSIBLE, then the operation returns statistics from the compartments in which the requestor has INSPECT permissions on at least one resource, directly or indirectly (in subcompartments). If the operation is performed at the root compartment and the requestor does not have access to at least one subcompartment of the compartment specified by compartmentId, then “Not Authorized” is returned.

Example Usage

data "oci_data_safe_security_assessment_template_analytics" "test_security_assessment_template_analytics" {
	#Required
	compartment_id = var.compartment_id

	#Optional
	access_level = var.security_assessment_template_analytic_access_level
	compartment_id_in_subtree = var.security_assessment_template_analytic_compartment_id_in_subtree
	is_compared = var.security_assessment_template_analytic_is_compared
	is_compliant = var.security_assessment_template_analytic_is_compliant
	is_group = var.security_assessment_template_analytic_is_group
	target_database_group_id = oci_data_safe_target_database_group.test_target_database_group.id
	target_id = oci_cloud_guard_target.test_target.id
	template_assessment_id = oci_data_safe_template_assessment.test_template_assessment.id
	template_baseline_assessment_id = oci_data_safe_template_baseline_assessment.test_template_baseline_assessment.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

SecurityAssessmentTemplateAnalytic Reference

The following attributes are exported: