获取AccountManagement对应collection的所有key列表
功能介绍
List keys for a specified collection.
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
URI
GET /internal/list-keys
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
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
参数 |
参数类型 |
描述 |
---|---|---|
keys |
Array of strings |
The unique key of a data. 数组长度:0 - 200 |
page_info |
PageInfo object |
The information of page. |
参数 |
参数类型 |
描述 |
---|---|---|
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. |
错误码
请参见错误码。