Method: projects.resources.generatePackagesSummary

Gets a summary of the packages within a given resource.

HTTP request

POST https://containeranalysis.googleapis.com/v1beta1/{name=projects/*/resources/**}:generatePackagesSummary

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the resource to get a packages summary for in the form of projects/[PROJECT_ID]/resources/[RESOURCE_URL].

Request body

The request body must be empty.

Response body

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

A summary of the packages found within the given resource.

JSON representation
{
  "resourceUrl": string,
  "licensesSummary": [
    {
      object (LicensesSummary)
    }
  ]
}
Fields
resourceUrl

string

The unique URL of the image or the container for which this summary applies.

licensesSummary[]

object (LicensesSummary)

A listing by license name of each of the licenses and their counts.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

LicensesSummary

Per license count

JSON representation
{
  "license": string,
  "count": string
}
Fields
license

string

The license of the package. Note that the format of this value is not guaranteed. It may be nil, an empty string, a boolean value (A | B), a differently formed boolean value (A OR B), etc...

count

string (int64 format)

The number of fixable vulnerabilities associated with this resource.