Method: projects.occurrences.list

Lists active Occurrences for a given project matching the filters.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

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

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

  • containeranalysis.occurrences.list

Query parameters

Parameters
name

string

The name field contains the project Id. For example: "projects/{projectId} @Deprecated

filter

string

The filter expression.

pageSize

number

Number of occurrences to return in the list.

pageToken

string

Token to provide to skip to a particular spot in the list.

kind

enum (Kind)

The kind of occurrences to filter on.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response including listed active occurrences.

JSON representation
{
  "occurrences": [
    {
      object (Occurrence)
    }
  ],
  "nextPageToken": string
}
Fields
occurrences[]

object (Occurrence)

The occurrences requested.

nextPageToken

string

The next pagination token in the list response. It should be used as pageToken for the following request. An empty value means no more results.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

Kunde den här sidan hjälpa dig? Berätta:

Skicka feedback om ...

Container Registry