调用 AddBandwidthPackageIp 接口,为共享带宽包添加公网IP或IPv6公网带宽。
共享带宽包添加公网IP或IPv6公网带宽,必须同时满足如下条件:
公网IP或IPv6公网带宽加入共享带宽包后,原带宽上限无效,共用共享带宽包的带宽。计费变化请参见 公网IP/IPv6公网带宽侧计费变化 。
参数名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AddBandwidthPackageIp | 要执行的操作,取值:AddBandwidthPackageIp。 |
Version | String | 是 | 2020-04-01 | API的版本信息,当前版本为2020-04-01。 |
BandwidthPackageId | String | 是 | bwp-2zeo05qre24nhrqpy**** | 共享带宽包的ID。 |
AllocationId | String | 是 | eip-sadase23123**** | 要加入到共享带宽包实例的公网IP或IPv6公网带宽的ID。 |
参数名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 2021062415303301022514515207C4**** | 请求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 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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. | 指定的公网IP计费类型不合法。 |
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 | InvalidEip.VersionMismatch | IPv4 EIP and IPv6 EIP can not add to the same bandwidth package. | IPv4 EIP和IPv6 EIP不能同时加入到一个共享带宽包中。 |
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 | 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 bandwidth package. The ISP of EIP and bandwidth package is not same. | 公网IP和共享带宽包的ISP不一致。 |
403 | Forbidden | You are not authorized to perform operations on the specified bandwidth package. Because of SecurityProtectionTypesInconsistent. | 无权限对指定的共享带宽包操作。指定公网IP和共享带宽包的安全防护级别不一致。 |
404 | InvalidBandwidthPackage.NotFound | The specified bandwidth package does not exist. | 指定的共享带宽包不存在。 |
404 | InvalidEip.NotFound | The specified EIP does not exist. | 指定的公网IP不存在。 |
409 | InvalidEip.Conflict | The specified EIP conflicts with that of another EIP in your bandwidth package. | 指定的公网IP已经在共享带宽包里。 |