Method: projects.locations.osPolicyAssignments.get

Retrieve an existing OS policy assignment.

This method always returns the latest revision. In order to retrieve a previous revision of the assignment, also provide the revision ID in the name parameter.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The resource name of OS policy assignment.

Format: projects/{project}/locations/{location}/osPolicyAssignments/{osPolicyAssignment}@{revisionId}

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of OSPolicyAssignment.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.