oci_vulnerability_scanning_host_scan_target

This resource provides the Host Scan Target resource in Oracle Cloud Infrastructure Vulnerability Scanning service.

Creates a new HostScanTarget. A host scan target is a collection of compute instances that you want routinely scanned for security vulnerabilities.

Example Usage

resource "oci_vulnerability_scanning_host_scan_target" "test_host_scan_target" {
	#Required
	compartment_id = var.compartment_id
	host_scan_recipe_id = oci_vulnerability_scanning_host_scan_recipe.test_host_scan_recipe.id
	target_compartment_id = oci_identity_compartment.test_compartment.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.host_scan_target_description
	display_name = var.host_scan_target_display_name
	freeform_tags = {"bar-key"= "value"}
	instance_ids = var.host_scan_target_instance_ids
}

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 Host Scan Target * update - (Defaults to 20 minutes), when updating the Host Scan Target * delete - (Defaults to 20 minutes), when destroying the Host Scan Target

Import

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

$ terraform import oci_vulnerability_scanning_host_scan_target.test_host_scan_target "id"