Data Source: oci_vulnerability_scanning_container_scan_target
This data source provides details about a specific Container Scan Target resource in Oracle Cloud Infrastructure Vulnerability Scanning service.
Gets a ContainerScanTarget identified by the target ID. 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
data "oci_vulnerability_scanning_container_scan_target" "test_container_scan_target" {
#Required
container_scan_target_id = oci_vulnerability_scanning_container_scan_target.test_container_scan_target.id
}
Argument Reference
The following arguments are supported:
container_scan_target_id
- (Required) unique ContainerScanTarget identifier
Attributes Reference
The following attributes are exported:
compartment_id
- The OCID of the container scan target’s compartmentcontainer_scan_recipe_id
- ID of the container scan recipe this target applies.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- Target description.display_name
- User friendly name of container scan targetfreeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
id
- The OCID of container scan target. Immutable and generated on creation.state
- The current state of the config.system_tags
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:{"orcl-cloud.free-tier-retained": "true"}
target_registry
- Registry information for a container scan targetcompartment_id
- The OCID of the compartment to perform the scans in. All listed repositories must be in the compartment.repositories
- List of repositories to scan images in. If left empty, the target defaults to scanning all repos in the compartmentIdtype
- The scan levelurl
- URL of the registry.
time_created
- Date and time the target was created, format as described in RFC 3339time_updated
- Date and time the target was last updated, format as described in RFC 3339