This API is used to query the restoration time range of a DB instance.
Currently, this API only supports replica set instances and cluster instances 4.0.
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/restore-time?date={yyyy-mm-dd}
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. |
date |
Yes |
Specifies the date to be queried in UTC time zone. The value is in the yyyy-mm-dd format. |
Name |
Type |
Description |
---|---|---|
restore_time |
Array of objects |
Indicates the restoration time ranges. For details, see Table 3. |
Name |
Type |
Description |
---|---|---|
start_time |
Long |
Indicates 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 |
Indicates the end time of the restoration time range in the UNIX timestamp format. The unit is millisecond and the time zone is UTC. |
{ "restore_time": [ { "start_time": 1607731200000, "end_time": 1607756414000 }, { "start_time": 1607756825000, "end_time": 1607761999000 }, { "start_time": 1607762943000, "end_time": 1607817599000 } ] }
For more information, see Error Code.