oci_adm_vulnerability_audit

This resource provides the Vulnerability Audit resource in Oracle Cloud Infrastructure Adm service.

Creates a new Vulnerability Audit by providing a tree of Application Dependencies.

Example Usage

resource "oci_adm_vulnerability_audit" "test_vulnerability_audit" {
	#Required
	knowledge_base_id = oci_adm_knowledge_base.test_knowledge_base.id

	#Optional
	application_dependencies {
		#Required
		node_id = oci_adm_node.test_node.id

		#Optional
		application_dependency_node_ids = var.vulnerability_audit_application_dependencies_application_dependency_node_ids
		gav = var.vulnerability_audit_application_dependencies_gav
		purl = var.vulnerability_audit_application_dependencies_purl
	}
	build_type = var.vulnerability_audit_build_type
	compartment_id = var.compartment_id
	configuration {

		#Optional
		exclusions = var.vulnerability_audit_configuration_exclusions
		max_permissible_cvss_v2score = var.vulnerability_audit_configuration_max_permissible_cvss_v2score
		max_permissible_cvss_v3score = var.vulnerability_audit_configuration_max_permissible_cvss_v3score
		max_permissible_severity = var.vulnerability_audit_configuration_max_permissible_severity
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	display_name = var.vulnerability_audit_display_name
	freeform_tags = {"bar-key"= "value"}
	source {
		#Required
		type = var.vulnerability_audit_source_type

		#Optional
		description = var.vulnerability_audit_source_description
		oci_resource_id = oci_adm_oci_resource.test_oci_resource.id
	}
	usage_data {
		#Required
		bucket = var.vulnerability_audit_usage_data_bucket
		namespace = var.vulnerability_audit_usage_data_namespace
		object = var.vulnerability_audit_usage_data_object
		source_type = var.vulnerability_audit_usage_data_source_type
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Vulnerability Audit * update - (Defaults to 20 minutes), when updating the Vulnerability Audit * delete - (Defaults to 20 minutes), when destroying the Vulnerability Audit

Import

VulnerabilityAudits can be imported using the id, e.g.

$ terraform import oci_adm_vulnerability_audit.test_vulnerability_audit "id"