- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
List vulnerability reports for all VM instances in the specified zone.
HTTP request
GET https://osconfig.googleapis.com/v1/{parent=projects/*/locations/*/instances/*}/vulnerabilityReports
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource name. Format: For |
Query parameters
Parameters | |
---|---|
page |
The maximum number of results to return. |
page |
A pagination token returned from a previous call to |
filter |
This field supports filtering by the severity level for the vulnerability. For a list of severity levels, see Severity levels for vulnerabilities. The filter field follows the rules described in the AIP-160 guidelines as follows:
|
Request body
The request body must be empty.
Response body
A response message for listing vulnerability reports for all VM instances in the specified location.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"vulnerabilityReports": [
{
object ( |
Fields | |
---|---|
vulnerability |
List of vulnerabilityReport objects. |
next |
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.
IAM Permissions
Requires the following IAM permission on the parent
resource:
osconfig.vulnerabilityReports.list
For more information, see the IAM documentation.