notes
Creates, updates, deletes, gets or lists a notes resource.
Overview
| Name | notes |
| Type | Resource |
| Id | google.containeranalysis.notes |
Fields
The following fields are returned by SELECT queries:
- projects_locations_notes_get
- projects_notes_get
- projects_locations_notes_list
- projects_notes_list
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. |
attestation | object | A note describing an attestation role. (id: AttestationNote) |
build | object | A note describing build provenance for a verifiable build. (id: BuildNote) |
compliance | object | A note describing a compliance check. (id: ComplianceNote) |
createTime | string (google-datetime) | Output only. The time this note was created. This field can be used as a filter in list requests. |
deployment | object | A note describing something that can be deployed. (id: DeploymentNote) |
discovery | object | A note describing the initial analysis of a resource. (id: DiscoveryNote) |
dsseAttestation | object | A note describing a dsse attestation note. (id: DSSEAttestationNote) |
expirationTime | string (google-datetime) | Time of expiration for this note. Empty if note does not expire. |
image | object | A note describing a base image. (id: ImageNote) |
kind | string | Output only. The type of analysis. This field can be used as a filter in list requests. |
longDescription | string | A detailed description of this note. |
package | object | A note describing a package hosted by various package managers. (id: PackageNote) |
relatedNoteNames | array | Other notes related to this note. |
relatedUrl | array | URLs associated with this note. |
sbomReference | object | A note describing an SBOM reference. (id: SBOMReferenceNote) |
secret | object | A note describing a secret. (id: SecretNote) |
shortDescription | string | A one sentence description of this note. |
updateTime | string (google-datetime) | Output only. The time this note was last updated. This field can be used as a filter in list requests. |
upgrade | object | A note describing available package upgrades. (id: UpgradeNote) |
vulnerability | object | A note describing a package vulnerability. (id: VulnerabilityNote) |
vulnerabilityAssessment | object | A note describing a vulnerability assessment. (id: VulnerabilityAssessmentNote) |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. |
attestation | object | A note describing an attestation role. (id: AttestationNote) |
build | object | A note describing build provenance for a verifiable build. (id: BuildNote) |
compliance | object | A note describing a compliance check. (id: ComplianceNote) |
createTime | string (google-datetime) | Output only. The time this note was created. This field can be used as a filter in list requests. |
deployment | object | A note describing something that can be deployed. (id: DeploymentNote) |
discovery | object | A note describing the initial analysis of a resource. (id: DiscoveryNote) |
dsseAttestation | object | A note describing a dsse attestation note. (id: DSSEAttestationNote) |
expirationTime | string (google-datetime) | Time of expiration for this note. Empty if note does not expire. |
image | object | A note describing a base image. (id: ImageNote) |
kind | string | Output only. The type of analysis. This field can be used as a filter in list requests. |
longDescription | string | A detailed description of this note. |
package | object | A note describing a package hosted by various package managers. (id: PackageNote) |
relatedNoteNames | array | Other notes related to this note. |
relatedUrl | array | URLs associated with this note. |
sbomReference | object | A note describing an SBOM reference. (id: SBOMReferenceNote) |
secret | object | A note describing a secret. (id: SecretNote) |
shortDescription | string | A one sentence description of this note. |
updateTime | string (google-datetime) | Output only. The time this note was last updated. This field can be used as a filter in list requests. |
upgrade | object | A note describing available package upgrades. (id: UpgradeNote) |
vulnerability | object | A note describing a package vulnerability. (id: VulnerabilityNote) |
vulnerabilityAssessment | object | A note describing a vulnerability assessment. (id: VulnerabilityAssessmentNote) |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. |
attestation | object | A note describing an attestation role. (id: AttestationNote) |
build | object | A note describing build provenance for a verifiable build. (id: BuildNote) |
compliance | object | A note describing a compliance check. (id: ComplianceNote) |
createTime | string (google-datetime) | Output only. The time this note was created. This field can be used as a filter in list requests. |
deployment | object | A note describing something that can be deployed. (id: DeploymentNote) |
discovery | object | A note describing the initial analysis of a resource. (id: DiscoveryNote) |
dsseAttestation | object | A note describing a dsse attestation note. (id: DSSEAttestationNote) |
expirationTime | string (google-datetime) | Time of expiration for this note. Empty if note does not expire. |
image | object | A note describing a base image. (id: ImageNote) |
kind | string | Output only. The type of analysis. This field can be used as a filter in list requests. |
longDescription | string | A detailed description of this note. |
package | object | A note describing a package hosted by various package managers. (id: PackageNote) |
relatedNoteNames | array | Other notes related to this note. |
relatedUrl | array | URLs associated with this note. |
sbomReference | object | A note describing an SBOM reference. (id: SBOMReferenceNote) |
secret | object | A note describing a secret. (id: SecretNote) |
shortDescription | string | A one sentence description of this note. |
updateTime | string (google-datetime) | Output only. The time this note was last updated. This field can be used as a filter in list requests. |
upgrade | object | A note describing available package upgrades. (id: UpgradeNote) |
vulnerability | object | A note describing a package vulnerability. (id: VulnerabilityNote) |
vulnerabilityAssessment | object | A note describing a vulnerability assessment. (id: VulnerabilityAssessmentNote) |
| Name | Datatype | Description |
|---|---|---|
name | string | Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. |
attestation | object | A note describing an attestation role. (id: AttestationNote) |
build | object | A note describing build provenance for a verifiable build. (id: BuildNote) |
compliance | object | A note describing a compliance check. (id: ComplianceNote) |
createTime | string (google-datetime) | Output only. The time this note was created. This field can be used as a filter in list requests. |
deployment | object | A note describing something that can be deployed. (id: DeploymentNote) |
discovery | object | A note describing the initial analysis of a resource. (id: DiscoveryNote) |
dsseAttestation | object | A note describing a dsse attestation note. (id: DSSEAttestationNote) |
expirationTime | string (google-datetime) | Time of expiration for this note. Empty if note does not expire. |
image | object | A note describing a base image. (id: ImageNote) |
kind | string | Output only. The type of analysis. This field can be used as a filter in list requests. |
longDescription | string | A detailed description of this note. |
package | object | A note describing a package hosted by various package managers. (id: PackageNote) |
relatedNoteNames | array | Other notes related to this note. |
relatedUrl | array | URLs associated with this note. |
sbomReference | object | A note describing an SBOM reference. (id: SBOMReferenceNote) |
secret | object | A note describing a secret. (id: SecretNote) |
shortDescription | string | A one sentence description of this note. |
updateTime | string (google-datetime) | Output only. The time this note was last updated. This field can be used as a filter in list requests. |
upgrade | object | A note describing available package upgrades. (id: UpgradeNote) |
vulnerability | object | A note describing a package vulnerability. (id: VulnerabilityNote) |
vulnerabilityAssessment | object | A note describing a vulnerability assessment. (id: VulnerabilityAssessmentNote) |
Methods
The following methods are available for this resource:
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.
| Name | Datatype | Description |
|---|---|---|
locationsId | string | |
notesId | string | |
projectsId | string | |
filter | string | |
noteId | string | |
pageSize | integer (int32) | |
pageToken | string | |
returnPartialSuccess | boolean | |
updateMask | string (google-fieldmask) |
SELECT examples
- projects_locations_notes_get
- projects_notes_get
- projects_locations_notes_list
- projects_notes_list
Gets the specified note.
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.notes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND notesId = '{{ notesId }}' -- required
;
Gets the specified note.
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.notes
WHERE projectsId = '{{ projectsId }}' -- required
AND notesId = '{{ notesId }}' -- required
;
Lists notes for the specified 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.notes
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
;
Lists notes for the specified 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.notes
WHERE projectsId = '{{ projectsId }}' -- required
AND filter = '{{ filter }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
AND pageSize = '{{ pageSize }}'
;
INSERT examples
- projects_locations_notes_create
- projects_locations_notes_batch_create
- projects_notes_create
- projects_notes_batch_create
- Manifest
Creates a new note.
INSERT INTO google.containeranalysis.notes (
data__relatedUrl,
data__updateTime,
data__expirationTime,
data__relatedNoteNames,
data__deployment,
data__shortDescription,
data__kind,
data__image,
data__vulnerability,
data__upgrade,
data__longDescription,
data__dsseAttestation,
data__build,
data__attestation,
data__vulnerabilityAssessment,
data__createTime,
data__package,
data__sbomReference,
data__secret,
data__discovery,
data__compliance,
data__name,
projectsId,
locationsId,
noteId
)
SELECT
'{{ relatedUrl }}',
'{{ updateTime }}',
'{{ expirationTime }}',
'{{ relatedNoteNames }}',
'{{ deployment }}',
'{{ shortDescription }}',
'{{ kind }}',
'{{ image }}',
'{{ vulnerability }}',
'{{ upgrade }}',
'{{ longDescription }}',
'{{ dsseAttestation }}',
'{{ build }}',
'{{ attestation }}',
'{{ vulnerabilityAssessment }}',
'{{ createTime }}',
'{{ package }}',
'{{ sbomReference }}',
'{{ secret }}',
'{{ discovery }}',
'{{ compliance }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ noteId }}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
expirationTime,
image,
kind,
longDescription,
package,
relatedNoteNames,
relatedUrl,
sbomReference,
secret,
shortDescription,
updateTime,
upgrade,
vulnerability,
vulnerabilityAssessment
;
Creates new notes in batch.
INSERT INTO google.containeranalysis.notes (
data__notes,
projectsId,
locationsId
)
SELECT
'{{ notes }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
notes
;
Creates a new note.
INSERT INTO google.containeranalysis.notes (
data__relatedUrl,
data__updateTime,
data__expirationTime,
data__relatedNoteNames,
data__deployment,
data__shortDescription,
data__kind,
data__image,
data__vulnerability,
data__upgrade,
data__longDescription,
data__dsseAttestation,
data__build,
data__attestation,
data__vulnerabilityAssessment,
data__createTime,
data__package,
data__sbomReference,
data__secret,
data__discovery,
data__compliance,
data__name,
projectsId,
noteId
)
SELECT
'{{ relatedUrl }}',
'{{ updateTime }}',
'{{ expirationTime }}',
'{{ relatedNoteNames }}',
'{{ deployment }}',
'{{ shortDescription }}',
'{{ kind }}',
'{{ image }}',
'{{ vulnerability }}',
'{{ upgrade }}',
'{{ longDescription }}',
'{{ dsseAttestation }}',
'{{ build }}',
'{{ attestation }}',
'{{ vulnerabilityAssessment }}',
'{{ createTime }}',
'{{ package }}',
'{{ sbomReference }}',
'{{ secret }}',
'{{ discovery }}',
'{{ compliance }}',
'{{ name }}',
'{{ projectsId }}',
'{{ noteId }}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
expirationTime,
image,
kind,
longDescription,
package,
relatedNoteNames,
relatedUrl,
sbomReference,
secret,
shortDescription,
updateTime,
upgrade,
vulnerability,
vulnerabilityAssessment
;
Creates new notes in batch.
INSERT INTO google.containeranalysis.notes (
data__notes,
projectsId
)
SELECT
'{{ notes }}',
'{{ projectsId }}'
RETURNING
notes
;
# Description fields are for documentation purposes
- name: notes
props:
- name: projectsId
value: string
description: Required parameter for the notes resource.
- name: locationsId
value: string
description: Required parameter for the notes resource.
- name: relatedUrl
value: array
description: >
URLs associated with this note.
- name: updateTime
value: string
description: >
Output only. The time this note was last updated. This field can be used as a filter in list requests.
- name: expirationTime
value: string
description: >
Time of expiration for this note. Empty if note does not expire.
- name: relatedNoteNames
value: array
description: >
Other notes related to this note.
- name: deployment
value: object
description: >
A note describing something that can be deployed.
- name: shortDescription
value: string
description: >
A one sentence description of this note.
- name: kind
value: string
description: >
Output only. The type of analysis. This field can be used as a filter in list requests.
valid_values: ['NOTE_KIND_UNSPECIFIED', 'VULNERABILITY', 'BUILD', 'IMAGE', 'PACKAGE', 'DEPLOYMENT', 'DISCOVERY', 'ATTESTATION', 'UPGRADE', 'COMPLIANCE', 'DSSE_ATTESTATION', 'VULNERABILITY_ASSESSMENT', 'SBOM_REFERENCE', 'SECRET']
- name: image
value: object
description: >
A note describing a base image.
- name: vulnerability
value: object
description: >
A note describing a package vulnerability.
- name: upgrade
value: object
description: >
A note describing available package upgrades.
- name: longDescription
value: string
description: >
A detailed description of this note.
- name: dsseAttestation
value: object
description: >
A note describing a dsse attestation note.
- name: build
value: object
description: >
A note describing build provenance for a verifiable build.
- name: attestation
value: object
description: >
A note describing an attestation role.
- name: vulnerabilityAssessment
value: object
description: >
A note describing a vulnerability assessment.
- name: createTime
value: string
description: >
Output only. The time this note was created. This field can be used as a filter in list requests.
- name: package
value: object
description: >
A note describing a package hosted by various package managers.
- name: sbomReference
value: object
description: >
A note describing an SBOM reference.
- name: secret
value: object
description: >
A note describing a secret.
- name: discovery
value: object
description: >
A note describing the initial analysis of a resource.
- name: compliance
value: object
description: >
A note describing a compliance check.
- name: name
value: string
description: >
Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
- name: notes
value: object
description: >
Required. The notes to create. Max allowed length is 1000.
- name: noteId
value: string
UPDATE examples
- projects_locations_notes_patch
- projects_notes_patch
Updates the specified note.
UPDATE google.containeranalysis.notes
SET
data__relatedUrl = '{{ relatedUrl }}',
data__updateTime = '{{ updateTime }}',
data__expirationTime = '{{ expirationTime }}',
data__relatedNoteNames = '{{ relatedNoteNames }}',
data__deployment = '{{ deployment }}',
data__shortDescription = '{{ shortDescription }}',
data__kind = '{{ kind }}',
data__image = '{{ image }}',
data__vulnerability = '{{ vulnerability }}',
data__upgrade = '{{ upgrade }}',
data__longDescription = '{{ longDescription }}',
data__dsseAttestation = '{{ dsseAttestation }}',
data__build = '{{ build }}',
data__attestation = '{{ attestation }}',
data__vulnerabilityAssessment = '{{ vulnerabilityAssessment }}',
data__createTime = '{{ createTime }}',
data__package = '{{ package }}',
data__sbomReference = '{{ sbomReference }}',
data__secret = '{{ secret }}',
data__discovery = '{{ discovery }}',
data__compliance = '{{ compliance }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND notesId = '{{ notesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
expirationTime,
image,
kind,
longDescription,
package,
relatedNoteNames,
relatedUrl,
sbomReference,
secret,
shortDescription,
updateTime,
upgrade,
vulnerability,
vulnerabilityAssessment;
Updates the specified note.
UPDATE google.containeranalysis.notes
SET
data__relatedUrl = '{{ relatedUrl }}',
data__updateTime = '{{ updateTime }}',
data__expirationTime = '{{ expirationTime }}',
data__relatedNoteNames = '{{ relatedNoteNames }}',
data__deployment = '{{ deployment }}',
data__shortDescription = '{{ shortDescription }}',
data__kind = '{{ kind }}',
data__image = '{{ image }}',
data__vulnerability = '{{ vulnerability }}',
data__upgrade = '{{ upgrade }}',
data__longDescription = '{{ longDescription }}',
data__dsseAttestation = '{{ dsseAttestation }}',
data__build = '{{ build }}',
data__attestation = '{{ attestation }}',
data__vulnerabilityAssessment = '{{ vulnerabilityAssessment }}',
data__createTime = '{{ createTime }}',
data__package = '{{ package }}',
data__sbomReference = '{{ sbomReference }}',
data__secret = '{{ secret }}',
data__discovery = '{{ discovery }}',
data__compliance = '{{ compliance }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND notesId = '{{ notesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
expirationTime,
image,
kind,
longDescription,
package,
relatedNoteNames,
relatedUrl,
sbomReference,
secret,
shortDescription,
updateTime,
upgrade,
vulnerability,
vulnerabilityAssessment;
DELETE examples
- projects_locations_notes_delete
- projects_notes_delete
Deletes the specified note.
DELETE FROM google.containeranalysis.notes
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND notesId = '{{ notesId }}' --required
;
Deletes the specified note.
DELETE FROM google.containeranalysis.notes
WHERE projectsId = '{{ projectsId }}' --required
AND notesId = '{{ notesId }}' --required
;