Server Migration Center (SMC) lets you migrate an Alibaba Cloud Elastic Compute Service (ECS) instance to a different zone within the same region and change its instance type, including the vCPU and memory, within the same instance family. This feature helps you meet business requirements for instance migration and specification changes. Call this operation to create a cross-zone migration job.
Operation description
For more information about the limits and effects of cross-zone migration, see Cross-zone migration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smc:CreateCrossZoneMigrationJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the destination Alibaba Cloud region. For example, if you want to migrate a source server to the China (Hangzhou) region, the region ID is |
cn-hangzhou |
| ClientToken |
string |
No |
A client token to ensure the idempotence of the request. Generate a unique value for this parameter from your client. `ClientToken` can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
123e4567-e89b-12d3-a456-426655440000 |
| InstanceId |
string |
No |
The ID of the ECS instance. |
i-bp1ff25rzvnul6kr**** |
| TargetVSwitchId |
string |
No |
The ID of the destination vSwitch. |
vsw-bp1mxqnssl8nafltc**** |
| TargetZoneId |
string |
No |
The ID of the destination zone. |
cn-hangzhou-i |
| TargetInstanceType |
string |
No |
The destination instance type. |
ecs.g7.large |
| AutoPay |
boolean |
No |
Specifies whether to enable automatic payment. Valid values:
|
false |
| Disk |
array<object> |
No |
The disk information. |
|
|
object |
No |
A disk object. |
||
| DiskId |
string |
No |
The disk ID. |
d-bp1eeplkn4j29wf7**** |
| Category |
string |
No |
The disk category. `cloud_essd` indicates an Enhanced SSD (ESSD). |
cloud_essd |
| PerformanceLevel |
string |
No |
The performance level of the ESSD. Valid values:
|
PL0 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmw3ty5y7**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
A9DBD2F8-DE5A-5844-BA6F-957A996CBD78 |
| JobId |
string |
The migration job ID. |
j-bp17bclvg344jlyt**** |
Examples
Success response
JSON format
{
"RequestId": "A9DBD2F8-DE5A-5844-BA6F-957A996CBD78",
"JobId": "j-bp17bclvg344jlyt****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ReplicationJobDataDiskIndex.Invalid | The specified replication job contains data disk index not found in source server. | The specified replication job contains data disk indexes that do not exist in the source server. |
| 400 | VSwitchIdVpcId.Mismatch | The specified VSwitchId and VpcId does not match. | The specified VSwitchId and VpcId does not match. |
| 400 | InvalidSecurityGroupId.IncorrectNetworkType | The network type of the specified security group does not support this action. | The network type of the specified security group does not support this action. |
| 400 | InvalidSecurityGroupId.VPCMismatch | The specified security group and the specified virtual switch are not in the same VPC. | The specified security group and the specified virtual switch are not in the same VPC. |
| 400 | QuotaExceeded.ReplicationJob | The maximum number of replication jobs is exceeded. Please submit a ticket to raise the quota. | The maximum number of replication jobs is exceeded. Please submit a ticket to raise the quota. |
| 400 | ReplicationJobName.Duplicate | The specified replication job name already exists. | The specified replication job name already exists. |
| 400 | SourceServerState.Invalid | The specified source server status: %s is invalid. This operation can only be performed in the following status: %s. | The specified source server status: %s is invalid. This operation can only be performed in the following status: %s. |
| 500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. |
| 403 | EntityNotExist.Role | The account is unauthorized. Please assign the role AliyunServiceRoleForSMC to your account. | The account does not have the operation permission, please assign the account AliyunServiceRoleForSMC role. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.