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

负载均衡

复制全文
下载 pdf
NLB实例
ModifyNetworkLoadBalancerSecurityGroups - 修改NLB实例关联的安全组
复制全文
下载 pdf
ModifyNetworkLoadBalancerSecurityGroups - 修改NLB实例关联的安全组
调用 ModifyNetworkLoadBalancerSecurityGroups 接口,修改NLB实例关联的安全组。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:ModifyNetworkLoadBalancerSecurityGroups​
要执行的操作,取值为 ModifyNetworkLoadBalancerSecurityGroups。​
​
Version String 必选 示例值:2020-04-01​
API版本信息,当前版本为 2020-04-01。​
​
LoadBalancerId String 必选 示例值:nlb-bp1b6c719dfa08ex****​
NLB实例ID。​
您可以调用DescribeNetworkLoadBalancers接口,获取NLB实例ID。​
​
SecurityGroupIds.N String 必选 示例值:sg-2fek3rgsxhrsw5oxr****​
NLB 实例关联的安全组。​
  • N:表示安全组的序号,取值范围 1~4。​
  • 多个安全组ID间使用&分隔。​
​
​
​
返回参数​
RequestId String 示例值:202409291106382514606306AF947C****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyNetworkLoadBalancerSecurityGroups&Version=2020-04-01&LoadBalancerId=nlb-bp1b6c719dfa08ex****&SecurityGroupIds.1=sg-2fek3rgsxhrsw5oxr**** HTTP/1.1​
Host: clb.cn-beijing.volcengineapi.com​
Date: 20260310T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/clb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "ModifyNetworkLoadBalancerSecurityGroups",​
"Version": "2020-04-01",​
"Service": "clb",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "202409291106382514606306AF947C****"​
}​
}​
​
错误码​
此处仅展示当前API的错误码,更多错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
IdempotentParameterMismatch​
Arguments on this idempotent request are inconsistent with arguments used in previous request(s).​
此幂等请求的参数与前一个请求中使用的参数不一致。​
400​
InvalidClientToken.Malformed​
The specified ClientToken is malformed.​
指定的 ClientToken 参数格式不合法。​
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​
InvalidLoadBalancerBillingStatus.InvalidStatus​
The specified LoadBalancer is not in the correct billing status for the request.​
指定的负载均衡计费状态所处状态无法响应该请求。​
400​
InvalidSecurityGroup.InvalidStatus​
The specified SecurityGroup is not in the correct status for the request.​
指定的安全组所处状态无法响应该请求。​
400​
QuotaExceeded.EniSecurityGroup​
You've reached the limit on the number of elastic network interfaces that a security group can associate.​
已达到安全组可关联的弹性网卡数量上限。​
403​
InvalidResourceType.ServiceManaged​
The specified ResourceType is managed by a service.​
指定的资源是服务托管资源。​
403​
InvalidSecurityGroup.ServiceManaged​
The specified SecurityGroup is managed by a service.​
指定的安全组是服务托管资源。​
404​
InvalidLoadBalancer.NotFound​
The specified LoadBalancer does not exist.​
指定的负载均衡不存在。​
404​
InvalidSecurityGroup.NotFound​
The specified SecurityGroup does not exist.​
指定的安全组不存在。​
404​
ServiceRoleForLoadBalancer.NotFound​
ServiceRoleForLoadBalancer does not exist.​
负载均衡服务关联角色不存在。​
409​
InvalidOperation.Conflict​
The specified resource operation conflicts.​
指定的资源操作冲突。​
409​
InvalidSecurityGroup.Conflict​
The specified SecurityGroup already exists.​
指定的安全组已存在。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
​
​
最近更新时间:2026.03.11 14:59:11
这个页面对您有帮助吗?
有用
有用
无用
无用