调用ListAccountsForParent查询资源夹下的成员列表。

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String ListAccountsForParent

要执行的操作。取值:ListAccountsForParent

ParentFolderId String fd-bVaRIG****

资源夹ID。

QueryKeyword String admin

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

支持模糊查询。

PageNumber Integer 1

页码。

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

PageSize Integer 10

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

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

Tag.N.Key String tag_key

标签键。

Tag.N.Value String tag_value

标签值。

IncludeTags Boolean true

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

false(默认值):不返回。

true:返回。

关于公共请求参数的详情,请参见公共参数

返回数据

名称 类型 示例值 描述
TotalCount Integer 2

数据总条数。

RequestId String 7B8A4E7D-6CFF-471D-84DF-195A7A241ECB

请求ID。

PageSize Integer 5

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

PageNumber Integer 1

页码。

Accounts Array of Account

成员信息。

Account
Status String CreateSuccess

成员加入状态。

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

成员类型。

  • CloudAccount:云账号。
  • ResourceAccount:资源账号。
DisplayName String admin

成员名称。

FolderId String fd-bVaRIG****

资源夹ID。

ResourceDirectoryId String rd-k4****

资源目录ID。

JoinTime String 2015-01-23T12:33:18Z

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

AccountId String 184311716100****

成员账号ID。

JoinMethod String created

成员加入方式。

  • invited:邀请。
  • created:创建。
ModifyTime String 2015-01-23T12:33:18Z

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

Tags Array of Tag

成员所有的标签。

Tag
Key String tag_key

标签键。

Value String tag_value

标签值。

示例

请求示例

http(s)://[Endpoint]/?Action=ListAccountsForParent
&ParentFolderId=fd-bVaRIG****
&QueryKeyword=admin
&PageNumber=1
&PageSize=10
&Tag=[{"Key":"tag_key","Value":"tag_value"}]
&IncludeTags=true
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ListAccountsForParentResponse>
    <TotalCount>2</TotalCount>
    <RequestId>7B8A4E7D-6CFF-471D-84DF-195A7A241ECB</RequestId>
    <PageSize>1</PageSize>
    <PageNumber>2</PageNumber>
    <Accounts>
        <Status>CreateSuccess</Status>
        <Type>ResourceAccount</Type>
        <DisplayName>admin</DisplayName>
        <FolderId>fd-bVaRIG****</FolderId>
        <ResourceDirectoryId>rd-k4****</ResourceDirectoryId>
        <JoinTime>2015-01-23T12:33:18Z</JoinTime>
        <AccountId>184311716100****</AccountId>
        <JoinMethod>created</JoinMethod>
        <ModifyTime>2015-01-23T12:33:18Z</ModifyTime>
        <Tags>
            <Key>tag_key</Key>
            <Value>tag_value</Value>
        </Tags>
    </Accounts>
</ListAccountsForParentResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "TotalCount" : 2,
  "RequestId" : "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
  "PageSize" : 1,
  "PageNumber" : 2,
  "Accounts" : [ {
    "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",
    "Tags" : [ {
      "Key" : "tag_key",
      "Value" : "tag_value"
    } ]
  } ]
}

错误码

HttpCode 错误码 错误信息 描述
400 InvalidParameter.ParentFolderId The ParentFolderId is invalid. 父资源夹ID无效,资源夹ID应以“r-”开头+6位数字或英文字母或以“fd-”开头+10位数字或英文字母。
404 EntityNotExists.ResourceDirectory The resource directory for the account is not enabled. We recommend that you first enable the resource directory for the account. 当前账号未启用资源目录,请先启用资源目录。
404 EntityNotExists.Folder The resource directory folder does not exist. 资源夹不存在,请先创建资源夹。

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