从指定的虚拟服务器组中移除后端服务器。
接口说明
如果 BackendServers 中参数的某些后端服务器不存在于这个虚拟服务器组中,会直接忽略,不会报错。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
slb:RemoveVServerGroupBackendServers |
update |
instance
*loadbalancer
|
|
无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
负载均衡实例的地域 ID。 |
cn-hangzhou |
| VServerGroupId |
string |
是 |
虚拟服务器组 ID。 |
rsp-cige6**** |
| BackendServers |
string |
是 |
后端服务器列表,包含以下参数:
说明
只有性能保障型实例支持添加 eni 和 eci 类型的后端服务器。
示例说明如下:
说明
必须是状态为运行中的后端服务器才可以加入负载均衡实例,每次调用最多可添加 20 个后端服务器。 |
[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }] |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| VServerGroupId |
string |
虚拟服务器组 ID。 |
rsp-cige6j**** |
| RequestId |
string |
请求 ID。 |
9DEC9C28-AB05-4DDF-9A78-6B0****** |
| BackendServers |
object |
||
| BackendServer |
array<object> |
后端服务器列表。 |
|
|
object |
后端服务器列表。 |
||
| Type |
string |
后端服务器类型,取值:
|
eni |
| Weight |
integer |
后端服务器的权重。 |
100 |
| Port |
integer |
后端服务器使用的端口。 |
80 |
| ServerId |
string |
后端服务器实例 ID。 |
eni-hhshhs**** |
示例
正常返回示例
JSON格式
{
"VServerGroupId": "rsp-cige6j****",
"RequestId": "9DEC9C28-AB05-4DDF-9A78-6B0******",
"BackendServers": {
"BackendServer": [
{
"Type": "eni",
"Weight": 100,
"Port": 80,
"ServerId": "eni-hhshhs****"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | LbStatusNotSupport | The status of specified loadbalancer does not support.. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。