You are not logged in.
ListRestoreTimes
This API is used to query the restoration time range of a DB instance.
Name | Type | IN | Mandatory | Description |
---|---|---|---|---|
X-Language | string | header | No | Specifies the language. |
x-auth-token | string | header | Yes | Specifies the user token obtained from the IAM service. |
instance_id | string | path | Yes | Specifies the instance ID, which can be obtained by calling the API for querying instances and details. If you do not have an instance, you can call the API used for creating an instance. |
project_id | string | path | Yes | Specifies the project ID of a tenant in a region. |
date | string | query | Yes | Specifies the date to be queried. The value is in the yyyy-mm-dd format, and the time zone is UTC. |
Success.
Name | Type | Description |
---|---|---|
restore_time | Array of restore_time objects | Indicates the restoration time ranges. |
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. |
Client or server error.
Name | Type | Description |
---|---|---|
error_code | string | Specifies the error returned when a task submission exception occurs. |
error_msg | string | Specifies the description of the error returned when a task submission exception occurs. |
"GET https://{endpoint}/v3/056538411200d4cd2f79c003c7606412/instances/d5833c2854a4486cb7960f829269e211in02/restore-time?date=2020-12-12"
Success.
{
"restore_time": [
{
"start_time": 1607731200000,
"end_time": 1607756414000
}
]
}