从服务器组中移除后端服务器。
接口说明
RemoveServersFromServerGroup 接口属于异步接口,即系统返回一个请求 ID,但该后端服务器尚未移除成功,系统后台的移除任务仍在进行。
-
您可以调用 ListServerGroups 查询服务器组的状态:
当服务器组处于 Configuring 状态时,表示服务器组正在变配中。
当服务器组处于 Available 状态时,表示服务器组运行中。
-
您可以调用 ListServerGroupServers 查询后端服务器的状态:
当后端服务器处于 Removing 状态时,表示后端服务器正在从服务器组中移除。
当查询不到该后端服务器时,表示后端服务器移除成功。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
alb:RemoveServersFromServerGroup |
update |
*ServerGroup
Instance
NetworkInterface
ContainerGroup
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ServerGroupId |
string |
是 |
服务器组 ID。 |
sgp-atstuj3rtop**** |
| Servers |
array<object> |
是 |
后端服务器组列表,最多支持 200 个服务器。 |
|
|
object |
否 |
后端服务器组配置信息。 |
||
| Port |
integer |
否 |
后端服务器使用的端口。取值范围:1~65535。 说明
当 ServerType 取值为 Ecs、Eni、Eci、Ip 时,该参数必传。 |
80 |
| ServerId |
string |
是 |
后端服务器 ID。
说明
您可以通过调用 ListServerGroups 接口获取服务器组类型的取值。 |
i-bp1f9kdprbgy9uiu**** |
| ServerIp |
string |
否 |
ENI 多 IP 模式时指定的 IP 地址。 |
192.168.1.1 |
| ServerType |
string |
是 |
后端服务器类型。取值:
|
Ecs |
| ClientToken |
string |
否 |
客户端 Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符。 说明
若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 不一样。 |
593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3 |
| DryRun |
boolean |
否 |
是否只预检此次请求,取值:
|
false |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回数据结构体 |
||
| JobId |
string |
异步任务 ID。 |
72dcd26b-f12d-4c27-b3af-18f6aed5**** |
| RequestId |
string |
请求 ID。 |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
示例
正常返回示例
JSON格式
{
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5****",
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IncorrectStatus.ServerGroup | The status of %s [%s] is incorrect. | 服务器组状态无效。 |
| 400 | ResourceInConfiguring.BackendServer | The specified resource of %s is being configured, please try again later. | 指定的资源%s正在配置中,请稍后再试 |
| 400 | ResourceInConfiguring | The specified resource of %s is being configured. Please try again later. | 指定的资源在变更中,请稍后再试 |
| 403 | Forbidden.ServerGroup | Authentication is failed for ServerGroup. | 当前服务器组权限校验失败。 |
| 404 | ResourceNotFound.ServerGroup | The specified resource %s is not found. | 后端服务器组不存在。 |
| 404 | ResourceNotFound.BackendServer | The specified resource %s is not found. | 服务器组不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。