Obtaining the List of Databases That Can Be Restored
Description
This API is used to obtain the list of databases that can be restored.
Restrictions
This API applies only to replica sets.
URI
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
X-Language |
String |
No |
Language |
|
project_id |
String |
Yes |
Project ID. To obtain the project ID, see Obtaining a Project ID. |
|
instance_id |
String |
Yes |
Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one. |
|
restore_time |
String |
Yes |
Specifies the restoration time point. The value is a UNIX timestamp, in milliseconds. The time zone is UTC. |
|
offset |
Integer |
No |
Specifies the index position.
|
|
limit |
Integer |
No |
Specifies the upper limit of the number of queried records.
|
Request Parameters
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
X-Auth-Token |
String |
Yes |
User token |
Response Parameters
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
databases |
Array of String |
Yes |
Indicates the database list. Each element in the list indicates a database. |
|
total_count |
Integer |
Yes |
Indicates the total number of databases. |
- Example response
{ "databases": [ "test_db" ], "total_count": 1 }
Status Code
For details, see Status Code.
Error Code
For details, see Error Code.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot