調用RemoveBackendServers移除後端伺服器。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ens:RemoveBackendServers |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| LoadBalancerId |
string |
是 |
Server Load Balancer執行個體的 ID。 |
lb-5ovkn1piwqmoqrfjdyhq4**** |
| BackendServers |
array<object> |
是 |
添加的後端伺服器列表,每次調用最多可刪除 20 個後端伺服器。 |
|
|
object |
否 |
添加的後端伺服器列表,每次調用最多可刪除 20 個後端伺服器。 |
||
| ServerId |
string |
是 |
後端伺服器的執行個體 ID。 |
i-5uf68ts0fqexe1a4n**** |
| Weight |
integer |
否 |
後端伺服器的權重。 |
100 |
| Type |
string |
否 |
後端伺服器類型。取值:
|
ens |
| Ip |
string |
否 |
後端伺服器 IP 位址。 |
192.168.0.1 |
| Port |
integer |
否 |
Server Load Balancer執行個體後端使用的連接埠。 |
0 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| BackendServers |
object |
||
| BackendServer |
array<object> |
添加的後端伺服器列表。 |
|
|
object |
添加的後端伺服器列表。 |
||
| ServerId |
string |
後端伺服器的執行個體 ID。 |
i-5vb5h5njxiuhn48a**** |
| Weight |
integer |
後端伺服器的權重。 說明
取值為 0,表示不會將請求轉寄給該後端伺服器。 |
50 |
| Type |
string |
後端伺服器類型。取值:
|
ens |
| Ip |
string |
後端伺服器 IP 位址。 |
192.168.0.1 |
| Port |
integer |
Server Load Balancer執行個體後端使用的連接埠。 |
0 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"BackendServers": {
"BackendServer": [
{
"ServerId": "i-5vb5h5njxiuhn48a****",
"Weight": 50,
"Type": "ens",
"Ip": "192.168.0.1",
"Port": 0
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | LoadBalancerNotFound | The input parameter LoadBalancerId that is not found. | Server Load Balancer執行個體不存在 |
| 400 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | 當前操作不被支援,磁碟正在重設中。 |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。