Creates a cross-zone migration job.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
smc:CreateCrossZoneMigrationJob | create |
|
| 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 the source server to the China (Hangzhou) region, set this parameter to | cn-hangzhou |
ClientToken | string | No | 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 |
InstanceId | string | No | The instance ID. | i-bp1ff25rzvnul6kr**** |
TargetVSwitchId | string | No | The vSwitch ID of the destination Elastic Compute Service (ECS) instance. | vsw-bp1mxqnssl8nafltcx32e |
TargetZoneId | string | No | The ID of the destination zone. | cn-hangzhou-i |
TargetInstanceType | string | No | The type of the new instance. | ecs.g7.large |
AutoPay | boolean | No | Specifies whether to enable automatic payment. Valid values:
| false |
Disk | array<object> | No | The disk information. | |
object | No | |||
DiskId | string | No | The disk ID. | d-bp1eeplkn4j29wf7irpb |
Category | string | No | The disk category. A value of cloud_essd that indicates 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 parameters
Examples
Sample success responses
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. |
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. |
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. |
For a list of error codes, visit the Service error codes.