occurrences
Creates, updates, deletes, gets or lists an occurrences
resource.
Overview
Name | occurrences |
Type | Resource |
Id | google.containeranalysis.occurrences |
Fields
The following fields are returned by SELECT
queries:
- projects_locations_occurrences_get
- projects_locations_notes_occurrences_list
- projects_occurrences_get
- projects_locations_occurrences_list
- projects_notes_occurrences_list
- projects_occurrences_list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] . |
attestation | object | Describes an attestation of an artifact. (id: AttestationOccurrence) |
build | object | Describes a verifiable build. (id: BuildOccurrence) |
compliance | object | Describes a compliance violation on a linked resource. (id: ComplianceOccurrence) |
createTime | string (google-datetime) | Output only. The time this occurrence was created. |
deployment | object | Describes the deployment of an artifact on a runtime. (id: DeploymentOccurrence) |
discovery | object | Describes when a resource was discovered. (id: DiscoveryOccurrence) |
dsseAttestation | object | Describes an attestation of an artifact using dsse. (id: DSSEAttestationOccurrence) |
envelope | object | https://github.com/secure-systems-lab/dsse (id: Envelope) |
image | object | Describes how this resource derives from the basis in the associated note. (id: ImageOccurrence) |
kind | string | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
noteName | string | Required. 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. |
package | object | Describes the installation of a package on the linked resource. (id: PackageOccurrence) |
remediation | string | A description of actions that can be taken to remedy the note. |
resourceUri | string | Required. 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. |
sbomReference | object | Describes a specific SBOM reference occurrences. (id: SBOMReferenceOccurrence) |
secret | object | Describes a secret. (id: SecretOccurrence) |
updateTime | string (google-datetime) | Output only. The time this occurrence was last updated. |
upgrade | object | Describes an available package upgrade on the linked resource. (id: UpgradeOccurrence) |
vulnerability | object | Describes a security vulnerability. (id: VulnerabilityOccurrence) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] . |
attestation | object | Describes an attestation of an artifact. (id: AttestationOccurrence) |
build | object | Describes a verifiable build. (id: BuildOccurrence) |
compliance | object | Describes a compliance violation on a linked resource. (id: ComplianceOccurrence) |
createTime | string (google-datetime) | Output only. The time this occurrence was created. |
deployment | object | Describes the deployment of an artifact on a runtime. (id: DeploymentOccurrence) |
discovery | object | Describes when a resource was discovered. (id: DiscoveryOccurrence) |
dsseAttestation | object | Describes an attestation of an artifact using dsse. (id: DSSEAttestationOccurrence) |
envelope | object | https://github.com/secure-systems-lab/dsse (id: Envelope) |
image | object | Describes how this resource derives from the basis in the associated note. (id: ImageOccurrence) |
kind | string | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
noteName | string | Required. 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. |
package | object | Describes the installation of a package on the linked resource. (id: PackageOccurrence) |
remediation | string | A description of actions that can be taken to remedy the note. |
resourceUri | string | Required. 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. |
sbomReference | object | Describes a specific SBOM reference occurrences. (id: SBOMReferenceOccurrence) |
secret | object | Describes a secret. (id: SecretOccurrence) |
updateTime | string (google-datetime) | Output only. The time this occurrence was last updated. |
upgrade | object | Describes an available package upgrade on the linked resource. (id: UpgradeOccurrence) |
vulnerability | object | Describes a security vulnerability. (id: VulnerabilityOccurrence) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] . |
attestation | object | Describes an attestation of an artifact. (id: AttestationOccurrence) |
build | object | Describes a verifiable build. (id: BuildOccurrence) |
compliance | object | Describes a compliance violation on a linked resource. (id: ComplianceOccurrence) |
createTime | string (google-datetime) | Output only. The time this occurrence was created. |
deployment | object | Describes the deployment of an artifact on a runtime. (id: DeploymentOccurrence) |
discovery | object | Describes when a resource was discovered. (id: DiscoveryOccurrence) |
dsseAttestation | object | Describes an attestation of an artifact using dsse. (id: DSSEAttestationOccurrence) |
envelope | object | https://github.com/secure-systems-lab/dsse (id: Envelope) |
image | object | Describes how this resource derives from the basis in the associated note. (id: ImageOccurrence) |
kind | string | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
noteName | string | Required. 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. |
package | object | Describes the installation of a package on the linked resource. (id: PackageOccurrence) |
remediation | string | A description of actions that can be taken to remedy the note. |
resourceUri | string | Required. 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. |
sbomReference | object | Describes a specific SBOM reference occurrences. (id: SBOMReferenceOccurrence) |
secret | object | Describes a secret. (id: SecretOccurrence) |
updateTime | string (google-datetime) | Output only. The time this occurrence was last updated. |
upgrade | object | Describes an available package upgrade on the linked resource. (id: UpgradeOccurrence) |
vulnerability | object | Describes a security vulnerability. (id: VulnerabilityOccurrence) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] . |
attestation | object | Describes an attestation of an artifact. (id: AttestationOccurrence) |
build | object | Describes a verifiable build. (id: BuildOccurrence) |
compliance | object | Describes a compliance violation on a linked resource. (id: ComplianceOccurrence) |
createTime | string (google-datetime) | Output only. The time this occurrence was created. |
deployment | object | Describes the deployment of an artifact on a runtime. (id: DeploymentOccurrence) |
discovery | object | Describes when a resource was discovered. (id: DiscoveryOccurrence) |
dsseAttestation | object | Describes an attestation of an artifact using dsse. (id: DSSEAttestationOccurrence) |
envelope | object | https://github.com/secure-systems-lab/dsse (id: Envelope) |
image | object | Describes how this resource derives from the basis in the associated note. (id: ImageOccurrence) |
kind | string | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
noteName | string | Required. 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. |
package | object | Describes the installation of a package on the linked resource. (id: PackageOccurrence) |
remediation | string | A description of actions that can be taken to remedy the note. |
resourceUri | string | Required. 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. |
sbomReference | object | Describes a specific SBOM reference occurrences. (id: SBOMReferenceOccurrence) |
secret | object | Describes a secret. (id: SecretOccurrence) |
updateTime | string (google-datetime) | Output only. The time this occurrence was last updated. |
upgrade | object | Describes an available package upgrade on the linked resource. (id: UpgradeOccurrence) |
vulnerability | object | Describes a security vulnerability. (id: VulnerabilityOccurrence) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] . |
attestation | object | Describes an attestation of an artifact. (id: AttestationOccurrence) |
build | object | Describes a verifiable build. (id: BuildOccurrence) |
compliance | object | Describes a compliance violation on a linked resource. (id: ComplianceOccurrence) |
createTime | string (google-datetime) | Output only. The time this occurrence was created. |
deployment | object | Describes the deployment of an artifact on a runtime. (id: DeploymentOccurrence) |
discovery | object | Describes when a resource was discovered. (id: DiscoveryOccurrence) |
dsseAttestation | object | Describes an attestation of an artifact using dsse. (id: DSSEAttestationOccurrence) |
envelope | object | https://github.com/secure-systems-lab/dsse (id: Envelope) |
image | object | Describes how this resource derives from the basis in the associated note. (id: ImageOccurrence) |
kind | string | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
noteName | string | Required. 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. |
package | object | Describes the installation of a package on the linked resource. (id: PackageOccurrence) |
remediation | string | A description of actions that can be taken to remedy the note. |
resourceUri | string | Required. 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. |
sbomReference | object | Describes a specific SBOM reference occurrences. (id: SBOMReferenceOccurrence) |
secret | object | Describes a secret. (id: SecretOccurrence) |
updateTime | string (google-datetime) | Output only. The time this occurrence was last updated. |
upgrade | object | Describes an available package upgrade on the linked resource. (id: UpgradeOccurrence) |
vulnerability | object | Describes a security vulnerability. (id: VulnerabilityOccurrence) |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] . |
attestation | object | Describes an attestation of an artifact. (id: AttestationOccurrence) |
build | object | Describes a verifiable build. (id: BuildOccurrence) |
compliance | object | Describes a compliance violation on a linked resource. (id: ComplianceOccurrence) |
createTime | string (google-datetime) | Output only. The time this occurrence was created. |
deployment | object | Describes the deployment of an artifact on a runtime. (id: DeploymentOccurrence) |
discovery | object | Describes when a resource was discovered. (id: DiscoveryOccurrence) |
dsseAttestation | object | Describes an attestation of an artifact using dsse. (id: DSSEAttestationOccurrence) |
envelope | object | https://github.com/secure-systems-lab/dsse (id: Envelope) |
image | object | Describes how this resource derives from the basis in the associated note. (id: ImageOccurrence) |
kind | string | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
noteName | string | Required. 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. |
package | object | Describes the installation of a package on the linked resource. (id: PackageOccurrence) |
remediation | string | A description of actions that can be taken to remedy the note. |
resourceUri | string | Required. 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. |
sbomReference | object | Describes a specific SBOM reference occurrences. (id: SBOMReferenceOccurrence) |
secret | object | Describes a secret. (id: SecretOccurrence) |
updateTime | string (google-datetime) | Output only. The time this occurrence was last updated. |
upgrade | object | Describes an available package upgrade on the linked resource. (id: UpgradeOccurrence) |
vulnerability | object | Describes a security vulnerability. (id: VulnerabilityOccurrence) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
projects_locations_occurrences_get | select | projectsId , locationsId , occurrencesId | Gets the specified occurrence. | |
projects_locations_notes_occurrences_list | select | projectsId , locationsId , notesId | filter , pageSize , pageToken | Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. |
projects_occurrences_get | select | projectsId , occurrencesId | Gets the specified occurrence. | |
projects_locations_occurrences_list | select | projectsId , locationsId | filter , pageSize , pageToken , returnPartialSuccess | Lists occurrences for the specified project. |
projects_notes_occurrences_list | select | projectsId , notesId | filter , pageSize , pageToken | Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. |
projects_occurrences_list | select | projectsId | filter , pageSize , pageToken , returnPartialSuccess | Lists occurrences for the specified project. |
projects_locations_occurrences_create | insert | projectsId , locationsId | Creates a new occurrence. | |
projects_locations_occurrences_batch_create | insert | projectsId , locationsId | Creates new occurrences in batch. | |
projects_occurrences_create | insert | projectsId | Creates a new occurrence. | |
projects_occurrences_batch_create | insert | projectsId | Creates new occurrences in batch. | |
projects_locations_occurrences_patch | update | projectsId , locationsId , occurrencesId | updateMask | Updates the specified occurrence. |
projects_occurrences_patch | update | projectsId , occurrencesId | updateMask | Updates the specified occurrence. |
projects_locations_occurrences_delete | delete | projectsId , locationsId , occurrencesId | Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. | |
projects_occurrences_delete | delete | projectsId , occurrencesId | Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given 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 | |
occurrencesId | string | |
projectsId | string | |
filter | string | |
pageSize | integer (int32) | |
pageToken | string | |
returnPartialSuccess | boolean | |
updateMask | string (google-fieldmask) |
SELECT
examples
- projects_locations_occurrences_get
- projects_locations_notes_occurrences_list
- projects_occurrences_get
- projects_locations_occurrences_list
- projects_notes_occurrences_list
- projects_occurrences_list
Gets the specified occurrence.
SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND occurrencesId = '{{ occurrencesId }}' -- required;
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND notesId = '{{ notesId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Gets the specified occurrence.
SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' -- required
AND occurrencesId = '{{ occurrencesId }}' -- required;
Lists occurrences for the specified project.
SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}';
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' -- required
AND notesId = '{{ notesId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}';
Lists occurrences for the specified project.
SELECT
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}';
INSERT
examples
- projects_locations_occurrences_create
- projects_locations_occurrences_batch_create
- projects_occurrences_create
- projects_occurrences_batch_create
- Manifest
Creates a new occurrence.
INSERT INTO google.containeranalysis.occurrences (
data__name,
data__resourceUri,
data__noteName,
data__kind,
data__remediation,
data__createTime,
data__updateTime,
data__vulnerability,
data__build,
data__image,
data__package,
data__deployment,
data__discovery,
data__attestation,
data__upgrade,
data__compliance,
data__dsseAttestation,
data__sbomReference,
data__secret,
data__envelope,
projectsId,
locationsId
)
SELECT
'{{ name }}',
'{{ resourceUri }}',
'{{ noteName }}',
'{{ kind }}',
'{{ remediation }}',
'{{ createTime }}',
'{{ updateTime }}',
'{{ vulnerability }}',
'{{ build }}',
'{{ image }}',
'{{ package }}',
'{{ deployment }}',
'{{ discovery }}',
'{{ attestation }}',
'{{ upgrade }}',
'{{ compliance }}',
'{{ dsseAttestation }}',
'{{ sbomReference }}',
'{{ secret }}',
'{{ envelope }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
;
Creates new occurrences in batch.
INSERT INTO google.containeranalysis.occurrences (
data__occurrences,
projectsId,
locationsId
)
SELECT
'{{ occurrences }}',
'{{ projectsId }}',
'{{ locationsId }}'
RETURNING
occurrences
;
Creates a new occurrence.
INSERT INTO google.containeranalysis.occurrences (
data__name,
data__resourceUri,
data__noteName,
data__kind,
data__remediation,
data__createTime,
data__updateTime,
data__vulnerability,
data__build,
data__image,
data__package,
data__deployment,
data__discovery,
data__attestation,
data__upgrade,
data__compliance,
data__dsseAttestation,
data__sbomReference,
data__secret,
data__envelope,
projectsId
)
SELECT
'{{ name }}',
'{{ resourceUri }}',
'{{ noteName }}',
'{{ kind }}',
'{{ remediation }}',
'{{ createTime }}',
'{{ updateTime }}',
'{{ vulnerability }}',
'{{ build }}',
'{{ image }}',
'{{ package }}',
'{{ deployment }}',
'{{ discovery }}',
'{{ attestation }}',
'{{ upgrade }}',
'{{ compliance }}',
'{{ dsseAttestation }}',
'{{ sbomReference }}',
'{{ secret }}',
'{{ envelope }}',
'{{ projectsId }}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability
;
Creates new occurrences in batch.
INSERT INTO google.containeranalysis.occurrences (
data__occurrences,
projectsId
)
SELECT
'{{ occurrences }}',
'{{ projectsId }}'
RETURNING
occurrences
;
# Description fields are for documentation purposes
- name: occurrences
props:
- name: projectsId
value: string
description: Required parameter for the occurrences resource.
- name: locationsId
value: string
description: Required parameter for the occurrences resource.
- name: name
value: string
description: >
Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
- name: resourceUri
value: string
description: >
Required. 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.
- name: noteName
value: string
description: >
Required. 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.
- name: kind
value: string
description: >
Output only. This explicitly denotes which of the occurrence details are specified. 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: remediation
value: string
description: >
A description of actions that can be taken to remedy the note.
- name: createTime
value: string
description: >
Output only. The time this occurrence was created.
- name: updateTime
value: string
description: >
Output only. The time this occurrence was last updated.
- name: vulnerability
value: object
description: >
Describes a security vulnerability.
- name: build
value: object
description: >
Describes a verifiable build.
- name: image
value: object
description: >
Describes how this resource derives from the basis in the associated note.
- name: package
value: object
description: >
Describes the installation of a package on the linked resource.
- name: deployment
value: object
description: >
Describes the deployment of an artifact on a runtime.
- name: discovery
value: object
description: >
Describes when a resource was discovered.
- name: attestation
value: object
description: >
Describes an attestation of an artifact.
- name: upgrade
value: object
description: >
Describes an available package upgrade on the linked resource.
- name: compliance
value: object
description: >
Describes a compliance violation on a linked resource.
- name: dsseAttestation
value: object
description: >
Describes an attestation of an artifact using dsse.
- name: sbomReference
value: object
description: >
Describes a specific SBOM reference occurrences.
- name: secret
value: object
description: >
Describes a secret.
- name: envelope
value: object
description: >
https://github.com/secure-systems-lab/dsse
- name: occurrences
value: array
description: >
Required. The occurrences to create. Max allowed length is 1000.
UPDATE
examples
- projects_locations_occurrences_patch
- projects_occurrences_patch
Updates the specified occurrence.
UPDATE google.containeranalysis.occurrences
SET
data__name = '{{ name }}',
data__resourceUri = '{{ resourceUri }}',
data__noteName = '{{ noteName }}',
data__kind = '{{ kind }}',
data__remediation = '{{ remediation }}',
data__createTime = '{{ createTime }}',
data__updateTime = '{{ updateTime }}',
data__vulnerability = '{{ vulnerability }}',
data__build = '{{ build }}',
data__image = '{{ image }}',
data__package = '{{ package }}',
data__deployment = '{{ deployment }}',
data__discovery = '{{ discovery }}',
data__attestation = '{{ attestation }}',
data__upgrade = '{{ upgrade }}',
data__compliance = '{{ compliance }}',
data__dsseAttestation = '{{ dsseAttestation }}',
data__sbomReference = '{{ sbomReference }}',
data__secret = '{{ secret }}',
data__envelope = '{{ envelope }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND occurrencesId = '{{ occurrencesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability;
Updates the specified occurrence.
UPDATE google.containeranalysis.occurrences
SET
data__name = '{{ name }}',
data__resourceUri = '{{ resourceUri }}',
data__noteName = '{{ noteName }}',
data__kind = '{{ kind }}',
data__remediation = '{{ remediation }}',
data__createTime = '{{ createTime }}',
data__updateTime = '{{ updateTime }}',
data__vulnerability = '{{ vulnerability }}',
data__build = '{{ build }}',
data__image = '{{ image }}',
data__package = '{{ package }}',
data__deployment = '{{ deployment }}',
data__discovery = '{{ discovery }}',
data__attestation = '{{ attestation }}',
data__upgrade = '{{ upgrade }}',
data__compliance = '{{ compliance }}',
data__dsseAttestation = '{{ dsseAttestation }}',
data__sbomReference = '{{ sbomReference }}',
data__secret = '{{ secret }}',
data__envelope = '{{ envelope }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND occurrencesId = '{{ occurrencesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
attestation,
build,
compliance,
createTime,
deployment,
discovery,
dsseAttestation,
envelope,
image,
kind,
noteName,
package,
remediation,
resourceUri,
sbomReference,
secret,
updateTime,
upgrade,
vulnerability;
DELETE
examples
- projects_locations_occurrences_delete
- projects_occurrences_delete
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
DELETE FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND occurrencesId = '{{ occurrencesId }}' --required;
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
DELETE FROM google.containeranalysis.occurrences
WHERE projectsId = '{{ projectsId }}' --required
AND occurrencesId = '{{ occurrencesId }}' --required;