Method: networks.roles.get

  • Retrieves a Role object using a GET request to a specified resource name.

  • Requires the name path parameter specifying the Role resource in the format networks/{networkCode}/roles/{roleId}.

  • The request body must be empty, and a successful response returns a Role object.

  • Requires authorization using the https://www.googleapis.com/auth/admanager OAuth scope.

API to retrieve a Role object.

HTTP request

GET https://admanager.googleapis.com/v1/{name}

Path parameters

Parameters
name

string

Required. The resource name of the Role. Format: networks/{networkCode}/roles/{roleId}

Request body

The request body must be empty.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admanager

For more information, see the OAuth 2.0 Overview.