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

负载均衡

复制全文
下载 pdf
后端服务器组
ModifyServerGroupAttributes - 修改服务器组属性
复制全文
下载 pdf
ModifyServerGroupAttributes - 修改服务器组属性
调用 ModifyServerGroupAttributes 接口,修改指定后端服务器组,包括服务器组的名称、描述、以及指定服务器的相关信息。​
使用说明​
调用本接口时,若可选参数未进行配置,则该可选参数的配置保持原状。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:ModifyServerGroupAttributes​
要执行的操作,取值:ModifyServerGroupAttributes。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
ServerGroupId String 必选 示例值:rsp-bp1o94dp5i6ea****​
后端服务器组ID。​
您可以调用DescribeServerGroups接口,查询后端服务器组ID。​
​
ServerGroupName String 可选 示例值:myservergroup​
后端服务器组的名称。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:点号(.)、下划线(_)和中划线(-)。​
  • 长度限制为1 ~ 128个字符。​
​
Description String 可选 示例值:This is a servergroup.​
后端服务器组的描述。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文及以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为0 ~ 255个字符。​
​
Servers.N.ServerId String 必选 示例值:rs-mjc9b2p0v6rk5smt1b27****​
后端服务器ID。​
您可以调用DescribeServerGroupAttributes接口,查询后端服务器的ID。​
  • 参数 - N:表示后端服务器的序号。取值范围为1 ~ 20。​
  • 多个后端服务器ID间使用“&”分隔。​
​
Servers.N.Weight Integer 可选 示例值:100​
后端服务器的权重,取值范围为0 ~ 100。​
  • 如果权重设置为0,表示不会将请求转发给该后端服务器。​
  • 参数 - N:表示后端服务器的序号。取值范围为1 ~ 20。​
​
Servers.N.Port Integer 可选 示例值:88​
后端服务器接收请求的端口号,取值范围为1~65535 。​
参数 - N:表示后端服务器的序号。取值范围为1 ~ 20。​
​
Servers.N.Description String 可选 示例值:ecs1​
后端服务器的描述。​
  • 参数 - N:表示后端服务器的序号。取值范围为1 ~ 20。​
  • 必须以字母、数字或中文开头,可包含字母、数字、中文和以下特殊字符:或中文开头,可包含数字、英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)。​
  • 长度限制为0 ~ 255个字符。​
​
​
​
返回参数​
RequestId String 示例值:20210811152539010225146063030****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyServerGroupAttributes&Version=2020-04-01&ServerGroupId=rsp-bp1o94dp5i6ea****&ServerGroupName=myservergroup&Description=This is a servergroup.&Servers.1.ServerId=rs-mjc9b2p0v6rk5smt1b27****&Servers.1.Weight=100&Servers.1.Port=88&Servers.1.Description=ecs1​
Host: clb.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/clb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "ModifyServerGroupAttributes",​
"Version": "2020-04-01",​
"Service": "clb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "20210811152539010225146063030****"​
}​
}​
​
错误码​
此处仅展示当前API的错误码,更多错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidDescription.Malformed​
The specified Description is malformed.​
指定的 Description 参数格式不合法。​
400​
InvalidIncorrectOrder.Malformed​
The specified index order is malformed.​
指定的索引顺序参数格式不合法。​
400​
InvalidLoadBalancer.InvalidStatus​
The specified LoadBalancer is not in the correct status for the request.​
指定的负载均衡所处状态无法响应该请求。​
400​
InvalidPort.Malformed​
The specified Port is malformed.​
指定的 Port 参数格式不合法。​
400​
InvalidServerGroupName.Malformed​
The specified ServerGroupName is malformed.​
指定的 ServerGroupName 参数格式不合法。​
400​
InvalidServers.Description.Malformed​
The specified Servers.Description is malformed.​
指定的 Servers.Description 参数格式不合法。​
400​
InvalidServers.Port.Malformed​
The specified Servers.Port is malformed.​
指定的 Servers.Port 参数格式不合法。​
400​
InvalidServers.Weight.Malformed​
The specified Servers.Weight is malformed.​
指定的 Servers.Weight 参数格式不合法。​
400​
LimitExceeded.ServerNumber​
You've reached the limit on the number of add servers that you can operate​
已达到单次可操作的后端服务器的数量上限。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'ServerGroupId'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如 ServerGroupId。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the ''.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如 。​
400​
UnsupportedOperation.AccountArrears​
The request on the specified instance is denied due to the account in arrears status.​
因账户处于欠费状态,对于该实例的操作请求被拒绝。​
403​
Forbidden​
You are not authorized to perform operations on the specified service.​
无权限对指定服务进行操作。​
403​
InvalidResourceType.ServcieManaged​
The specified ResourceType is managed by a service.​
指定的资源是服务托管资源。​
404​
InvalidExclusiveCluster.NotFound​
The specified ExclusiveCluster does not exist.​
指定的独占集群不存在。​
404​
InvalidLoadBalancer.NotFound​
The specified LoadBalancer does not exist.​
指定的负载均衡不存在。​
404​
InvalidServer.NotFound​
The specified Server does not exist.​
指定的后端服务器不存在。​
404​
InvalidServerGroup.NotFound​
The specified ServerGroup does not exist.​
指定的后端服务器组不存在。​
409​
InvalidServer.Conflict​
The specified Server already exists.​
指定的后端服务器已存在。​
409​
InvalidServerPort.Conflict​
The specified Server Port already exists.​
指定的后端服务器端口已存在。​
412​
InvalidExclusiveCluster.Expired​
The specified ExclusiveCluster has expired.​
指定的独占集群已过期。​
412​
InvalidExclusiveCluster.UnPurchased​
The specified ExclusiveCluster is not purchased.​
指定的独占集群未购买。​
412​
InvalidLoadBalancer.Expired​
The specified LoadBalancer has expired.​
指定的负载均衡已过期。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.02.13 10:32:59
这个页面对您有帮助吗?
有用
有用
无用
无用