oci_dblm_vulnerability_scan
This resource provides the Vulnerability Scan resource in Oracle Cloud Infrastructure Dblm service.
Creates a VulnerabilityScan.
Example Usage
resource "oci_dblm_vulnerability_scan" "test_vulnerability_scan" {
#Required
compartment_id = var.compartment_id
vulnerability_scan_type = var.vulnerability_scan_vulnerability_scan_type
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) Compartment Identifiervulnerability_scan_type
- (Required) Vulnerability Scan type is CVE, PATCH or IMAGE_PATCH
** 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:
compartment_id
- The OCID of the compartment.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
display_name
- A user-friendly name. It does not have to be unique, and it is changeable.freeform_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 the VulnerabilityScan.state
- The current state of the VulnerabilityScan.system_tags
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}
time_created
- The date and time the VulnerabilityScan was created, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z
time_ended
- The date and time the VulnerabilityScan was updated, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z
vulnerability_scan_message
- The message of the vulnerability scan status.vulnerability_scan_status
- The status of the vulnerability scan.vulnerability_scan_type
- Scan type is CVE, PATCH or IMAGE_PATCH
Timeouts
The timeouts
block allows you to specify timeouts for certain operations:
* create
- (Defaults to 20 minutes), when creating the Vulnerability Scan
* update
- (Defaults to 20 minutes), when updating the Vulnerability Scan
* delete
- (Defaults to 20 minutes), when destroying the Vulnerability Scan
Import
VulnerabilityScans can be imported using the id
, e.g.
$ terraform import oci_dblm_vulnerability_scan.test_vulnerability_scan "id"