Skip to main content

occurrences_notes

Creates, updates, deletes, gets or lists an occurrences_notes resource.

Overview

Nameoccurrences_notes
TypeResource
Idgoogle.containeranalysis.occurrences_notes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].
attestationobjectA note describing an attestation role. (id: AttestationNote)
buildobjectA note describing build provenance for a verifiable build. (id: BuildNote)
complianceobjectA note describing a compliance check. (id: ComplianceNote)
createTimestring (google-datetime)Output only. The time this note was created. This field can be used as a filter in list requests.
deploymentobjectA note describing something that can be deployed. (id: DeploymentNote)
discoveryobjectA note describing the initial analysis of a resource. (id: DiscoveryNote)
dsseAttestationobjectA note describing a dsse attestation note. (id: DSSEAttestationNote)
expirationTimestring (google-datetime)Time of expiration for this note. Empty if note does not expire.
imageobjectA note describing a base image. (id: ImageNote)
kindstringOutput only. The type of analysis. This field can be used as a filter in list requests.
longDescriptionstringA detailed description of this note.
packageobjectA note describing a package hosted by various package managers. (id: PackageNote)
relatedNoteNamesarrayOther notes related to this note.
relatedUrlarrayURLs associated with this note.
sbomReferenceobjectA note describing an SBOM reference. (id: SBOMReferenceNote)
secretobjectA note describing a secret. (id: SecretNote)
shortDescriptionstringA one sentence description of this note.
updateTimestring (google-datetime)Output only. The time this note was last updated. This field can be used as a filter in list requests.
upgradeobjectA note describing available package upgrades. (id: UpgradeNote)
vulnerabilityobjectA note describing a package vulnerability. (id: VulnerabilityNote)
vulnerabilityAssessmentobjectA note describing a vulnerability assessment. (id: VulnerabilityAssessmentNote)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_occurrences_get_notesselectprojectsId, locationsId, occurrencesIdGets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
projects_occurrences_get_notesselectprojectsId, occurrencesIdGets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

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
occurrencesIdstring
projectsIdstring

SELECT examples

Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.

SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
expirationTime,
image,
kind,
longDescription,
package,
relatedNoteNames,
relatedUrl,
sbomReference,
secret,
shortDescription,
updateTime,
upgrade,
vulnerability,
vulnerabilityAssessment
FROM google.containeranalysis.occurrences_notes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND occurrencesId = '{{ occurrencesId }}' -- required;