oci_vulnerability_scanning_container_scan_target

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

Creates a new ContainerScanTarget. A container scan target specifies a group of one or more Docker image repositories in Oracle Cloud Infrastructure Registry (OCIR) that you want routinely scanned for security vulnerabilities.

Example Usage

resource "oci_vulnerability_scanning_container_scan_target" "test_container_scan_target" {
	#Required
	compartment_id = var.compartment_id
	container_scan_recipe_id = oci_vulnerability_scanning_container_scan_recipe.test_container_scan_recipe.id
	target_registry {
		#Required
		compartment_id = var.compartment_id
		type = var.container_scan_target_target_registry_type

		#Optional
		repositories = var.container_scan_target_target_registry_repositories
		url = var.container_scan_target_target_registry_url
	}

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.container_scan_target_description
	display_name = var.container_scan_target_display_name
	freeform_tags = {"bar-key"= "value"}
}

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

Import

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

$ terraform import oci_vulnerability_scanning_container_scan_target.test_container_scan_target "id"