- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
List the OS policy assignments under the parent resource.
For each OS policy assignment, the latest revision is returned.
HTTP request
GET https://osconfig.googleapis.com/v1/{parent=projects/*/locations/*}/osPolicyAssignments
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource name. |
Query parameters
Parameters | |
---|---|
pageSize |
The maximum number of assignments to return. |
pageToken |
A pagination token returned from a previous call to |
Request body
The request body must be empty.
Response body
A response message for listing all assignments under given parent.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"osPolicyAssignments": [
{
object ( |
Fields | |
---|---|
osPolicyAssignments[] |
The list of assignments |
nextPageToken |
The pagination token to retrieve the next page of OS policy assignments. |
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.osPolicyAssignments.list
For more information, see the IAM documentation.