Queries the members that have query permissions.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
resourcemanager:ListAuthorizedAccounts | list | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: 10. | 5 |
Response elements
Element | Type | Description | Example |
object | The response parameters. | ||
TotalCount | integer | The total number of entries returned. | 2 |
RequestId | string | The request ID. | 7B8A4E7D-6CFF-471D-84DF-195A7A241ECB |
PageSize | integer | The number of entries per page. | 5 |
PageNumber | integer | The page number. | 1 |
| Accounts | object | ||
| Account | array<object> | The information about the members. | |
object | The information about the member. | ||
Status | string | The status of the member. Valid values:
| CreateSuccess |
Type | string | The type of the member. Valid values:
| ResourceAccount |
DisplayName | string | The display name of the member. | admin |
FolderId | string | The ID of the folder. | fd-bVaRIG**** |
ResourceDirectoryId | string | The ID of the resource directory. | rd-k4**** |
JoinTime | string | The time when the member joined the resource directory. The time is displayed in UTC. | 2015-01-23T12:33:18Z |
AccountId | string | The ID of the member account. | 184311716100**** |
JoinMethod | string | The method by which the member joined the resource directory. Valid values:
| created |
ModifyTime | string | The time when the member was last modified. The time is displayed in UTC. | 2015-01-23T12:33:18Z |
ResourceDirectoryPath | string | The path ID of the member in the resource directory (RDPath). | rd-k4****/r-Wm****/fd-bVaRIG****/184311716100**** |
AccountName | string | The name of the member. | someone@example.com |
Examples
Success response
JSON format
{
"TotalCount": 2,
"RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
"PageSize": 5,
"PageNumber": 1,
"Accounts": {
"Account": [
{
"Status": "CreateSuccess",
"Type": "ResourceAccount",
"DisplayName": "admin",
"FolderId": "fd-bVaRIG****",
"ResourceDirectoryId": "rd-k4****",
"JoinTime": "2015-01-23T12:33:18Z",
"AccountId": "184311716100****",
"JoinMethod": "created",
"ModifyTime": "2015-01-23T12:33:18Z",
"ResourceDirectoryPath": "rd-k4****/r-Wm****/fd-bVaRIG****/184311716100****",
"AccountName": "someone@example.com"
}
]
}
}Error codes
HTTP status code | Error code | Error message | Description |
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | The account is not used to enable a resource directory. Use the account to enable a resource directory first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.