Data Source: oci_dblm_vulnerability_scans
This data source provides the list of Vulnerability Scans in Oracle Cloud Infrastructure Dblm service.
Gets a list of VulnerabilityScans.
Example Usage
data "oci_dblm_vulnerability_scans" "test_vulnerability_scans" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.vulnerability_scan_display_name
time_created_greater_than = var.vulnerability_scan_time_created_greater_than
time_ended_less_than = var.vulnerability_scan_time_ended_less_than
vulnerability_scan_id = oci_dblm_vulnerability_scan.test_vulnerability_scan.id
vulnerability_scan_status = var.vulnerability_scan_vulnerability_scan_status
vulnerability_scan_type = var.vulnerability_scan_vulnerability_scan_type
}
Argument Reference
The following arguments are supported:
compartment_id
- (Optional) The ID of the compartment in which to list resources.display_name
- (Optional) A filter to return only resources that match the entire display name given.time_created_greater_than
- (Optional) The created greater than.time_ended_less_than
- (Optional) The time ended less than.vulnerability_scan_id
- (Optional) The ID of the vulnerability scan.vulnerability_scan_status
- (Optional) Filter by one or more vulnerability scan status. Possible values are completed, running, completed with error, aborted.vulnerability_scan_type
- (Optional) The scan type to use is ‘CVE’, ‘PATCH’ or ‘IMAGE_PATCH’.
Attributes Reference
The following attributes are exported:
vulnerability_scan_collection
- The list of vulnerability_scan_collection.
VulnerabilityScan 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