Method: projects.locations.instances.vulnerabilityReports.list

List vulnerability reports for all VM instances in the specified zone.

HTTP request

GET https://osconfig.googleapis.com/v1alpha/{parent=projects/*/locations/*/instances/*}/vulnerabilityReports

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource name.

Format: projects/{project}/locations/{location}/instances/{instance}

For {project}, either project-number or project-id can be provided. For {instance}, only - character is supported to list vulnerability reports across VMs.

Query parameters

Parameters
pageSize

integer

The maximum number of results to return.

pageToken

string

A pagination token returned from a previous call to vulnerabilityReports.list that indicates where this listing should continue from.

filter

string

If provided, this field specifies the criteria that must be met by a vulnerabilityReport API resource to be included in the response.

Request body

The request body must be empty.

Response body

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

A response message for listing vulnerability reports for all VM instances in the specified location.

JSON representation
{
  "vulnerabilityReports": [
    {
      object (VulnerabilityReport)
    }
  ],
  "nextPageToken": string
}
Fields
vulnerabilityReports[]

object (VulnerabilityReport)

List of vulnerabilityReport objects.

nextPageToken

string

The pagination token to retrieve the next page of vulnerabilityReports object.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.