Skip to main content

vulnerabilities

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

Overview

Namevulnerabilities
TypeResource
Idgoogle.ondemandscanning.vulnerabilities

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].
attestationobjectDescribes an attestation of an artifact. (id: AttestationOccurrence)
buildobjectDescribes a verifiable build. (id: BuildOccurrence)
complianceobjectDescribes a compliance violation on a linked resource. (id: ComplianceOccurrence)
createTimestring (google-datetime)Output only. The time this occurrence was created.
deploymentobjectDescribes the deployment of an artifact on a runtime. (id: DeploymentOccurrence)
discoveryobjectDescribes when a resource was discovered. (id: DiscoveryOccurrence)
dsseAttestationobjectDescribes an attestation of an artifact using dsse. (id: DSSEAttestationOccurrence)
envelopeobjecthttps://github.com/secure-systems-lab/dsse (id: Envelope)
imageobjectDescribes how this resource derives from the basis in the associated note. (id: ImageOccurrence)
kindstringOutput only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
noteNamestringRequired. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.
packageobjectDescribes the installation of a package on the linked resource. (id: PackageOccurrence)
remediationstringA description of actions that can be taken to remedy the note.
resourceUristringRequired. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc for a Docker image.
sbomReferenceobjectDescribes a specific SBOM reference occurrences. (id: SBOMReferenceOccurrence)
secretobjectDescribes a secret. (id: SecretOccurrence)
updateTimestring (google-datetime)Output only. The time this occurrence was last updated.
upgradeobjectDescribes an available package upgrade on the linked resource. (id: UpgradeOccurrence)
vulnerabilityobjectDescribes a security vulnerability. (id: VulnerabilityOccurrence)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectprojectsId, locationsId, scansIdpageSize, pageTokenLists vulnerabilities resulting from a successfully completed scan.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
scansIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Lists vulnerabilities resulting from a successfully completed scan.

SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
FROM google.ondemandscanning.vulnerabilities
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND scansId = '{{ scansId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';