For {project}, either project-number or project-id can be provided. For {instance}, either instance-name, instance-id, or - can be provided. If '-' is provided, the response will include OSPolicyAssignmentReports for all instances in the project/location. For {assignment}, either assignment-id or - can be provided. If '-' is provided, the response will include OSPolicyAssignmentReports for all OSPolicyAssignments in the project/location. Either {instance} or {assignment} must be -.
For example: projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports returns all reports for the instance projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports returns all the reports for the given assignment across all instances. projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports returns all the reports for all assignments across all instances.
Query parameters
Parameters
pageSize
integer
The maximum number of results to return.
filter
string
If provided, this field specifies the criteria that must be met by the OSPolicyAssignmentReport API resource that is included in the response.
pageToken
string
A pagination token returned from a previous call to the reports.list method that indicates where this listing should continue from.
Request body
The request body must be empty.
Response body
A response message for listing OS Policy assignment reports including the page of results and page token.
If successful, the response body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-11 UTC."],[[["This webpage details how to list OS policy assignment reports for Compute Engine VM instances within a specified zone using an HTTP GET request."],["The request URL utilizes gRPC Transcoding syntax and requires a `parent` path parameter specifying the project, location, instance, and assignment to target reports for."],["Optional query parameters, including `pageSize`, `filter`, and `pageToken`, allow for controlling the number of results, filtering reports, and implementing pagination."],["The request body must be empty, and the successful response will contain an array of OS policy assignment reports and a pagination token for retrieving additional pages if needed."],["Authorization for this API call requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope and the `osconfig.osPolicyAssignmentReports.list` IAM permission on the parent resource."]]],[]]