You need to enable JavaScript to run this app.
导航
RemoveServerGroupBackendServers
最近更新时间:2024.07.09 08:39:26首次发布时间:2021.08.31 10:37:27

调用 RemoveServerGroupBackendServers 接口为指定后端服务器组移除后端服务器。

使用说明

调用一次接口最多可移除20台后端服务器。

调试

请求参数

名称
类型
是否必选
示例值
描述
ActionStringRemoveServerGroupBackendServers要执行的操作,取值为RemoveServerGroupBackendServers。
VersionString2020-04-01API版本信息,当前版本为:2020-04-01。

ServerGroupId

String

rsp-bp1o94dp5i6ea****

后端服务器组ID。
您可以调用DescribeServerGroups接口,查询后端服务器组ID。

ServerIds.N

String

ServerIds.1=rs-3cig8e5o0kxs06c6rrsqn****&ServerIds.2=rs-3cig8e7n1ozr46c6rrsfn****

需要删除的后端服务器ID,以 ServerId 标识。
您可以调用DescribeServerGroupAttributes接口,查询后端服务器的ID。

  • 参数 - N:表示后端服务器的序号。取值范围:1 ~ 20。
  • 多个后端服务器ID间使用“&”分隔。

返回参数

名称
类型
示例值
描述
RequestIdString20210811152539010225146063030****请求ID。

请求示例

GET /?Action=RemoveServerGroupBackendServers&Version=2020-04-01&ServerGroupId=rsp-bp1o94dp5i6ea****&ServerIds.1=rs-3cig8e5o0kxs06c6rrsqn**** HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: clb

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20210811152539010225146063030****",
        "Action": "RemoveServerGroupBackendServers",
        "Version": "2020-04-01",
        "Service": "clb",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "20210811152539010225146063030****"
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode
错误码
错误信息
描述

400

MissingParameter

The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'.

该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX

说明

其中,XXX表示缺少的参数名称。

400InvalidIncorrectOrder.MalformedThe specified index order is malformed.指定的索引顺序参数格式不合法。
400InvalidLoadBalancer.InvalidStatusThe specified LoadBalancer is not in the correct status for the request.指定的负载均衡所处状态无法响应该请求。
400LimitExceeded.ServerYou've reached the limit on the number of servers that you can operate.已达到单次可操作的后端服务器的数量上限。
400InvalidServerGroup.ServerMismatchThe specified Server and ServerGroup are not matched.指定的后端服务器在该后端服务器组中不存在。
403ForbiddenYou are not authorized to perform operations on the specified service.无权限对指定服务进行操作。
403InvalidResourceType.ServcieManagedThe specified ResourceType is managed by a service.指定的资源是服务托管资源。
404InvalidServerGroup.NotFoundThe specified ServerGroup does not exist.指定的后端服务器组不存在。
409InvalidServer.ConflictThe specified Server already exists.指定的后端服务器已存在。