Querying the Restoration Time Ranges
Description
This API is used to query the restoration time range of a DB instance.
Restrictions
Currently, this API supports replica set instances and cluster instances 4.0, 4.2, and 4.4.
Request Parameters
|
Parameter |
Type |
IN |
Mandatory |
Description |
|---|---|---|---|---|
|
X-Auth-Token |
string |
header |
Yes |
User token |
|
Content-Type |
string |
header |
Yes |
MIME type of the request body. You are advised to use the default value application/json. For APIs used to upload objects or images, the value can vary depending on the flow type. |
|
X-Language |
string |
header |
No |
Language |
|
project_id |
string |
path |
Yes |
Project ID. To obtain the project ID, see Obtaining a Project ID. |
|
instance_id |
String |
path |
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. |
|
date |
string |
query |
Yes |
The date to be queried. |
Response Parameters
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
restore_time |
Array of objects |
Yes |
The restoration time ranges. For details, see Table 3. |
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
start_time |
Long |
Yes |
The start time of the restoration time range in the UNIX timestamp format. The unit is millisecond and the time zone is UTC. |
|
end_time |
Long |
Yes |
The end time of the restoration time range in the UNIX timestamp format. The unit is millisecond and the time zone is UTC. |
- Example response
{ "restore_time": [ { "start_time": 1607731200000, "end_time": 1607756414000 }, { "start_time": 1607756825000, "end_time": 1607761999000 }, { "start_time": 1607762943000, "end_time": 1607817599000 } ] }
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