You need to enable JavaScript to run this app.
文档中心
复制全文
下载 pdf
共享带宽包
AddBandwidthPackageIp - 添加公网IP到共享带宽包
复制全文
下载 pdf
AddBandwidthPackageIp - 添加公网IP到共享带宽包
调用 AddBandwidthPackageIp 接口,为共享带宽包添加公网IP或IPv6公网带宽。​
使用说明​
共享带宽包添加公网IP或IPv6公网带宽,必须同时满足如下条件:​
  • 二者线路类型相同。​
  • 二者安全防护类型相同。​
  • 二者地域相同。​
  • 公网IP或IPv6公网带宽为按量计费。​
公网IP或IPv6公网带宽加入共享带宽包后,原带宽上限无效,共用共享带宽包的带宽。计费变化请参见 公网IP/IPv6公网带宽侧计费变化 。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:AddBandwidthPackageIp​
要执行的操作,取值:AddBandwidthPackageIp。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
BandwidthPackageId String 必选 示例值:bwp-2zeo05qre24nhrqpy****​
共享带宽包的ID。​
您可调用 DescribeBandwidthPackages 接口,查询共享带宽包的ID。​
​
AllocationId String 必选 示例值:eip-sadase23123****​
要加入到共享带宽包实例的公网IP或IPv6公网带宽的ID。​
您可以调用 DescribeEipAddresses 或DescribeIpv6AddressBandwidths 接口,查询公网IP的ID或IPv6公网带宽的ID。​
​
​
​
返回参数​
RequestId String 示例值:2021062415303301022514515207C4****​
请求ID。​
​
​
​
请求示例​
​
GET /?Action=AddBandwidthPackageIp&Version=2020-04-01&BandwidthPackageId=bwp-2zeo05qre24nhrqpy****&AllocationId=eip-sadase23123**** HTTP/1.1​
Host: vpc.cn-beijing.volcengineapi.com​
Service: vpc​
Region: cn-beijing​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "2021062415303301022514515207C4****",​
"Action": "AddBandwidthPackageIp",​
"Version": "2020-04-01",​
"Service": "vpc",​
"Region": "cn-beijing"​
},​
"Result": {​
"RequestId": "2021062415303301022514515207C4****"​
}​
}​
​
错误码​
公共错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
DryRunOperation​
Exception raised to indicate a successfully authorized action when the DryRun flag is set to true.​
该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。​
400​
InvalidBandwidthPackage.InvalidStatus​
The specified bandwidth package is not in the correct status for the request. The specified bandwidth package is in freeze.​
指定的共享带宽包所处的状态无法响应该请求。当前共享带宽包被冻结。​
400​
InvalidBillingType.Malformed​
The specified billing type of EIP is malformed.​
指定的EIP计费类型不合法。​
400​
InvalidEip.InUse​
The specified EIP is being operated by another request.​
指定的EIP正被另一个请求操作,请稍后再试。​
400​
InvalidEip.InvalidStatus​
The specified elastic ip is not in the correct status for the request. The specified elastic ip is in freeze.​
指定的弹性公网IP或私有网络所处的状态无法响应该请求。当前弹性公网IP被冻结。​
400​
InvalidEip.InvalidStatus​
The specified elastic ip is not in the correct status for the request.​
指定的弹性公网IP所处的状态无法响应该请求。​
400​
InvalidIpv6.InUse​
The specified IPv6 address bandwidth is being operated by another request.​
指定的IPv6公网带宽正被另一个请求操作,请稍后再试。​
400​
InvalidProtocol.Mismatch​
The protocol 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​
MissingParameter​
The request is missing a required parameter.​
该请求缺少必要参数。​
400​
QuotaExceeded.BandwidthPackage​
You've reached the limit on the EIP number of that you can add to bandwidth package.​
已达到共享带宽包可加入公网IP的数量上限。​
403​
Forbidden​
You are not authorized to perform operations on the specified EIP. The specified EIP is a service-managed EIP.​
无权限对指定EIP进行操作。指定的EIP为云产品托管的EIP。​
403​
Forbidden​
You are not authorized to perform operations on the specified bandwidth package. Because of SecurityProtectionTypesInconsistent.​
无权限对指定的共享带宽包操作。指定EIP和共享带宽包的安全防护级别不一致。​
403​
Forbidden​
You are not authorized to perform operations on the specified bandwidth package. The ISP of EIP and bandwidth package is not same.​
EIP和共享带宽包的ISP不一致。​
404​
InvalidBandwidthPackage.NotFound​
The specified bandwidth package does not exist.​
指定的共享带宽包不存在。​
404​
InvalidEip.NotFound​
The specified EIP does not exist.​
指定的EIP不存在。​
409​
InvalidEip.Conflict​
The specified EIP conflicts with that of another EIP in your bandwidth package.​
指定的EIP已经在共享带宽包里。​
409​
InvalidOperation.Conflict​
The specified resource operation conflicts.​
指定的资源操作冲突。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.01.23 15:55:24
这个页面对您有帮助吗?
有用
有用
无用
无用