This API is used to query the restoration time range of a DB instance.
GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/restore-time
Name |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID of a tenant in a region. For details about how to obtain the project ID, see Obtaining a Project ID. |
instance_id |
Yes |
Specifies the DB instance ID. |
date |
No |
Specifies the date to be queried. The value is in the yyyy-mm-dd format, and the time zone is UTC. |
Name |
Type |
Description |
---|---|---|
restore_time |
Array of objects |
Indicates the list of the restoration time range. For details, see Table 3. |
Name |
Type |
Description |
---|---|---|
start_time |
Integer |
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 |
Integer |
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": 1532001446987, "end_time": 1532742139000 } ] }
For details, see Abnormal Request Results.
For details, see Status Codes.
For details, see Error Codes.