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

负载均衡

复制全文
下载 pdf
实例
LoadBalancerJoinSecurityGroup - ALB 实例加入安全组
复制全文
下载 pdf
LoadBalancerJoinSecurityGroup - ALB 实例加入安全组
调用 LoadBalancerJoinSecurityGroup 接口,将ALB实例加入安全组。​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:LoadBalancerJoinSecurityGroup​
要执行的操作,取值:LoadBalancerJoinSecurityGroup。​
​
Version string 必选 示例值:2020-04-01​
API的版本,取值:2020-04-01。​
​
SecurityGroupIds.N string[] 必选 示例值:sg-xh1jksdn8***​
要绑定的安全组ID。​
  • 参数 - N:表示安全组ID的序号。​
  • 一个实例最大绑定的自定义安全组个数为4个。​
​
LoadBalancerId string 必选 示例值:alb-bp1b6c719dfa08ex****​
ALB实例ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
RequestId string 示例值:20210811152539010225146063030****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=LoadBalancerJoinSecurityGroup&Version=2020-04-01&SecurityGroupIds.1=sg-xh1jksdn8***&LoadBalancerId=alb-bp1b6c719dfa08ex**** HTTP/1.1​
Host: alb.cn-beijing.volcengineapi.com​
X-Date: 20260312T023301Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260312/cn-beijing/alb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2026031210330818916118713758FFC8",​
"Action": "LoadBalancerJoinSecurityGroup",​
"Version": "2020-04-01",​
"Service": "alb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "20210811152539010225146063030****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
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​
InvalidLoadBalancer.InvalidStatus​
The specified LoadBalancer is not in the correct status for the request.​
指定的 ALB 实例所处状态无法响应该请求。​
400​
InvalidSecurityGroup.NotFound​
The specified SecurityGroup does not exist.​
指定的安全组不存在。​
400​
OperationDenied.SecurityGroupManagedByService​
The request on the specified SecurityGroup is denied due to the SecurityGroup has been managed by service.​
因安全组被服务托管,对于该安全组的操作请求被拒绝。​
400​
LimitExceed.SecurityGroupId​
You've reached the limit on the number of security groups you can associate with the ALB.​
已达到单个 ALB 实例可绑定的安全组数量上限。​
400​
InvalidSecurityGroupId.Duplicated​
The specified SecurityGroupId is duplicated.​
指定的 SecurityGroupId 重复。​
400​
InvalidSecurityGroup.InvalidStatus​
The specified SecurityGroup is not in the correct status for the request.​
指定的安全组所处状态无法响应该请求。​
400​
OperationDenied.AclAndSecurityGroupConflict​
The request on the specified LoadBalancer is denied due to acls and security groups cannot be used at the same time.​
因访问控制和安全组不能同时被使用,对于该 ALB 实例的操作请求被拒绝。​
400​
OperationFailed.QueryVpc​
The request on the specified resource failed due to the query on VPC failed.​
因请求 VPC 失败,对于该资源的操作请求失败。​
404​
InvalidLoadBalancer.NotFound​
The specified LoadBalancer does not exist.​
指定的 ALB 实例不存在。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。请稍后重试或联系工程师进一步咨询。​
​
​
最近更新时间:2026.03.17 16:00:22
这个页面对您有帮助吗?
有用
有用
无用
无用