Queries the list of download tasks for backup sets in Database Backup Service (DBS).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:DescribeBackupSetDownloadTaskList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BackupPlanId |
string |
No |
The ID of the backup plan. Call the DescribeBackupPlanList operation to obtain the value of this parameter. Note
You must specify either BackupPlanId or BackupSetDownloadTaskId. |
dbsqhnuhyw3**** |
| BackupSetDownloadTaskId |
string |
No |
The ID of the backup set download task.
|
urxgrxt7**** |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 30, 50, and 100. Note
The default value is 30. |
30 |
| PageNum |
integer |
No |
The page number. The value must be a non-negative integer that does not exceed the maximum value of the integer type. The default value is 0. |
1 |
| ClientToken |
string |
No |
A client token that is used to ensure the idempotence of the request. This prevents duplicate requests. |
ETnLKlblzczshOTUbOCzXXXXXX |
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. |
0 |
| RequestId |
string |
The request ID. |
6DC3D286-E0E6-5988-A558-2184984B**** |
| ErrCode |
string |
The error code. |
Param.NotFound |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
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 download records for backup sets. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
30 |
| Items |
object |
||
| BackupSetDownloadTaskDetail |
array<object> |
The details of the backup set download task. |
|
|
object |
The details of the backup set download task. |
||
| BackupSetDownloadStatus |
string |
The status of the backup set download. Valid values:
|
finish |
| BackupSetDataSize |
integer |
The size of the backup set data. |
237837 |
| BackupSetDownloadTargetType |
string |
The target type for the backup set download. Note
This parameter is displayed only for automatic downloads. The value `agent` indicates that a backup gateway is installed. |
无 |
| BackupSetDownloadDir |
string |
The directory on the server to which the backup set is downloaded. Note
This parameter has a value only for automatic downloads. |
无 |
| ErrMessage |
string |
The error message. |
java.lang.IndexOutOfBoundsException. |
| BackupSetDownloadCreateTime |
integer |
The UNIX timestamp that indicates when the task was created. |
1642044001000 |
| BackupPlanId |
string |
The ID of the backup plan. |
qhnuhyw3**** |
| BackupSetDbType |
string |
The database type. |
MySQL |
| BackupSetDownloadInternetUrl |
string |
The public network download URL for the backup set. Note
This parameter has a value only for manual downloads when the format conversion is complete. |
"//dbs-137XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou.example" |
| BackupSetId |
string |
The ID of the source backup set. |
1h7za2yws**** |
| BackupSetDownloadIntranetUrl |
string |
The internal download URL for the backup set. Note
This parameter has a value only for manual downloads when the format conversion is complete. |
"//dbs-13XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou-internal.example" |
| BackupGatewayId |
integer |
The backup gateway for the backup set. This parameter has a value only for automatic downloads. |
无 |
| BackupSetDownloadWay |
string |
The download type. Valid values:
|
manual |
| BackupSetDownloadFinishTime |
integer |
The UNIX timestamp that indicates when the task was completed. |
1642044013000 |
| BackupSetJobType |
string |
The type of the source backup set task. Valid values:
|
cbs_backup_sub_cont |
| BackupSetDownloadTaskId |
string |
The ID of the backup set download task. |
urxgrxt7**** |
| BackupSetDownloadTaskName |
string |
The name of the backup set download task. |
1h7za2yws****-ManualCont |
| BackupSetDataFormat |
string |
The data format of the downloaded backup set. Valid values:
|
Native |
| BackupSetCode |
string |
The encoding of the source backup set. |
mysql-bin.00XXXX |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"PageNum": 0,
"RequestId": "6DC3D286-E0E6-5988-A558-2184984B****",
"ErrCode": "Param.NotFound",
"Success": true,
"ErrMessage": "The specified parameter %s value is not valid.",
"TotalPages": 1,
"TotalElements": 1,
"PageSize": 30,
"Items": {
"BackupSetDownloadTaskDetail": [
{
"BackupSetDownloadStatus": "finish",
"BackupSetDataSize": 237837,
"BackupSetDownloadTargetType": "无",
"BackupSetDownloadDir": "无",
"ErrMessage": "java.lang.IndexOutOfBoundsException.",
"BackupSetDownloadCreateTime": 1642044001000,
"BackupPlanId": "qhnuhyw3****",
"BackupSetDbType": "MySQL",
"BackupSetDownloadInternetUrl": "\"//dbs-137XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou.example\"",
"BackupSetId": "1h7za2yws****",
"BackupSetDownloadIntranetUrl": "\"//dbs-13XXXX-cn-hangzhou-1hr5cpbtmXXXX.oss-cn-hangzhou-internal.example\"",
"BackupGatewayId": 0,
"BackupSetDownloadWay": "manual",
"BackupSetDownloadFinishTime": 1642044013000,
"BackupSetJobType": "cbs_backup_sub_cont",
"BackupSetDownloadTaskId": "urxgrxt7****",
"BackupSetDownloadTaskName": "1h7za2yws****-ManualCont",
"BackupSetDataFormat": "Native",
"BackupSetCode": "mysql-bin.00XXXX"
}
]
}
}
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.