文档首页/ 组织 Organizations/ API参考/ API/ SyncDataInternal/ 获取AccountManagement对应collection的所有key列表
更新时间:2024-09-06 GMT+08:00
分享

获取AccountManagement对应collection的所有key列表

功能介绍

List keys for a specified collection.

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

GET /internal/list-keys

表1 Query参数

参数

是否必选

参数类型

描述

collection

String

The unique name of a data collection. region_switch 组织

account_id

Object

The unique identifier (ID) of an account.

limit

Integer

Maximum number of results in a page.

最小值:1

最大值:200

缺省值:100

marker

String

Page marker.

最小长度:4

最大长度:400

请求参数

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

keys

Array of strings

The unique key of a data.

数组长度:0 - 200

page_info

PageInfo object

The information of page.

表3 PageInfo

参数

参数类型

描述

next_marker

String

If present, indicates that more output is available than is included in the current response. Use this value in the marker request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the next_marker response element comes back as null.

current_count

Integer

The number of items in the current page.

请求示例

List keys for a specified collection.

GET https://{hostname}/internal/list-keys

响应示例

状态码: 200

Successful.

{
  "keys" : [ "key1", "key2" ]
}

状态码

状态码

描述

200

Successful.

错误码

请参见错误码

相关文档