Method: projects.occurrences.create

Creates a new Occurrence. Use this method to create Occurrences for a resource.

HTTP request

POST https://containeranalysis.googleapis.com/v1alpha1/{parent=projects/*}/occurrences

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
parent

string

This field contains the project Id for example: "projects/{projectId}"

Authorization requires the following Google IAM permission on the specified resource parent:

  • containeranalysis.occurrences.create

Query parameters

Parameters
name

string

The name of the project. Should be of the form "projects/{projectId}". @Deprecated

Request body

The request body contains an instance of Occurrence.

Response body

If successful, the response body contains a newly created instance of Occurrence.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Was this page helpful? Let us know how we did:

Send feedback about...

Container Registry