Skip to main content

vulnerability_report

Creates, updates, deletes, gets or lists a vulnerability_report resource.

Overview

Namevulnerability_report
TypeResource
Idgoogle.osconfig.vulnerability_report

Fields

NameDatatypeDescription
namestringOutput only. The vulnerabilityReport API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport
updateTimestringOutput only. The timestamp for when the last vulnerability report was generated for the VM.
vulnerabilitiesarrayOutput only. List of vulnerabilities affecting the VM.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstancesId, locationsId, projectsIdGets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.

SELECT examples

Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.

SELECT
name,
updateTime,
vulnerabilities
FROM google.osconfig.vulnerability_report
WHERE instancesId = '{{ instancesId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';