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

GET https://osconfig.googleapis.com/v1/{name=projects/*/locations/*/osPolicyAssignments/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

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:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the name resource:

  • osconfig.osPolicyAssignments.get

For more information, see the IAM documentation.