全部产品
Search
文档中心

资源管理:GetAccount - 查询成员信息

更新时间:Dec 18, 2023

调用GetAccount查询成员信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
AccountIdstring

成员 ID。

181761095690****
IncludeTagsboolean

是否返回标签信息。取值:

  • false(默认值):不返回。
  • true:返回。
true

返回参数

名称类型描述示例值
object

返回结果。

Accountobject

成员信息。

Statusstring

成员加入状态。取值:

  • CreateSuccess:创建成功。
  • PromoteVerifying:升级确认中。
  • PromoteFailed:升级失败。
  • PromoteExpired:升级过期。
  • PromoteCancelled:升级取消。
  • PromoteSuccess:升级成功。
  • InviteSuccess:邀请成功。
CreateSuccess
Typestring

成员类型。取值:

  • CloudAccount:云账号。
  • ResourceAccount:资源账号。
ResourceAccount
DisplayNamestring

成员名称。

admin
FolderIdstring

资源夹 ID。

fd-bVaRIG****
ResourceDirectoryIdstring

资源目录 ID。

rd-k3****
IdentityInformationstring

实名认证信息。

aliyun-admin
JoinTimestring

成员加入时间。

2015-01-23T12:33:18Z
AccountIdstring

成员 ID。

181761095690****
JoinMethodstring

成员加入方式。取值:

  • invited:邀请。
  • created:创建。
created
ModifyTimestring

成员修改时间。

2015-01-23T12:33:18Z
AccountNamestring

账号名称。

someone@example.com
ResourceDirectoryPathstring

成员在资源目录中的路径 ID(RDPath)。

rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****
Tagsobject []

标签。

Keystring

标签键。

tag_key
Valuestring

标签值。

tag_value
Locationstring

成员所在资源目录的位置。

root/AlRd****/Z5Aa****
EmailStatusstring

邮箱状态。取值:

  • 空:不存在邮箱修改记录。
  • WAIT_MODIFY:正在修改中。
  • CANCELLED:修改取消。
  • EXPIRED:修改过期。
WAIT_MODIFY
RequestIdstring

请求 ID。

9B34724D-54B0-4A51-B34D-4512372FE1BE

示例

正常返回示例

JSON格式

{
  "Account": {
    "Status": "CreateSuccess",
    "Type": "ResourceAccount",
    "DisplayName": "admin",
    "FolderId": "fd-bVaRIG****",
    "ResourceDirectoryId": "rd-k3****",
    "IdentityInformation": "aliyun-admin",
    "JoinTime": "2015-01-23T12:33:18Z",
    "AccountId": "181761095690****",
    "JoinMethod": "created",
    "ModifyTime": "2015-01-23T12:33:18Z",
    "AccountName": "someone@example.com",
    "ResourceDirectoryPath": "rd-k3****/r-Wm****/fd-bVaRIG****/181761095690****",
    "Tags": [
      {
        "Key": "tag_key",
        "Value": "tag_value"
      }
    ],
    "Location": "root/AlRd****/Z5Aa****",
    "EmailStatus": "WAIT_MODIFY"
  },
  "RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}

错误码

HTTP status code错误码错误信息描述
400MissingParameter.AccountIdYou must specify AccountId.AccountId不能为空。
400InvalidParameter.AccountIdThe AccountId is invalid.成员ID无效,请输入16位账号ID。
404EntityNotExists.AccountThis resource directory account does not exist.成员不存在,请先创建成员。
404EntityNotExists.ResourceDirectoryThe resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account.当前账号未启用资源目录,请先启用资源目录。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史