首页 资源管理 开发参考 API参考 API参考(资源目录) API参考(2022-04-19) API目录 成员 ListAccounts - 查询整个资源目录下的所有成员列表

ListAccounts - 查询整个资源目录下的所有成员列表

更新时间: 2023-08-23 11:56:44

调用ListAccounts查询整个资源目录下的所有成员列表。

接口说明

资源目录的管理账号和可信服务的委派管理员账号可以调用该接口。

调试

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

调试

授权信息

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

请求参数

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

页码。

起始值:1。默认值:1。

1
PageSizeinteger

分页时每页显示的数据行数。

取值范围:1~100。默认值:10。

10
QueryKeywordstring

查询关键字,例如:成员名称。

支持模糊查询。

Advance
Tagobject []

通过标签过滤。

Keystring

标签键。

tag_key
Valuestring

标签值。

tag_value
IncludeTagsboolean

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

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

true

返回参数

名称类型描述示例值
object

返回结果。

TotalCountinteger

数据总条数。

2
RequestIdstring

请求ID。

7B8A4E7D-6CFF-471D-84DF-195A7A241ECB
PageSizeinteger

分页时每页显示的数据行数。

5
PageNumberinteger

页码。

1
Accountsobject []

成员列表。

Statusstring

成员加入状态。取值:

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

成员类型。取值:

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

成员名称。

test
FolderIdstring

资源夹ID。

fd-QRzuim****
ResourceDirectoryIdstring

资源目录ID。

rd-3G****
JoinTimestring

成员加入时间(UTC时间)。

2021-01-18T08:01:50.522Z
AccountIdstring

成员账号ID。

181761095690****
JoinMethodstring

成员加入方式。取值:

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

成员修改时间(UTC时间)。

2021-01-18T08:04:37.668Z
ResourceDirectoryPathstring

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

rd-3G****/r-Wm****/fd-QRzuim****/181761095690****
AccountNamestring

账号名称。

oxy01414357@alibaba-inc.com
Tagsobject []

成员所有的标签。

Keystring

标签键。

tag_key
Valuestring

标签值。

tag_value

示例

正常返回示例

JSON格式

{
  "TotalCount": 2,
  "RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
  "PageSize": 5,
  "PageNumber": 1,
  "Accounts": {
    "Account": [
      {
        "Status": "CreateSuccess",
        "Type": "ResourceAccount",
        "DisplayName": "test",
        "FolderId": "fd-QRzuim****",
        "ResourceDirectoryId": "rd-3G****",
        "JoinTime": "2021-01-18T08:01:50.522Z",
        "AccountId": "181761095690****",
        "JoinMethod": "created",
        "ModifyTime": "2021-01-18T08:04:37.668Z",
        "ResourceDirectoryPath": "rd-3G****/r-Wm****/fd-QRzuim****/181761095690****",
        "AccountName": "oxy01414357@alibaba-inc.com",
        "Tags": {
          "Tag": [
            {
              "Key": "tag_key",
              "Value": "tag_value"
            }
          ]
        }
      }
    ]
  }
}

错误码

HTTP status code错误码错误信息描述
404EntityNotExists.ResourceDirectoryThe resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account.当前账号未启用资源目录,请先启用资源目录。

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

变更历史

变更时间变更内容概要操作
暂无变更历史
阿里云首页 资源管理 相关技术圈