Purchases a data migration instance.

Note This API operation is outdated. We recommend that you use the new version. For more information, see CreateDtsInstance.

Before you call this operation, make sure that you fully understand the billing methods and pricing of Data Transmission Service (DTS).

After you purchase a data migration instance, you must call the ConfigureMigrationJob operation to configure a data migration task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateMigrationJob

The operation that you want to perform. Set the value to CreateMigrationJob.

MigrationJobClass String Yes 2xlarge

The specification of the data migration instance. Valid values: small, medium, large, xlarge, and 2xlarge.

Note
Region String Yes cn-hangzhou

The ID of the region where the data migration instance resides. The region ID of the data migration instance is the same as that of the destination database. For more information, see List of supported regions.

RegionId String No cn-hangzhou

The ID of the region where the data migration instance resides. You do not need to specify this parameter because this parameter will be removed in the future.

ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe63****

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 ClientToken parameter can contain only ASCII characters and cannot exceed 64 characters in length.

AccountId String No 12323344****

The ID of the Alibaba Cloud account. You do not need to specify this parameter because this parameter will be removed in the future.

Response parameters

Parameter Type Example Description
ErrCode String InternalError

The error code returned if the call failed.

ErrMessage String The request processing has failed due to some unknown error.

The error message returned if the call failed.

MigrationJobId String dtsi8911td9233****

The ID of the data migration instance.

RequestId String C166D79D-436B-45F0-B5A5-25E1959F****

The ID of the request.

Success String true

Indicates whether the call was successful.

Examples

Sample requests

http(s)://dts.aliyuncs.com/?Action=CreateMigrationJob
&MigrationJobClass=2xlarge
&Region=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<CreateMigrationJobResponse>
      <RequestId>C166D79D-436B-45F0-B5A5-25E1959F****</RequestId>
      <Success>true</Success>
      <MigrationJobId>dtsi8911td9233****</MigrationJobId>
</CreateMigrationJobResponse>

JSON format

{
	"RequestId": "C166D79D-436B-45F0-B5A5-25E1959F****",
	"Success": true,
	"MigrationJobId": "dtsi8911td9233****"
}

Error codes

For a list of error codes, visit the API Error Center.