获取可恢复的数据库集合列表
功能介绍
获取可恢复的数据库集合列表。
接口约束
该接口只支持副本集实例。
调试
您可以在API Explorer中调试该接口。
URI
- URI格式
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/restore-collection?db_name={db_name}&restore_time={restore_time}&offset={offset}&limit={limit}
- URI样例
https://dds.cn-north-1.myhuaweicloud.com/v3/056538411200d4cd2f79c003c7606412/instances/d5833c2854a4486cb7960f829269e211in02/restore-collection?db_name=mydbx&restore_time=1607689584000&limit=10&offset=0
- 参数说明
表1 参数说明 名称
是否必选
描述
project_id
是
租户在某一Region下的Project ID。
instance_id
是
实例ID,可以调用“查询实例列表”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
db_name
是
数据库名称。
restore_time
是
恢复时间点。
UNIX时间戳格式,单位是毫秒,时区是UTC。
offset
否
索引位置偏移量。
- 取值大于或等于0,且为Integer类型。
- 不传该参数时,查询偏移量默认为0。
limit
否
查询个数上限值。
- 取值范围:1~100。
- 不传该参数时,默认查询前100条信息。
请求消息
无。
响应消息
- 要素说明
表2 要素说明 名称
参数类型
描述
collections
Array of objects
集合列表,列表中每个元素表示一个集合。
total_count
Integer
集合总数。
表3 要素说明 名称
参数类型
描述
name
String
集合名称。
- 响应样例
{ "collections": [ "dds-test" ], "total_count": 1 }
