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

负载均衡

复制全文
下载 pdf
NLB实例
ModifyNetworkLoadBalancerNetworkType - 修改NLB实例的网络类型
复制全文
下载 pdf
ModifyNetworkLoadBalancerNetworkType - 修改NLB实例的网络类型
调用 ModifyNetworkLoadBalancerNetworkType 接口,修改NLB实例的网络类型。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下表中非必选参数不传入则表示保持原有配置不变。​
Action String 必选 示例值:ModifyNetworkLoadBalancerNetworkType​
要执行的操作,取值为 ModifyNetworkLoadBalancerNetworkType。​
​
Version String 必选 示例值:2020-04-01​
API版本信息,当前版本为 2020-04-01。​
​
LoadBalancerId String 必选 示例值:nlb-bp1b6c719dfa08ex****​
NLB实例ID。​
您可以调用DescribeNetworkLoadBalancers接口获取NLB实例ID。​
​
Protocol String 必选 示例值:ipv4​
NLB实例IP地址的协议类型。​
  • ipv4​
  • ipv6​
​
NetworkType String 必选 示例值:internet​
NLB实例修改后的网络类型。​
  • internet:公网类型​
  • intranet:私网类型​
​
ZoneMappings.N.ZoneId String 可选 示例值:cn-beijing-a​
待关联公网IP所属可用区的 ID。​
说明​
  • 参数NetworkType 为“intranet”时,不允许传入本参数。​
  • 参数ZoneMappings.N.ZoneId 和ZoneMappings.N.EipId必须同时传入或同时不传。​
​
ZoneMappings.N.EipId String 可选 示例值:eip-bp12mw1f8k3jgy****​
待关联公网IP的ID。每个可用区对应一个公网IP。​
说明​
  • 参数NetworkType 为“intranet”时,不允许传入本参数。​
  • 参数ZoneMappings.N.ZoneId 和ZoneMappings.N.EipId必须同时传入或同时不传。​
  • 参数NetworkType 为“internet”时,​
  • 传入已有公网IP。​
  • 不传表示新申请公网IP。​
​
​
​
返回参数​
RequestId String 示例值:202409291106382514606306AF947C****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=ModifyNetworkLoadBalancerNetworkType&Version=2020-04-01&LoadBalancerId=nlb-bp1b6c719dfa08ex****&Protocol=ipv4&NetworkType=internet&ZoneMappings.1.ZoneId=cn-beijing-a&ZoneMappings.1.EipId=eip-bp12mw1f8k3jgy**** 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": "ModifyNetworkLoadBalancerNetworkType",​
"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​
InvalidBandwidthPackage.InvalidBusinessStatus​
The specified bandwidth package is not in the correct business status for the request.​
指定的共享带宽包所处计费状态无法响应该请求。​
400​
InvalidClientToken.Malformed​
The specified ClientToken is malformed.​
指定的 ClientToken 参数格式不合法。​
400​
InvalidEip.InvalidBusinessStatus​
The specified Eip is not in the correct business status for the request.​
指定的 Eip 所处计费状态无法响应该请求。​
400​
InvalidEip.InvalidStatus​
The specified Eip is not in the correct status for the request.​
指定的 Eip 所处状态无法响应该请求。​
400​
InvalidEipBillingType.NotSupport​
The specified billing type of Eip dose not support this action.​
指定的 Eip 计费类型不支持当前操作。​
400​
InvalidEipISP.NotSupport​
The specified isp of Eip dose not support this action.​
指定的 Eip 线路类型不支持当前操作。​
400​
InvalidEipSecurityProtectionTypes.NotSupport​
The specified security types protection of Eip dose not support this action.​
指定的 Eip 安全防护类型不支持当前操作。​
400​
InvalidEipSpecificEgress.NotSupport​
The specified specific egress of Eip dose not support this action.​
指定的 Eip 公网出口不支持当前操作。​
400​
InvalidISP.Mismatch​
The isp of the bandwidth package does not match with the Eip.​
共享带宽包与 Eip 的线路类型不一致。​
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​
InvalidNetworkType.Malformed​
The specified NetworkType is malformed.​
指定的 NetworkType 参数格式不合法。​
400​
InvalidNetworkType.UnSupportAction​
The specified NetworkType does not support this action in this region.​
指定的网络类型在当前地域不支持当前操作。​
400​
InvalidOperation.Malformed​
The specified Operation is malformed.​
指定的 Operation 参数格式不合法。​
400​
InvalidProtocol.Malformed​
The specified Protocol is malformed.​
指定的 Protocol 参数格式不合法。​
400​
InvalidProtocol.Mismatch​
The protocol of the bandwidth package does not match with the Eip.​
共享带宽包与 Eip 的协议类型不匹配。​
400​
InvalidSecurityProtectionTypes.Mismatch​
The specified security protection types of the bandwidth package does not match with the Eip.​
共享带宽包与 Eip 的安全防护类型不一致。​
400​
InvalidSpecificEgress.Mismatch​
The specific egress of the bandwidth package does not match with the Eip.​
共享带宽包与 Eip 的指定出口不匹配。​
400​
InvalidZoneMappings.EipId.Malformed​
The specified ZoneMappings.EipId is malformed.​
指定的 ZoneMappings.EipId 参数格式不合法。​
400​
InvalidZoneMappings.EipIsp.Malformed​
The specified ZoneMappings.EipIsp is malformed.​
指定的 ZoneMappings.EipIsp 参数格式不合法。​
400​
InvalidZoneMappings.EipSpecificEgress.Malformed​
The specified ZoneMappings.EipSpecificEgress is malformed.​
指定的 ZoneMappings.EipSpecificEgress 参数格式不合法。​
400​
InvalidZoneMappings.Malformed​
The specified ZoneMappings is malformed.​
指定的 ZoneMappings 参数格式不合法。​
400​
InvalidZoneMappings.ZoneId.Malformed​
The specified ZoneMappings.ZoneId is malformed.​
指定的 ZoneMappings.ZoneId 参数格式不合法。​
400​
UnsupportedOperation​
The request on the specified instance is denied due to lack of Eip allocated.​
因 Eip 分配的数量不足,对于该实例的操作请求被拒绝。​
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​
InvalidBandwidthPackage.NotFound​
The specified bandwidth package does not exist.​
指定的共享带宽包不存在。​
404​
InvalidEip.NotFound​
The specified Eip does not exist.​
指定的 Eip 不存在。​
404​
InvalidLoadBalancer.NotFound​
The specified LoadBalancer does not exist.​
指定的负载均衡不存在。​
404​
ServiceRoleForLoadBalancer.NotFound​
ServiceRoleForLoadBalancer does not exist.​
负载均衡服务关联角色不存在。​
409​
InvalidEip.Conflict​
The specified Eip conflicts with that of another Eip in your bandwidth package.​
指定的 Eip 已经在共享带宽包里。​
409​
InvalidEipServiceManage.Conflict​
The specified Eip already another service manage.​
指定的 Eip 已经被托管。​
412​
IdempotentProcessing​
The request uses the same client token as a previous one that is still in process.​
幂等请求处理中。​
​
​
最近更新时间:2026.03.11 14:59:13
这个页面对您有帮助吗?
有用
有用
无用
无用