Stops an incremental migration task that periodically runs. After you call this operation to stop an incremental migration task, the task is complete.
Description
- The incremental migration task must be in the Waiting state.
- After you call this operation, the incremental migration task no longer periodically
runs. In the meantime, Server Migration Center (SMC) determines whether to perform
a full data migration for the last time based on the value of the
SyncDataparameter. If you set the SyncData parameter tofalse, SMC releases intermediate resources without data migration before the migration task is complete. If you set the SyncData parameter totrue, SMC performs a full data migration and releases intermediate resources before the migration task is complete.
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | CutOverReplicationJob |
The operation that you want to perform. Set the value to CutOverReplicationJob. |
| JobId | String | Yes | j-bp1fnx5y3djc4cop**** |
The ID of the incremental migration task. |
| SyncData | Boolean | No | false |
Specifies whether to migrate full data for the last time. Valid values:
Default value: false. |
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=CutOverReplicationJob
&JobId=j-bp1fnx5y3djc4cop****
&SyncData=false
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<CutOverReplicationJobResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</CutOverReplicationJobResponse>
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.