Method get

Returns the specified Role resource.

To get the list of available Role resources, use a list request.

HTTP request

GET https://iam.api.cloud.yandex.net/iam/v1/roles/{roleId}

Path parameters

Parameter Description
roleId Required. ID of the Role resource to return. To get the role ID, use a list request. The maximum string length in characters is 50.

Response

HTTP Code: 200 - OK

 {
  "id": "string",
  "description": "string"
}

A Role resource. For more information, see Roles.

Field Description
id string

ID of the role.

description string

Description of the role. 0-256 characters long.