Method: projects.occurrences.getVulnerabilitySummary

Gets a summary of the number and severity of occurrences.

HTTP request

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

The URL uses Google API HTTP annotation 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
filter

string

The filter expression.

Request body

The request body must be empty.

Response body

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

A summary of how many vulnz occurrences there are per severity type. counts by groups, or if we should have different summary messages like this.

JSON representation
{
  "counts": [
    {
      object(SeverityCount)
    }
  ]
}
Fields
counts[]

object(SeverityCount)

A map of how many occurrences were found for each severity.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

SeverityCount

The number of occurrences created for a specific severity.

JSON representation
{
  "severity": enum(Severity),
  "count": string
}
Fields
severity

enum(Severity)

The severity of the occurrences.

count

string (int64 format)

The number of occurrences with the severity.

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

Send feedback about...

Container Registry