You are not logged in.
ListRestoreDatabases
This API is used to obtain the list of databases that can be restored.
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. |
limit | integer | query | No | Specifies the upper limit of the number of queried records. The value ranges from 1 to 100. If this parameter is not transferred, the first 100 records are queried by default. |
offset | integer | query | No | Specifies the index position. The value must be greater than or equal to 0. If this parameter is not transferred, the value is 0 by default. |
restore_time | string | query | Yes | Specifies the restoration time point. The value is a UNIX timestamp, in milliseconds. The time zone is UTC. |
Success.
Name | Type | Description |
---|---|---|
total_count | integer | Indicates the total number of databases. |
databases | Array of strings | Indicates the database list. Each element in the list indicates a database. |
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-database?restore_time=1607689584000&limit=10&offset=1"
Success.
{
"total_count": 1,
"databases": [
"dds-test"
]
}