文档

ListFoldersForParent - 查询指定资源夹的子资源夹列表

更新时间:

调用ListFoldersForParent查询指定资源夹的子资源夹列表。

接口说明

您只能查看指定资源夹下一级的子资源夹列表,无法查看更深层级的资源夹列表。

调试

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

调试

授权信息

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

请求参数

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

父资源夹 ID。

当该参数置空时,查询的是 Root 资源夹下的下一级子资源夹。

r-b1****
QueryKeywordstring

查询关键字,例如:资源夹名称。

支持模糊查询。

rdFolder
PageNumberinteger

页码。

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

1
PageSizeinteger

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

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

10

返回参数

名称类型描述示例值
object

返回结果。

TotalCountinteger

数据总条数。

2
RequestIdstring

请求 ID。

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

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

5
PageNumberinteger

页码。

1
Foldersobject []

资源夹列表。

FolderIdstring

资源夹 ID。

rd-evic31****
CreateTimestring

资源夹创建时间。

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

资源夹名称。

project-1

示例

正常返回示例

JSON格式

{
  "TotalCount": 2,
  "RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB",
  "PageSize": 5,
  "PageNumber": 1,
  "Folders": {
    "Folder": [
      {
        "FolderId": "rd-evic31****",
        "CreateTime": "2015-01-23T12:33:18Z",
        "FolderName": "project-1"
      }
    ]
  }
}

错误码

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

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

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈