You can call this operation to stop a migration task.

Description

This operation can only be used to stop migration tasks that are in the Running and Syncing states.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
JobId String Yes j-xxxxxxxxxxxxxxx

The ID of the migration task to be stopped.

Action String Yes StopReplicationJob

The operation that you want to perform. Set this parameter to StopReplicationJob.

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=StopReplicationJob
&JobId=j-xxxxxxxxxxxxxxx
&<Common request parameters>

Sample success response

XML format

<StopReplicationJobResponse>
  <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</StopReplicationJobResponse>

JSON format

{
	"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 operation is not supported while the migration task is in the current state.
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 problem persists, submit a ticket.

View error codes