This API is used to obtain the list of databases that can be restored.
This API applies only to replica sets.
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/restore-database?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. |
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 |
---|---|---|
databases |
Array of String |
Indicates the database list. Each element in the list indicates a database. |
total_count |
Integer |
Indicates the total number of databases. |
{ "databases": [ "test_db" ], "total_count": 1 }
For more information, see Error Code.