調用DeleteSourceServer刪除一個遷移源。
介面說明
介面說明
遷移源若關聯了 Running(運行中)狀態的遷移任務,則無法刪除。
遷移源若關聯了除 Running 狀態外的其他狀態的遷移任務,則需設定
Force=true刪除。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
smc:DeleteSourceServer |
delete |
*SourceServer
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SourceId |
string |
是 |
遷移源 ID。 |
s-bp17m1vi6x20c6g6**** |
| Force |
boolean |
否 |
是否強制移除遷移源。
|
true |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
樣本
正常返回樣本
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | SourceServer.WithRunningReplicationJob | The specified source server has related replication jobs that are running. | 遷移源關聯正在啟動並執行遷移任務。 |
| 400 | SourceServerState.Invalid | The specified source server status: %s is invalid. This operation can only be performed in the following status: %s. | 遷移源的狀態:%s 是無效的。該操作只能在以下狀態進行:%s。 |
| 400 | ReplicationJob.Related | The specified source server has related replication jobs. Please delete replication jobs: %s before delete this source server. | 遷移源有相關的遷移任務。請刪除遷移任務:%s 後再刪除該遷移源。 |
| 500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | 內部錯誤,請重試。如果多次嘗試失敗,請提交工單。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。