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

负载均衡

复制全文
下载 pdf
NLB实例
ModifyNetworkLoadBalancerAttributes - 修改NLB实例
复制全文
下载 pdf
ModifyNetworkLoadBalancerAttributes - 修改NLB实例
调用 ModifyNetworkLoadBalancerAttributes 接口,修改NLB实例的名称、描述、跨可用区转发、IP版本等信息。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下表中非必选参数不传入则表示保持原有配置不变。​
Action String 必选 示例值:ModifyNetworkLoadBalancerAttributes​
要执行的操作,取值为 ModifyNetworkLoadBalancerAttributes。​
​
Version String 必选 示例值:2020-04-01​
API版本信息,当前版本为 2020-04-01。​
​
LoadBalancerId String 必选 示例值:nlb-bp1b6c719dfa08ex****​
NLB实例ID。​
您可以调用DescribeNetworkLoadBalancers接口,获取NLB实例ID。​
​
LoadBalancerName String 可选 示例值:nlb-test1​
NLB实例的名称。​
  • 必须以字母、数字或中文开头,可包含以下特殊字符:点号(.)、下划线(_)和中划线(-)。​
  • 长度限制为1 ~ 128个字符。​
​
Description String 可选 示例值:test​
NLB实例的描述。​
  • 必须以字母、数字或中文开头,可包含以下特殊字符:英文逗号(,)、点号(.)、下划线(_)、空格( )、等号(=)、中划线(-)、中文逗号(,)、中文句号(。)​
  • 长度限制为0 ~ 255个字符。​
​
CrossZoneEnabled Boolean 可选 示例值:true​
NLB实例是否开启跨可用区转发。​
请严格按照以下枚举值的大小写输入,不要传入其他取值。​
  • true:开启。​
  • false:关闭。​
​
IpAddressVersion String 可选 示例值:ipv4​
IP 地址版本。​
  • ipv4:仅IPv4。​
  • dualstack:双栈,同时支持IPv4和IPv6。​
说明​
若IPv4的NLB实例内存在TLS监听器,那么不支持修改成双栈。​
​
ModificationProtectionStatus String 可选 示例值:NonProtection​
NLB 实例在控制台上修改保护的状态。​
  • NonProtection:关闭,允许通过控制台修改或删除实例。​
  • ConsoleProtection:开启,禁止通过控制台修改或删除实例。​
​
DNSAffinity Boolean 可选 示例值:true​
是否开启 DNS 可用区亲和性。​
  • true:私网客户端优先解析至同可用区(AZ)的 NLB 节点 IP,流量不跨 AZ;当同 AZ 节点故障时,自动返回所有非故障 AZ 的 IP。​
  • false:DNS 返回实例全部 AZ 的节点 IP,由客户端随机或轮询选择,可能产生跨 AZ 访问。​
说明​
仅私网解析,公网DNS不受影响。​
​
​
​
返回参数​
RequestId String 示例值:202409291106382514606306AF947C****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyNetworkLoadBalancerAttributes&Version=2020-04-01&LoadBalancerId=nlb-bp1b6c719dfa08ex****&LoadBalancerName=nlb-test1&Description=test&CrossZoneEnabled=true&IpAddressVersion=ipv4&ModificationProtectionStatus=NonProtection 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": "ModifyNetworkLoadBalancerAttributes",​
"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​
InvalidCrossZoneEnabled.Malformed​
The specified CrossZoneEnabled is malformed.​
指定的 CrossZoneEnabled 参数格式不合法。​
400​
InvalidDescription.Malformed​
The specified Description is malformed.​
指定的 Description 参数格式不合法。​
400​
InvalidIpAddressVersion.Malformed​
The specified IpAddressVersion is malformed.​
指定的 IpAddressVersion 参数格式不合法。​
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​
InvalidLoadBalancerIPAddressVersion.UnSupportAction​
The specified IPAddressVersion of LoadBalancer does not support this action.​
指定的实例因 IP 地址类型不支持当前操作。​
400​
InvalidLoadBalancerName.Malformed​
The specified LoadBalancerName is malformed.​
指定的 LoadBalancerName 参数格式不合法。​
400​
InvalidModificationProtectionStatus.Malformed​
The specified ModificationProtectionStatus is malformed.​
指定的 ModificationProtectionStatus 参数格式不合法。​
400​
InvalidSubnetIPv6Cidr.NotSupport​
The specified subnet does not support ipv6 cidr.​
指定子网不支持IPv6网段。​
400​
InvalidSubnetIPv6CidrISP.Mismatch​
The ipv6 cidr isp of the subnets is not same.​
多个子网 IPv6 网段的线路类型不一致。​
403​
Forbidden​
You are not authorized to perform operations on the specified service.​
无权限对指定服务进行操作。​
403​
InvalidResourceType.ServiceManaged​
The specified ResourceType is managed by a service.​
指定的资源是服务托管资源。​
404​
InvalidLoadBalancer.NotFound​
The specified LoadBalancer does not exist.​
指定的负载均衡不存在。​
404​
InvalidSharedVPC.UnSupportAction​
The specified shared VPC does not support this action.​
指定的共享 VPC 不支持当前操作。​
404​
InvalidSubnet.NotFound​
The specified Subnet does not exist.​
指定的子网不存在。​
404​
InvalidVPC.NotFound​
The specified VPC does not exist.​
指定的 VPC 不存在。​
404​
ServiceRoleForLoadBalancer.NotFound​
ServiceRoleForLoadBalancer does not exist.​
负载均衡服务关联角色不存在。​
409​
InvalidOperation.Conflict​
The specified resource operation conflicts.​
指定的资源操作冲突。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
​
​
最近更新时间:2026.09.18 11:20:51
这个页面对您有帮助吗?
有用
有用
无用
无用