Method: projects.locations.osPolicyAssignments.list

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/v1alpha/{parent=projects/*/locations/*}/osPolicyAssignments

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource name.

Query parameters

Parameters
pageSize

integer

The maximum number of assignments to return.

pageToken

string

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

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 all assignments under given parent.

JSON representation
{
  "osPolicyAssignments": [
    {
      object (OSPolicyAssignment)
    }
  ],
  "nextPageToken": string
}
Fields
osPolicyAssignments[]

object (OSPolicyAssignment)

The list of assignments

nextPageToken

string

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.