調用ModifySourceServerAttribute修改一個遷移源的名稱和描述。
介面說明
介面說明
使用該 API 修改遷移源的名稱和描述時,對遷移源的狀態沒有要求。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
smc:ModifySourceServerAttribute |
update |
*SourceServer
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SourceId |
string |
是 |
遷移源 ID。 |
s-bp17m1vi6x20c6g6**** |
| Name |
string |
否 |
遷移源名稱。長度為 2~128 個英文或中文字元。必須以大小寫字母或中文開頭,不能以 |
testSourceServerName |
| Description |
string |
否 |
遷移源描述。長度為 0~256 個字元,不能以 |
This is a source server. |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
樣本
正常返回樣本
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | SourceServerName.Duplicate | The specified source server name already exists. Please modify the source server name. | 遷移源名稱已存在,請修改遷移源名稱。 |
| 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. | 內部錯誤,請重試。如果多次嘗試失敗,請提交工單。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。