You can call this operation to cancel the migration task of RDS instances.

This operation is applicable to the dedicated CPU instances and dedicated hosts of MySQL and SQL Server. For more information about the migration task, see ImportDatabaseBetweenInstances.

Note This operation is not applicable to SQL Server 2017 Cluster Edition instances.

Debugging

You can use OpenAPI Explorer to perform debugging. OpenAPI Explorer allows you to perform various API operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required? Example Description
Action String Yes CancelImport

The operation that you want to perform. Set this parameter to CancelImport.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

ImportId Integer Yes 8562584

The ID of the migration task.

Note This parameter is returned when the migration task is initiated. For more information, see ImportDatabaseBetweenInstances.
AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID issued by Alibaba Cloud for users to access services.

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>

Successful response examples

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.