You can call the DescribeBackupTasks operation to query the backup tasks of an ApsaraDB RDS instance.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeBackupTasks |
The operation that you want to perform. Set the value to DescribeBackupTasks. |
DBInstanceId | String | Yes | rm-uf6wjk5xxxxxxx |
The ID of the instance. |
ClientToken | String | No | ETnLKlblzczshOTUbOCzxxxxxxx |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. |
Flag | String | No | None |
A hidden parameter. |
BackupJobId | Integer | No | 4762614 |
The ID of the single backup task to query. |
BackupMode | String | No | Automated |
The backup mode that is used by the backup tasks to query. Valid values:
|
BackupJobStatus | String | No | NoStart |
The status of the backup tasks to query. Valid values:
By default, this operation returns backup tasks in both states. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Items | Array of BackupJob |
An array that consists of backup tasks. |
|
BackupJob | |||
BackupId | String | 346650271 |
The ID of the backup set that is generated by the backup task. Note If the return value of the BackupStatus parameter is Finished, you must specify the BackupJobId parameter to obtain the ID of the generated backup set.
|
BackupJobId | String | 4762614 |
The ID of the backup task. |
BackupProgressStatus | String | NoStart |
The status of the backup program. Valid values:
|
BackupStatus | String | NoStart |
The status of the backup task. Valid values:
Note This parameter is returned only when a backup task is executed.
|
JobMode | String | Automated |
The backup mode of the backup task. Valid values:
|
Process | String | 25 |
The progress of the backup task. Unit: %. |
TaskAction | String | NormalBackupTask |
The type of the backup task. Valid values:
|
RequestId | String | 90496720-2319-42A8-87CD-FCE4DF95EBED |
The ID of the request. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/? Action=DescribeBackupTasks
&DBInstanceId=rm-uf6wjk5xxxxxxx
&<Common request parameters>
Sample success responses
XML
format
<DescribeBackupTasksResponse>
<Items>
<BackupJob>
<JobMode>Automated</JobMode>
<BackupProgressStatus>NoStart</BackupProgressStatus>
<TaskAction>NormalBackupTask</TaskAction>
<BackupStatus>NoStart</BackupStatus>
<BackupJobId>4762614</BackupJobId>
</BackupJob>
</Items>
<RequestId>90496720-2319-42A8-87CD-FCE4DF95EBED</RequestId>
</DescribeBackupTasksResponse>
JSON
format
{
"Items": {
"BackupJob": [
{
"JobMode": "Automated",
"BackupProgressStatus": "NoStart",
"TaskAction": "NormalBackupTask",
"BackupStatus": "NoStart",
"BackupJobId": 4762614
}
]
},
"RequestId": "90496720-2319-42A8-87CD-FCE4DF95EBED"
}
Error codes
For a list of error codes, visit the API Error Center.