Method: networks.roles.get

  • This page provides documentation for an API used to retrieve a Role object.

  • The API uses an HTTP GET request with a specific format including the role's resource name.

  • The request requires a path parameter for the role's resource name, but the request body must be empty.

  • A successful response will contain a Role object and requires a specific OAuth scope for authorization.

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.