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 the OS Config API."],["The HTTP request uses a `GET` method directed to a URL with path parameters, which include project, location, instance, and assignment identifiers, to pinpoint the desired reports."],["The API allows for filtering results by utilizing query parameters, such as `pageSize` to limit the number of results, `filter` to set criteria, and `pageToken` for pagination."],["The request body for listing reports is empty, while the response includes a list of `OSPolicyAssignmentReport` objects and a `nextPageToken` for further pagination."],["Accessing the reports requires OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the `osconfig.osPolicyAssignmentReports.list` IAM permission on the parent resource."]]],[]]