调用ListAccounts查看整个资源目录下的所有成员信息。
说明 仅限企业管理账号使用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListAccounts |
要执行的操作。取值:ListAccounts。 |
PageNumber | Integer | 否 | 1 |
页码。 起始值:1。默认值:1。 |
PageSize | Integer | 否 | 5 |
分页时每页显示的数据行数。 取值范围:1~100。默认值:10。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Accounts | Array |
成员信息。 |
|
Account | |||
AccountId | String | 12323344**** |
账号ID。 |
DisplayName | String | admin |
成员名称。 |
FolderId | String | fd-bVaRIG**** |
资源夹ID。 |
JoinMethod | String | created |
成员加入方式。
|
JoinTime | String | 2015-01-23T12:33:18Z |
成员加入时间。 |
ModifyTime | String | 2015-01-23T12:33:18Z |
成员修改时间。 |
ResourceDirectoryId | String | rd-k4**** |
资源目录ID。 |
Status | String | CreateSuccess |
成员加入状态。
|
Type | String | ResourceAccount |
成员类型。
|
PageNumber | Integer | 1 |
页码。 |
PageSize | Integer | 5 |
分页时每页显示的数据行数。 |
RequestId | String | 7B8A4E7D-6CFF-471D-84DF-195A7A241ECB |
请求ID。 |
TotalCount | Integer | 2 |
数据总条数。 |
示例
请求示例
https://resourcemanager.aliyuncs.com/?Action=ListAccounts
&<公共请求参数>
正常返回示例
XML
格式
<ListAccountsResponse>
<RequestId>7B8A4E7D-6CFF-471D-84DF-195A7A241ECB</RequestId>
<PageNumber>1</PageNumber>
<PageSize>5</PageSize>
<TotalCount>2</TotalCount>
<Accounts>
<Account>
<ResourceDirectoryId>rd-k4****</ResourceDirectoryId>
<AccountId>12323344****</AccountId>
<DisplayName>admin</DisplayName>
<FolderId>fd-bVaRIG****</FolderId>
<JoinMethod>created</JoinMethod>
<JoinTime>2015-01-23T12:33:18Z</JoinTime>
<Type>ResourceAccount</Type>
<Status>CreateSuccess</Status>
<ModifyTime>2015-01-23T12:33:18Z</ModifyTime>
</Account>
<Account>
<ResourceDirectoryId>rd-k4****</ResourceDirectoryId>
<AccountId>12323344****</AccountId>
<DisplayName>manager</DisplayName>
<FolderId>fd-bVaRIG****</FolderId>
<JoinMethod>created</JoinMethod>
<JoinTime>2015-01-23T12:33:18Z</JoinTime>
<Type>ResourceAccount</Type>
<Status>CreateSuccess</Status>
<ModifyTime>2015-01-23T12:33:18Z</ModifyTime>
</Account>
</Accounts>
</ListAccountsResponse>
JSON
格式
{
"RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
"PageNumber": 1,
"PageSize": 5,
"TotalCount": 2,
"Accounts": {
"Account": [
{
"ResourceDirectoryId":"rd-k4****",
"AccountId": "12323344****",
"DisplayName": "admin",
"FolderId": "fd-bVaRIG****",
"JoinMethod": "created",
"JoinTime": "2015-01-23T12:33:18Z",
"Type":"ResourceAccount",
"Status":"CreateSuccess",
"ModifyTime":"2015-01-23T12:33:18Z"
},
{
"ResourceDirectoryId":"rd-k4****",
"AccountId": "12323344****",
"DisplayName": "manager",
"FolderId": "fd-bVaRIG****",
"JoinMethod": "created",
"JoinTime": "2015-01-23T12:33:18Z",
"Type":"ResourceAccount",
"Status":"CreateSuccess",
"ModifyTime":"2015-01-23T12:33:18Z"
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 当前账号未启用资源目录,请先启用资源目录。 |
访问错误中心查看更多错误码。