Method: organizations.roles.get

Gets a Role definition.

HTTP request

GET https://iam.googleapis.com/v1/{name=organizations/*/roles/*}

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

The resource name of the role in one of the following formats: roles/{ROLE_NAME} organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME} projects/{PROJECT_ID}/roles/{ROLE_NAME}

Authorization requires the following Google IAM permission on the specified resource name:

  • iam.roles.get

Request body

The request body must be empty.

Response body

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

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.

Try it!

このページは役立ちましたか?評価をお願いいたします。

フィードバックを送信...

Cloud Identity and Access Management