CutOverReplicationJob
调用CutOverReplicationJob将指定的自动增量迁移任务停止周期执行,并完成迁移任务。
接口说明
- 自动增量迁移任务的状态必须处于等待中(Waiting)。
- 调用该接口后,自动增量迁移任务将不再周期执行,而是根据
SyncData参数取值进行判断。当SyncData=false时,不再进行数据迁移,直接自动清理中转资源后,完成迁移任务;当SyncData=true时,将进行最后一次全量数据迁移,然后自动清理中转资源,完成迁移任务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
|
名称 |
类型 |
是否必选 |
示例值 |
描述 |
| Action | String | 是 | CutOverReplicationJob | 系统规定参数。取值:CutOverReplicationJob。 |
| JobId | String | 是 | j-bp1fnx5y3djc4cop**** | 自动增量迁移任务ID。 |
| SyncData | Boolean | 否 | false | 是否需要进行最后一次全量数据迁移。取值范围:
默认值:false。 |
返回数据
名称 |
类型 |
示例值 |
描述 |
| RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E | 请求ID。 |
示例
请求示例
http(s)://smc.aliyuncs.com/?Action=CutOverReplicationJob
&JobId=j-bp1fnx5y3djc4cop****
&SyncData=false
&公共请求参数
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<CutOverReplicationJobResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</CutOverReplicationJobResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
错误码
|
HttpCode |
错误码 |
错误信息 |
描述 |
| 400 | ReplicationJob.InvalidStatus | The specified replication job status: %s is invalid. This operation can only be performed in the following status: %s. | 迁移任务的状态:%s 是无效的。该操作只能在以下状态进行:%s。 |
| 400 | ReplicationJob.InvalidBusinessStatus | The specified business status: %s of the replication job is invalid. This operation can only be performed in the following status: %s. | 迁移任务的业务状态:%s 是无效的。该操作只能在以下业务状态进行:%s。 |
| 400 | SourceServerState.Invalid | The specified source server status: %s is invalid. This operation can only be performed in the following status: %s. | 迁移源的状态:%s 是无效的。该操作只能在以下状态进行:%s。 |
| 500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |
访问错误中心查看更多错误码。