ListAuthRoles
Get the list of authorization roles.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidesigner:ListAuthRoles |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/authorization/roles HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
No |
The workspace ID. |
|
| IsGenerateToken |
string |
No |
Specifies whether to generate an STS temporary token. This parameter is deprecated. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
|
| Roles |
array<object> |
The list of roles. |
|
|
array<object> |
The role information. |
||
| RoleName |
string |
The role name. |
|
| RoleARN |
string |
The Alibaba Cloud Resource Name (ARN) of the role. |
|
| IsEnabled |
string |
Indicates whether the role is available. |
|
| Token |
object |
The role credential information. This parameter is deprecated. |
|
| SecurityToken |
string |
O token de segurança gerado pelo STS. |
|
| AccessKeyId |
string |
O AccessKey ID gerado pelo STS. |
|
| AccessKeySecret |
string |
O AccessKey secret gerado pelo STS. |
|
| Expiration |
string |
O horário de expiração. |
|
| RoleType |
string |
The type of the role. |
Examples
Success response
JSON format
{
"RequestId": "",
"Roles": [
{
"RoleName": "",
"RoleARN": "",
"IsEnabled": "",
"Token": {
"SecurityToken": "",
"AccessKeyId": "",
"AccessKeySecret": "",
"Expiration": ""
},
"RoleType": ""
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.