v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1316192184.4 KB
projects

Creates a new occurrence.

post/v1/{+parent}/occurrences

Path parameters

parentstring required

Required. The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

Request body

createTimestring google-datetime

Output only. The time this occurrence was created.

advisoryPublishTimestring google-datetime

The time this advisory was published by the source.

updateTimestring google-datetime

Output only. The time this occurrence was last updated.

resourceUristring

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.

namestring

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

noteNamestring

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.

remediationstring

A description of actions that can be taken to remedy the note.

kind'NOTE_KIND_UNSPECIFIED' | 'VULNERABILITY' | 'BUILD' | 'IMAGE' | 'PACKAGE' | 'DEPLOYMENT' | 'DISCOVERY' | 'ATTESTATION' | 'UPGRADE' | 'COMPLIANCE' | 'DSSE_ATTESTATION' | 'VULNERABILITY_ASSESSMENT' | 'SBOM_REFERENCE' | 'SECRET' | 'AI_SKILL_ANALYSIS'

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

Response

Successful response