Method: accessPolicies.accessLevels.get

Gets an access level based on the resource name.

HTTP request

GET https://accesscontextmanager.googleapis.com/v1/{name=accessPolicies/*/accessLevels/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. Resource name for the Access Level.

Format: accessPolicies/{policy_id}/accessLevels/{access_level_id}

Query parameters

Parameters
accessLevelFormat

enum (LevelFormat)

Whether to return BasicLevels in the Cloud Common Expression Language rather than as BasicLevels. Defaults to AS_DEFINED, where Access Levels are returned as BasicLevels or CustomLevels based on how they were created. If set to CEL, all Access Levels are returned as CustomLevels. In the CEL case, BasicLevels are translated to equivalent CustomLevels.

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.