ContainerAnalysis
import { ContainerAnalysis } from "https://googleapis.deno.dev/v1/containeranalysis:v1.ts";
This API is a prerequisite for leveraging Artifact Analysis scanning capabilities in both Artifact Registry and with Advanced Vulnerability Insights (runtime scanning) in GKE. In addition, the Container Analysis API is an implementation of the Grafeas API, which enables storing, querying, and retrieval of critical metadata about all of your software artifacts.
§Methods
Lists notes for the specified project.
Required. The name of the project to list notes for in the form of projects/[PROJECT_ID]
.
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
Required. The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]
.
Gets the specified occurrence.
Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
Gets a summary of the number and severity of occurrences.
Required. The name of the project to get a vulnerability summary for in the form of projects/[PROJECT_ID]
.
Lists occurrences for the specified project.
Required. The name of the project to list occurrences for in the form of projects/[PROJECT_ID]
.
Generates an SBOM for the given resource.
Required. The name of the resource in the form of projects/[PROJECT_ID]/resources/[RESOURCE_URL]
.
Creates new notes in batch.
Required. The name of the project in the form of projects/[PROJECT_ID]
, under which the notes are to be created.
Creates a new note.
Required. The name of the project in the form of projects/[PROJECT_ID]
, under which the note is to be created.
Gets the access control policy for a note or an occurrence resource.
Requires containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is
a note or occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Lists notes for the specified project.
Required. The name of the project to list notes for in the form of projects/[PROJECT_ID]
.
Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.
Required. The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]
.
Updates the specified note.
Required. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]
.
Sets the access control policy on the specified note or occurrence.
Requires containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is
a note or an occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Returns the permissions that a caller has on the specified note or
occurrence. Requires list permission on the project (for example,
containeranalysis.notes.list
). The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Creates new occurrences in batch.
Required. The name of the project in the form of projects/[PROJECT_ID]
, under which the occurrences are to be created.
Creates a new occurrence.
Required. The name of the project in the form of projects/[PROJECT_ID]
, under which the occurrence is to be created.
Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
Gets the specified occurrence.
Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
Gets the access control policy for a note or an occurrence resource.
Requires containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is
a note or occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.
Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
Gets a summary of the number and severity of occurrences.
Required. The name of the project to get a vulnerability summary for in the form of projects/[PROJECT_ID]
.
Lists occurrences for the specified project.
Required. The name of the project to list occurrences for in the form of projects/[PROJECT_ID]
.
Updates the specified occurrence.
Required. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
Sets the access control policy on the specified note or occurrence.
Requires containeranalysis.notes.setIamPolicy
or
containeranalysis.occurrences.setIamPolicy
permission if the resource is
a note or an occurrence, respectively. The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.
Returns the permissions that a caller has on the specified note or
occurrence. Requires list permission on the project (for example,
containeranalysis.notes.list
). The resource takes the format
projects/[PROJECT_ID]/notes/[NOTE_ID]
for notes and
projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
for occurrences.
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.