Queries the list of Database Backup Service (DBS) restore jobs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:DescribeRestoreTaskList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BackupPlanId |
string |
No |
The ID of the backup schedule. Note
Specify either BackupPlanId or RestoreTaskId. |
dbs1hvb0wwwXXXXX |
| RestoreTaskId |
string |
No |
The ID of the restore job. You can specify multiple IDs. Separate them with commas (,). You can call the CreateRestoreTask operation to obtain this parameter. Note
Specify either RestoreTaskId or BackupPlanId. If you specify both, an error is returned. |
s102h7rf5anq |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 1 to 100. Note
The default value is 30. |
30 |
| PageNum |
integer |
No |
The page number. The value must be an integer that is greater than or equal to 0. The default value is 0. |
1 |
| ClientToken |
string |
No |
A client token that is used to ensure the idempotence of the request. |
ETnLKlblzczshOTUbOCzxxxxxxx |
| StartTimestamp |
integer |
No |
The start time of the backup. |
1570701361528 |
| EndTimestamp |
integer |
No |
The end time of the backup. |
1570701361528 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The details of the returned parameters. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| PageNum |
integer |
The page number. |
1 |
| RequestId |
string |
The request ID. |
9C397502-B4F2-4E22-AD97-C81F0049F3F3 |
| ErrCode |
string |
The error code. |
Param.NotFound |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrMessage |
string |
The error message. |
The specified parameter %s value is not valid. |
| TotalPages |
integer |
The total number of pages. |
1 |
| TotalElements |
integer |
The total number of restore jobs. |
1 |
| PageSize |
integer |
The number of entries on the current page. |
30 |
| Items |
object |
||
| RestoreTaskDetail |
array<object> |
The details of the restore job. |
|
|
object |
|||
| RestoreStatus |
string |
The status of the restore job. Valid values:
|
running |
| FullStruAfterRestoreProgress |
integer |
The progress of the post-restore full structure task. |
100 |
| CrossRoleName |
string |
The name of the Resource Access Management (RAM) role used for cross-account backup. |
test123 |
| RestoreDir |
string |
The restore path. |
100.X.X.10:33204 |
| CrossAliyunId |
string |
The UID of the Alibaba Cloud account used for cross-account backup. |
2xxx7778xxxxxxxxxx |
| RestoreObjects |
string |
The objects to restore. |
[ { \"DBName\":\"test\" } ] |
| BackupPlanId |
string |
The ID of the backup schedule. |
dbs1hvb0wXXXX |
| DestinationEndpointRegion |
string |
The region of the database. |
cn-hangzhou |
| RestoreTaskCreateTime |
integer |
The time when the restore job was created. This is a UNIX timestamp. Unit: milliseconds. Example: 1554560477000. |
1554560477000 |
| DestinationEndpointUserName |
string |
The database account. |
test |
| RestoreTaskFinishTime |
integer |
The time when the restore job was completed. This is a UNIX timestamp. Unit: milliseconds. Example: 1554560477000. |
1554560477000 |
| DestinationEndpointIpPort |
string |
The database endpoint. |
100.X.X.10:33204 |
| DestinationEndpointDatabaseName |
string |
The database name. |
test |
| DestinationEndpointInstanceType |
string |
The location of the database. Valid values:
|
RDS |
| DestinationEndpointOracleSID |
string |
The Oracle system ID (SID). |
test |
| FullStruforeRestoreProgress |
integer |
The progress of the pre-restore full structure task. |
0 |
| ErrMessage |
string |
The error message. |
NULL |
| RestoreTaskId |
string |
The ID of the restore job. |
s1XXXXXX |
| FullDataRestoreProgress |
integer |
The progress of the full data restore. |
100 |
| ContinuousRestoreProgress |
integer |
The progress of the incremental log restore. |
100 |
| DestinationEndpointInstanceID |
string |
The ID of the database instance. |
rm-bp1p8c2947XXX |
| BackupSetId |
string |
The ID of the full backup set used for the restore. |
1ibh2f5uXXX |
| BackupGatewayId |
integer |
The ID of the backup gateway. |
324234332 |
| RestoreTaskName |
string |
The name of the restore job. |
test |
| RestoreTime |
integer |
The time to which the database is restored. This is a UNIX timestamp. Unit: milliseconds. Example: 1554560477000. |
1554560477000 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"PageNum": 1,
"RequestId": "9C397502-B4F2-4E22-AD97-C81F0049F3F3",
"ErrCode": "Param.NotFound",
"Success": true,
"ErrMessage": "The specified parameter %s value is not valid. ",
"TotalPages": 1,
"TotalElements": 1,
"PageSize": 30,
"Items": {
"RestoreTaskDetail": [
{
"RestoreStatus": "running",
"FullStruAfterRestoreProgress": 100,
"CrossRoleName": "test123",
"RestoreDir": "100.X.X.10:33204",
"CrossAliyunId": "2xxx7778xxxxxxxxxx",
"RestoreObjects": "[ { \\\"DBName\\\":\\\"test\\\" } ]",
"BackupPlanId": "dbs1hvb0wXXXX",
"DestinationEndpointRegion": "cn-hangzhou",
"RestoreTaskCreateTime": 1554560477000,
"DestinationEndpointUserName": "test",
"RestoreTaskFinishTime": 1554560477000,
"DestinationEndpointIpPort": "100.X.X.10:33204",
"DestinationEndpointDatabaseName": "test",
"DestinationEndpointInstanceType": "RDS",
"DestinationEndpointOracleSID": "test",
"FullStruforeRestoreProgress": 0,
"ErrMessage": "NULL",
"RestoreTaskId": "s1XXXXXX",
"FullDataRestoreProgress": 100,
"ContinuousRestoreProgress": 100,
"DestinationEndpointInstanceID": "rm-bp1p8c2947XXX",
"BackupSetId": "1ibh2f5uXXX",
"BackupGatewayId": 324234332,
"RestoreTaskName": "test",
"RestoreTime": 1554560477000
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.