All Products
Search
Document Center

Server Migration Center:CreateCrossZoneMigrationJob

Last Updated:Oct 29, 2024

Creates a cross-zone migration job.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
smc:CreateCrossZoneMigrationJobcreate
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the destination Alibaba Cloud region.

For example, if you want to migrate the source server to the China (Hangzhou) region, set this parameter to cn-hangzhou. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
ClientTokenstringNo

The client token that is used to ensure the idempotency of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

123e4567-e89b-12d3-a456-426655440000
InstanceIdstringNo

The instance ID.

i-bp1ff25rzvnul6kr****
TargetVSwitchIdstringNo

The vSwitch ID of the destination Elastic Compute Service (ECS) instance.

vsw-bp1mxqnssl8nafltcx32e
TargetZoneIdstringNo

The ID of the destination zone.

cn-hangzhou-i
TargetInstanceTypestringNo

The type of the new instance.

ecs.g7.large
AutoPaybooleanNo

Specifies whether to enable automatic payment. Valid values:

  • true (default): enables automatic payment. Make sure that you have sufficient balance within your account.
  • false: disables automatic payment. In this case, you must manually pay for the instance. For more information, see Renew a subscription instance.
false
Diskarray<object>No

The disk information.

objectNo
DiskIdstringNo

The disk ID.

d-bp1eeplkn4j29wf7irpb
CategorystringNo

The disk category. A value of cloud_essd that indicates enhanced SSD (ESSD).

cloud_essd
PerformanceLevelstringNo

The performance level of the ESSD. Valid values:

  • PL0: A single ESSD can deliver up to 10,000 random read/write IOPS.
  • PL1: A single ESSD can deliver up to 50,000 random read/write IOPS.
  • PL2: A single ESSD can deliver up to 100,000 random read/write IOPS.
  • PL3: A single ESSD can deliver up to 1,000,000 random read/write IOPS.
PL0
ResourceGroupIdstringNo

The ID of the resource group.

rg-acfmw3ty5y7****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

A9DBD2F8-DE5A-5844-BA6F-957A996CBD78
JobIdstring

The ID of the migration job.

j-bp17bclvg344jlyt****

Examples

Sample success responses

JSONformat

{
  "RequestId": "A9DBD2F8-DE5A-5844-BA6F-957A996CBD78",
  "JobId": "j-bp17bclvg344jlyt****"
}

Error codes

HTTP status codeError codeError messageDescription
400ReplicationJobDataDiskIndex.InvalidThe 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.
400VSwitchIdVpcId.MismatchThe specified VSwitchId and VpcId does not match.The specified VSwitchId and VpcId does not match.
400InvalidSecurityGroupId.IncorrectNetworkTypeThe 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.
400InvalidSecurityGroupId.VPCMismatchThe 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.
400QuotaExceeded.ReplicationJobThe 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.
400ReplicationJobName.DuplicateThe specified replication job name already exists.The specified replication job name already exists.
400SourceServerState.InvalidThe 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.
403EntityNotExist.RoleThe 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.
500InternalErrorAn 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.

For a list of error codes, visit the Service error codes.