Mengkueri daftar tugas unduhan tingkat lanjut untuk instans RDS for MySQL, RDS for PostgreSQL, dan PolarDB Basis Data Relasional Cloud-Native for MySQL.
Deskripsi operasi
Applicable engines
-
ApsaraDB RDS for MySQL instances that use cloud disks
-
ApsaraDB RDS for PostgreSQL
-
PolarDB for MySQL
-
MongoDB
Related documents
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:DescribeDownloadTask |
get |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionCode |
string |
Yes |
ID Wilayah tempat Instans berada. Untuk mendapatkan ID Wilayah, panggil DescribeDBInstanceAttribute. |
cn-hangzhou |
| InstanceName |
string |
No |
ID Instans. Catatan
Parameter ini wajib diisi. |
rm-bp1imnmcjxdz7**** |
| DatasourceId |
string |
No |
ID Sumber data di DBS. Formatnya adalah: ds-${ID Instans}_${ID Wilayah}. |
ds-rm-2ze8g2am97624****_cn-hangzhou |
| BackupSetId |
string |
No |
ID set cadangan. Untuk mendapatkan ID set cadangan, panggil DescribeBackups. |
216**** |
| State |
string |
No |
Status Tugas unduhan. Nilai valid:
|
queueing |
| TaskType |
string |
No |
Tipe Tugas unduhan. Nilai valid:
|
full |
| StartTime |
string |
No |
Awal rentang pengatur waktu untuk mengkueri Tugas berdasarkan pengatur waktu pembuatannya. Ini adalah Stempel waktu UNIX dalam milidetik (ms). |
1661941554000 |
| EndTime |
string |
No |
Akhir rentang pengatur waktu untuk mengkueri Tugas berdasarkan pengatur waktu pembuatannya. Ini adalah Stempel waktu UNIX dalam milidetik (ms). |
1661941556000 |
| PageSize |
string |
No |
Jumlah entri yang akan ditampilkan di setiap halaman. |
50 |
| CurrentPage |
string |
No |
Nomor halaman. |
1 |
| OrderDirect |
string |
No |
Arah Pengurutan. Nilai valid:
|
desc |
| OrderColumn |
string |
No |
Bidang yang digunakan untuk Pengurutan. Nilai default adalah gmt_create, yang menunjukkan pengatur waktu pembuatan. |
gmt_create |
| ClusterName |
string |
No |
Nama kluster sharded. Parameter ini hanya diperlukan untuk instans MongoDB. |
dds-example |
Elemen respons
|
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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.