Starts a migration task.
Description
You can call this operation to start only migration tasks that are in the Ready, Stopped, or InError state.
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | StartReplicationJob |
The operation that you want to perform. Set this parameter to StartReplicationJob. |
JobId | String | Yes | j-bw526m1vi6x21q**** |
The ID of the migration task. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
The ID of the request. |
Examples
Sample request
http(s)://smc.aliyuncs.com/?Action=StartReplicationJob
&JobId=j-bw526m1vi6x21q****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<StartReplicationJobResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</StartReplicationJobResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ReplicationJob.InvalidStatus | The specified replication job status is invalid. | The error message returned because the migration task is in an invalid state and the operation is not supported. |
400 | SourceServerState.Invalid | The specified source server status is invalid. | The error message returned because the source server is in an invalid state and the operation is not supported. |
500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | The error message returned because an internal error has occurred. Try again later. If the error persists, submit a ticket. |
For a list of error codes, visit the API Error Center.