You need to enable JavaScript to run this app.
文档中心
负载均衡

负载均衡

复制全文
下载 pdf
服务器组
ModifyServerGroupBackendServers - 修改指定服务器组内的后端服务器
复制全文
下载 pdf
ModifyServerGroupBackendServers - 修改指定服务器组内的后端服务器
调用 ModifyServerGroupBackendServers 接口,修改指定服务器组内的后端服务器。​
使用说明​
每秒最多提交 5 个 API 请求。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:ModifyServerGroupBackendServers​
要执行的操作,取值:ModifyServerGroupBackendServers。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
Servers.N.Weight integer[] 必选 示例值:Servers.1.Weight=100&Servers.2.Weight=100​
后端服务器的权重,取值范围:0 ~ 100。​
  • 如果权重设置为0,表示不会将请求转发给该后端服务器。​
  • 参数- N:表示后端服务器的序号。取值范围为1 ~ 20。​
​
Servers.N.Port integer[] 必选 示例值:Servers.1.Port=88&Servers.2.Port=443​
后端服务器接收请求的端口号。​
  • 取值范围:1-65535。​
  • 参数- N:表示后端服务器的序号。取值范围为1 ~ 20。​
​
Servers.N.Description string[] 可选 示例值:Servers.1.Description=ecs1&Servers.2.Description=ecs2​
后端服务器描述。​
  • 参数- N:表示后端服务器的序号。取值范围为1 ~ 20。​
  • 必须以字母或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、短横线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为1 ~ 255个字符。​
​
Servers.N.Type string[] 可选 示例值:Servers.1.Type=ecs&&Servers.2.Type=eni​
后端服务器类型。​
  • 取值:ecs、eni、ip​
  • 参数- N:表示后端服务器的序号。​
​
Servers.N.Ip string[] 可选 示例值:Servers.1.Ip=10.10.10.10&&Servers.2.Ip=10.10.10.11​
指定 IP 地址。​
  • 参数- N:表示指定IP的序号。​
​
Servers.N.InstanceId string[] 可选 示例值:Servers.1.InstanceId=i-ydk3icc9ogobz******&&Servers.2.InstanceId=i-jl4kd9b0ws******​
后端实例 ID。​
  • 参数- N:表示后端服务器的序号。​
  • 当 ServerType 取值为 ecs、eni时,该参数为 Ecs、Eni 的资源 ID。​
  • 当 ServerType 取值为 ip 时,该参数为 IP 地址。​
​
ServerGroupId string 必选 示例值:rsp-bp1o94dp5i6ea********​
后端服务器组ID。​
​
Servers.N.ServerId string[] 可选 示例值:Servers.1.ServerId=rs-3tm2xa50h63vj0x0********&Servers.2.ServerId=rs-l8u2az8md58lltkk********​
后端服务器ID。​
  • 参数- N:表示后端服务器的序号。取值范围为1 ~ 20。​
  • 多个后端服务器ID间使用“&”分隔。​
  • 若通过InstanceId等参数指定后端实例时此参数可不传。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:20210811152539010225146063030****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyServerGroupBackendServers&ServerGroupId=rsp-1g1f1g8rwii****uxxxn4h9n&Servers.1.ServerId=rs-3tm2xa50h63vj0x0****&Servers.1.Port=12&Servers.1.Weight=2&Version=2020-04-01 HTTP/1.1​
Host: alb.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/alb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20210816110638****2514606306AF947C",​
"Action": "ModifyServerGroupBackendServers",​
"Version": "2020-04-01",​
"Service": "alb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "202108161106****22514606306AF947C"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
Invalid%s.Malformed​
MismatchThe specified %s is malformed.​
指定的 %s 参数格式不合法。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, '%s'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如: %s。​
400​
InvalidParameter​
Data unmarshal failed.​
请求解析失败。​
400​
OperationDenied.AccountArrears​
The request on the specified resource is denied due to the account being in arrears status.​
因账号处于欠费状态,对于该资源的操作请求被拒绝。​
400​
LimitExceed.BackendServer​
You've reached the limit on the number of backend servers that you can operate at a time.​
已达到单次可操作的后端服务器的数量上限。​
400​
InvalidIndexOrder.Malformed​
The specified index order is malformed.​
指定的索引顺序参数格式不合法。​
400​
InvalidServers.Weight.Malformed​
The specified Servers.Weight is malformed.​
指定的 Servers.Weight 参数格式不合法。​
400​
InvalidServers.Port.Malformed​
The specified Servers.Port is malformed.​
指定的 Servers.Port 参数格式不合法。​
400​
InvalidServers.Description.Malformed​
The specified Servers.Description is malformed.​
指定的 Servers.Description 参数格式不合法。​
400​
InvalidServers.ServerId.Duplicated​
The specified Servers.ServerId is duplicated.​
指定的 Servers.ServerId 重复。​
400​
InvalidServers.Port.Duplicated​
The specified Servers.Port is duplicated.​
指定的服务器端口重复。​
400​
InvalidLoadBalancer.InvalidStatus​
The related LoadBalancer is not in the correct status for the request.​
关联的 ALB 实例所处状态无法响应该请求。​
400​
InvalidServerGroup.InvalidStatus​
The specified ServerGroup is not in the correct status for the request.​
指定的服务器组所处状态无法响应该请求。​
404​
InvalidServerGroup.NotFound​
The specified ServerGroup does not exist.​
指定的服务器组不存在。​
404​
InvalidBackendServer.NotFound​
The specified BackendServer does not exist.​
指定的后端服务器不存在。​
409​
InvalidServers.Port.Conflict​
The specified Servers.Port already exists.​
指定的服务器端口已存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。请稍后重试或联系工程师进一步咨询。​
​
​
最近更新时间:2026.07.06 20:39:17
这个页面对您有帮助吗?
有用
有用
无用
无用