调用StopReplicationJob停止一个迁移任务。
接口说明
接口说明
您只能使用该 API 停止正在运行中(Running)且处于同步中(Syncing)状态的迁移任务。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
        
            调试
        
    
授权信息
| 
                                 操作  | 
                            
                                 访问级别  | 
                            
                                 资源类型  | 
                            
                                 条件关键字  | 
                            
                                 关联操作  | 
                        
| 
                                 smc:StopReplicationJob  | 
                            
                                 update  | 
                            
                                     *ReplicationJob 
  | 
                            无 | 无 | 
请求参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             必填  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| JobId | 
                             string  | 
                        
                             是  | 
                        
                             迁移任务 ID。  | 
                        
                             j-bw526m1vi6x21qh****  | 
                    
返回参数
| 
                             名称  | 
                        
                             类型  | 
                        
                             描述  | 
                        
                             示例值  | 
                    
| 
                             object  | 
                        |||
| RequestId | 
                             string  | 
                        
                             请求 ID。  | 
                        
                             473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E  | 
                    
示例
正常返回示例
JSON格式
{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
            错误码
| 
                                 HTTP status code  | 
            				
                                 错误码  | 
            				
                                 错误信息  | 
            				
                                 描述  | 
            			
|---|---|---|---|
| 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。 | 
| 500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | 内部错误,请重试。如果多次尝试失败,请提交工单。 | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?