- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- LicensesSummary
- Try it!
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 |
Required. The name of the resource to get a packages summary for in the form of |
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 ( |
Fields | |
---|---|
resourceUrl |
The unique URL of the image or the container for which this summary applies. |
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 |
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 |
The number of fixable vulnerabilities associated with this resource. |