调用DeleteSourceServer删除一个迁移源。
接口说明
- 迁移源若关联了Running(运行中)状态的迁移任务,则无法删除。
- 迁移源若关联了除Running状态外的其他状态的迁移任务,则需设置
Force=true
删除。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteSourceServer |
系统规定参数。取值:DeleteSourceServer。 |
SourceId | String | 是 | s-bp17m1vi6x20c6g6**** |
迁移源ID。 |
Force | Boolean | 否 | true |
是否强制删除迁移源。
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
请求ID。 |
示例
请求示例
http(s)://smc.aliyuncs.com/?Action=DeleteSourceServer
&SourceId=s-bp17m1vi6x20c6g6****
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteSourceServerResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</DeleteSourceServerResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | SourceServerState.Invalid | The specified source server status is invalid. | 无效的迁移源状态。 |
400 | SourceServer.WithRunningReplicationJob | The specified source server has related replication jobs that are running. | 迁移源关联正在运行的迁移任务。 |
400 | ReplicationJob.Related | The specified source server has related replication jobs. | 存在关联的迁移任务。 |
500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | 内部错误,请重试。如果多次尝试失败,请提交工单。 |
访问错误中心查看更多错误码。