You need to enable JavaScript to run this app.
导航

AddBandwidthPackageIp

最近更新时间2024.04.18 17:04:25

首次发布时间2022.03.01 09:32:28

调用 AddBandwidthPackageIp 接口,为共享带宽包添加公网IP或IPv6公网带宽。

调用说明

共享带宽包添加公网IP或IPv6公网带宽,必须同时满足如下条件:

  • 二者IP协议相同。
  • 二者安全防护类型相同。
  • 二者地域相同。
  • 公网IP或IPv6公网带宽为按量计费。

公网IP或IPv6公网带宽加入共享带宽包后,原带宽上限无效,共用共享带宽包的带宽。计费变化请参见 公网IP/IPv6公网带宽侧计费变化

调试

请求参数

参数名称
类型
是否必选
示例值
描述
ActionStringAddBandwidthPackageIp要执行的操作,取值:AddBandwidthPackageIp。
VersionString2020-04-01API的版本信息,当前版本为2020-04-01。

BandwidthPackageId

String

bwp-2zeo05qre24nhrqpy****

共享带宽包的ID。
您可调用 DescribeBandwidthPackages 接口,查询共享带宽包的ID。

AllocationId

String

eip-sadase23123****

要加入到共享带宽包实例的公网IP或IPv6公网带宽的ID。
您可以调用 DescribeEipAddressesDescribeIpv6AddressBandwidths 接口,查询公网IP的ID或IPv6公网带宽的ID。

返回数据

参数名称
类型
示例值
描述
RequestIdString2021062415303301022514515207C4****请求ID。

请求示例

GET /?Action=AddBandwidthPackageIp&Version=2020-04-01&BandwidthPackageId=bwp-2zeo05qre24nhrqpy****&AllocationId=eip-sadase23123**** HTTP/1.1
Host: open.volcengineapi.com
Service: vpc
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "2021062415303301022514515207C4****",
        "Action": "AddBandwidthPackageIp",
        "Version": "2020-04-01",
        "Service": "vpc",
        "Region": "cn-beijing"
    },
    "Result":{
        "RequestId": "2021062415303301022514515207C4****"
    }
}

错误码

公共错误码,请参见 公共错误码 。

HttpCode
错误码
错误信息
描述
400InvalidBandwidthPackage.InvalidStatusThe specified bandwidth package is not in the correct status for the request. The specified bandwidth package is in freeze.指定的共享带宽包所处的状态无法响应该请求。当前共享带宽包被冻结。
400InvalidBillingType.MalformedThe specified billing type of EIP is malformed.指定的公网IP计费类型不合法。
400InvalidEip.InUseThe specified EIP is being operated by another request.指定的EIP正被另一个请求操作,请稍后再试。
400InvalidEip.InvalidStatusThe specified elastic ip is not in the correct status for the request. The specified elastic ip is in freeze.指定的公网IP或私有网络所处的状态无法响应该请求。当前公网IP被冻结。
400InvalidEip.InvalidStatusThe specified elastic ip is not in the correct status for the request.指定的弹性公网IP所处的状态无法响应该请求。
400InvalidEip.VersionMismatchIPv4 EIP and IPv6 EIP can not add to the same bandwidth package.IPv4 EIP和IPv6 EIP不能同时加入到一个共享带宽包中。
400InvalidIpv6.InUseThe specified IPv6 address bandwidth is being operated by another request.指定的IPv6公网带宽正被另一个请求操作,请稍后再试。
400InvalidProtocol.MismatchThe protocol of the bandwidth package does not match with the EIP.共享带宽包与EIP的协议类型不匹配。
400QuotaExceeded.BandwidthPackageYou've reached the limit on the EIP number of that you can add to bandwidth package.已达到共享带宽包可加入公网IP的数量上限。
403ForbiddenYou are not authorized to perform operations on the specified bandwidth package. The ISP of EIP and bandwidth package is not same.公网IP和共享带宽包的ISP不一致。
403ForbiddenYou are not authorized to perform operations on the specified bandwidth package. Because of SecurityProtectionTypesInconsistent.无权限对指定的共享带宽包操作。指定公网IP和共享带宽包的安全防护级别不一致。
404InvalidBandwidthPackage.NotFoundThe specified bandwidth package does not exist.指定的共享带宽包不存在。
404InvalidEip.NotFoundThe specified EIP does not exist.指定的公网IP不存在。
409InvalidEip.ConflictThe specified EIP conflicts with that of another EIP in your bandwidth package.指定的公网IP已经在共享带宽包里。