调用GetAccount查询成员信息。
本文将提供一个示例,查询ID为181761095690****
的成员信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetAccount |
要执行的操作。取值:GetAccount。 |
AccountId | String | 是 | 181761095690**** |
成员ID。 |
关于公共请求参数的详情,请参见公共参数。
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Account | Object |
成员信息。 |
|
Status | String | CreateSuccess |
成员加入状态。
|
Type | String | ResourceAccount |
成员类型。
|
DisplayName | String | admin |
成员名称。 |
FolderId | String | fd-bVaRIG**** |
资源夹ID。 |
ResourceDirectoryId | String | rd-k3**** |
资源目录ID。 |
IdentityInformation | String | aliyun-admin |
实名认证信息。 |
JoinTime | String | 2015-01-23T12:33:18Z |
成员加入时间。 |
AccountId | String | 181761095690**** |
成员ID。 |
JoinMethod | String | created |
成员加入方式。
|
ModifyTime | String | 2015-01-23T12:33:18Z |
成员修改时间。 |
AccountName | String | someone@example.com |
账号名称。 |
ResourceDirectoryPath | String | rd-k3****/r-Wm****/fd-bVaRIG****/181761095690**** |
成员在资源目录中的路径ID(RDPath)。 |
RequestId | String | 9B34724D-54B0-4A51-B34D-4512372FE1BE |
请求ID。 |
示例
请求示例
https://resourcemanager.aliyuncs.com/?Action=GetAccount
&AccountId=181761095690****
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<?xml version="1.0" encoding="UTF-8" ?>
<GetAccountResponse>
<RequestId>9B34724D-54B0-4A51-B34D-4512372FE1BE</RequestId>
<Account>
<ResourceDirectoryId>rd-k3****</ResourceDirectoryId>
<AccountId>181761095690****</AccountId>
<AccountName>someone@example.com</AccountName>
<DisplayName>admin</DisplayName>
<FolderId>fd-bVaRIG****</FolderId>
<JoinMethod>created</JoinMethod>
<JoinTime>2015-01-23T12:33:18Z</JoinTime>
<IdentityInformation>aliyun-admin</IdentityInformation>
<Type>ResourceAccount</Type>
<Status>CreateSuccess</Status>
<ModifyTime>2015-01-23T12:33:18Z</ModifyTime>
<ResourceDirectoryPath>rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****</ResourceDirectoryPath>
</Account>
</GetAccountResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "9B34724D-54B0-4A51-B34D-4512372FE1BE",
"Account" : {
"ResourceDirectoryId" : "rd-k3****",
"AccountId" : "181761095690****",
"AccountName" : "someone@example.com",
"DisplayName" : "admin",
"FolderId" : "fd-bVaRIG****",
"JoinMethod" : "created",
"JoinTime" : "2015-01-23T12:33:18Z",
"IdentityInformation" : "aliyun-admin",
"Type" : "ResourceAccount",
"Status" : "CreateSuccess",
"ModifyTime" : "2015-01-23T12:33:18Z",
"ResourceDirectoryPath" : "rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****"
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | MissingParameter.AccountId | You must specify AccountId. | AccountId不能为空。 |
400 | InvalidParameter.AccountId | The AccountId is invalid. | 成员账号ID无效,请输入16位账号ID。 |
404 | EntityNotExists.Account | This resource directory account does not exist. | 成员不存在,请先创建成员。 |
404 | EntityNotExists.ResourceDirectory | The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. | 当前账号未启用资源目录,请先启用资源目录。 |
访问错误中心查看更多错误码。