Queries a list of advanced download tasks for RDS for MySQL, RDS for PostgreSQL, and PolarDB for MySQL instances.
Operation description
Applicable engines
ApsaraDB RDS for MySQL instances that use cloud disks
ApsaraDB RDS for PostgreSQL
PolarDB for MySQL
MongoDB
Related documents
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:DescribeDownloadTask |
get |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionCode |
string |
Yes |
The ID of the region where the instance resides. To obtain the region ID, call DescribeDBInstanceAttribute. |
cn-hangzhou |
| InstanceName |
string |
No |
The instance ID. Note
This parameter is required. |
rm-bp1imnmcjxdz7**** |
| DatasourceId |
string |
No |
The ID of the data source in DBS. The format is: ds-${Instance ID}_${Region ID}. |
ds-rm-2ze8g2am97624****_cn-hangzhou |
| BackupSetId |
string |
No |
The ID of the backup set. To obtain the backup set ID, call DescribeBackups. |
216**** |
| State |
string |
No |
The state of the download task. Valid values:
|
queueing |
| TaskType |
string |
No |
The type of the download task. Valid values:
|
full |
| StartTime |
string |
No |
The start of the time range to query tasks based on their creation time. This is a UNIX timestamp in milliseconds (ms). |
1661941554000 |
| EndTime |
string |
No |
The end of the time range to query tasks based on their creation time. This is a UNIX timestamp in milliseconds (ms). |
1661941556000 |
| PageSize |
string |
No |
The number of entries to return on each page. |
50 |
| CurrentPage |
string |
No |
The page number. |
1 |
| OrderDirect |
string |
No |
The sorting direction. Valid values:
|
desc |
| OrderColumn |
string |
No |
The field used for sorting. The default value is gmt_create, which indicates the creation time. |
gmt_create |
| ClusterName |
string |
No |
The name of the sharded cluster. This parameter is required only for MongoDB instances. |
dds-example |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned parameters. |
||
| RequestId |
string |
The request ID. |
5D285EB9-A443-592D-9F3D-A888FAC3**** |
| ErrCode |
string |
The error code. |
DBS.InternalError |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
| ErrMessage |
string |
The error message. |
instanceName can not be empty |
| Code |
string |
The error code. |
DBS.InternalError |
| Message |
string |
The error message. |
instanceName can not be empty |
| Data |
object |
The task details. |
|
| PageNumber |
integer |
The page number. It must be greater than 0 and not exceed the maximum value of the integer data type. Default value: 1. |
1 |
| TotalPages |
integer |
The total number of pages. |
2 |
| Extra |
string |
Additional information about the task that is used to back up data to the cloud. |
dbtest |
| TotalElements |
integer |
The total number of download tasks. |
1 |
| PageSize |
integer |
The number of entries returned per page. |
10 |
| Content |
object |
||
| List |
array<object> |
The task details. |
|
|
object |
The task details. |
||
| TaskId |
string |
The download task ID. |
dt-qxntlvgu**** |
| RegionCode |
string |
The region ID. |
cn-hangzhou |
| Format |
string |
The destination format to which the downloaded data is converted. Valid values:
|
csv |
| DbList |
string |
The list of databases. |
[dbtest] |
| BakSetId |
string |
The ID of the full backup set. |
148261**** |
| DownloadStatus |
string |
The state of the download task. Valid values:
|
queueing |
| ExportDataSize |
string |
The volume of exported data, in bytes. |
0 |
| ImportDataSize |
string |
The volume of processed data, in bytes. |
0 |
| BackupSetTime |
string |
The point in time of the point-in-time download task. This is a UNIX timestamp in milliseconds (ms). |
1663162216000 |
| TargetType |
string |
The type of the download destination. Valid values:
|
URL |
| TargetPath |
string |
The destination path of the downloaded data. This parameter is returned when TargetType is set to OSS. |
test_db/path |
| Progress |
string |
The number of exported tables/The total number of tables to be exported. |
0/0 |
| GmtCreate |
string |
The time when the task was created. This is a UNIX timestamp in milliseconds. |
1663321957000 |
Examples
Success response
JSON format
{
"RequestId": "5D285EB9-A443-592D-9F3D-A888FAC3****",
"ErrCode": "DBS.InternalError",
"Success": "true",
"ErrMessage": "instanceName can not be empty",
"Code": "DBS.InternalError",
"Message": "instanceName can not be empty",
"Data": {
"PageNumber": 1,
"TotalPages": 2,
"Extra": "dbtest",
"TotalElements": 1,
"PageSize": 10,
"Content": {
"List": [
{
"TaskId": "dt-qxntlvgu****",
"RegionCode": "cn-hangzhou",
"Format": "csv",
"DbList": "[dbtest]",
"BakSetId": "148261****",
"DownloadStatus": "queueing",
"ExportDataSize": "0",
"ImportDataSize": "0",
"BackupSetTime": "1663162216000",
"TargetType": "URL",
"TargetPath": "test_db/path",
"Progress": "0/0",
"GmtCreate": "1663321957000"
}
]
}
}
}
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.