You can call the CancelImport operation to cancel a migration task of an ApsaraDB for RDS instance.
This operation is supported for instances that run SQL Server and belong to the dedicated or dedicated host instance family. For more information about how to start a migration task, see ImportDatabaseBetweenInstances.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CancelImport |
The operation that you want to perform. Set the value to CancelImport. |
DBInstanceId | String | Yes | rm-uf6wjk5xxxxxxx |
The ID of the instance. |
ImportId | Integer | Yes | 8562584 |
The ID of the migration task that you want to cancel. Note This parameter is returned when the migration task is started. For more information,
see ImportDatabaseBetweenInstances.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 17F57FEE-EA4F-4337-8D2E-9C23CAA63D74 |
The ID of the request. |
Examples
Sample requests
http(s)://rds.aliyuncs.com/? Action=CancelImport
&DBInstanceId=rm-uf6wjk5xxxxxxx
&ImportId=8562584
&<Common request parameters>
Sample success responses
XML
format
<CancelImportResponse>
<RequestId>17F57FEE-EA4F-4337-8D2E-9C23CAA63D74</RequestId>
</CancelImportResponse>
JSON
format
{
"RequestId": " 17F57FEE-EA4F-4337-8D2E-9C23CAA63D74"
}
Error codes
For a list of error codes, visit the API Error Center.