Method: projects.occurrences.getVulnerabilitySummary

Gets a summary of the number and severity of occurrences.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the project to get a vulnerability summary for in the form of projects/[PROJECT_ID].

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 vulnerability occurrences there are per resource and severity type.

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

object (FixableTotalByDigest)

A listing by resource of the number of fixable and total vulnerabilities.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

FixableTotalByDigest

Per resource and severity counts of fixable and total vulnerabilities.

JSON representation
{
  "resource": {
    object (Resource)
  },
  "severity": enum (Severity),
  "fixableCount": string,
  "totalCount": string
}
Fields
resource

object (Resource)

The affected resource.

severity

enum (Severity)

The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.

fixableCount

string (int64 format)

The number of fixable vulnerabilities associated with this resource.

totalCount

string (int64 format)

The total number of vulnerabilities associated with this resource.