This API is used to obtain the list of databases collections that can be restored.
This API applies only to replica sets.
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/restore-collection?db_name={db_name}&restore_time={restore_time}&offset={offset}&limit={limit}
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. |
instance_id |
Yes |
Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance. |
db_name |
Yes |
Specifies the database name. |
restore_time |
Yes |
Specifies the restoration time point. The value is a UNIX timestamp, in milliseconds. The time zone is UTC. |
offset |
No |
Specifies the index position.
|
limit |
No |
Specifies the upper limit of the number of queried records.
|
Name |
Type |
Description |
---|---|---|
collections |
Array of objects |
Indicates the list of collections. Each element in the list indicates a collection. |
total_count |
Integer |
Indicates the total number of collections. |
Name |
Type |
Description |
---|---|---|
name |
String |
Indicates the collection name. |
{ "collections": [ "dds-test" ], "total_count": 1 }
For more information, see Error Code.