AddCommonBandwidthPackageIp_专有网络_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

在调用本接口时,请了解以下内容:

  • 调用本接口添加 EIP 到共享带宽中时,EIP 需满足以下条件:
    • EIP 的计费方式为按量付费。
    • EIP 的地域与要加入的共享带宽的地域相同。
    • EIP 的线路类型与要加入的共享带宽的线路类型一致。
  • AddCommonBandwidthPackageIp 接口属于异步接口,即系统会先返回一个请求 ID,但 EIP 并未成功添加到共享带宽,系统后台的添加任务仍在进行。您可以调用 DescribeCommonBandwidthPackages 查询共享带宽和 EIP 的关联状态。
    • 当共享带宽和 EIP 的关联状态处于 BINDING 时,表示共享带宽与 EIP 关联中,在该状态下,您只能执行查询操作,不能执行其他操作。

    • 当共享带宽和 EIP 的关联状态处于 BINDED 时,表示共享带宽与 EIP 关联完成。

流控信息

请求速率为300/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:AddCommonBandwidthPackageIp
Create
BandwidthPackage
acs:vpc:{#regionId}:{#accountId}:combandwidthpackage/{#BandwidthPackageId}

请求参数

字段名称字段详情
RegionIdstring

共享带宽所在的地域 ID。 展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
BandwidthPackageIdstring

共享带宽的 ID。

示例值:cbwp-2ze2ic1xd2qeqasdf****参考取值来源:
    CreateCommonBandwidthPackage
    DescribeCommonBandwidthPackages
IpInstanceIdstring

EIP 实例的 ID。 展开详情

示例值:eip-2zeerraiwb7uqwed****参考取值来源:
    DescribeEipAddresses
IpTypestring

IP 类型。取值:EIP,表示将 EIP 添加至共享带宽。

示例值:EIP
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:0c593ea1-3bea-11e9-b96b-88e9fe637760

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:01FDDD49-C4B7-4D2A-A8E5-A93915C450A6

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
OperationDenied.SecurityProtectionTypesInconsistent
The operation is not allowed because of SecurityProtectionTypesInconsistent.诊断
400
IpInstanceId.AlreadyInBandwidthPackage
The specified Eip InstanceId already in bandwidthPackage.诊断
400
IpInstanceId.BizStatusInvalid
The specified Eip BizStatus is Disable, Cannot add to bandwidthPackage.诊断
400
IpInstanceId.ChargeType.NotSupport
The specified Eip instance is PrePaid type, Cannot add to BandwidthPackage.诊断
400
BandwidthPackageId.InvalidBizStatus
The specified BandwidthPackageId has been FinancialLocked, Cannot add Ip.诊断
400
IpInstanceId.QuotaExceeded
The specified BandwidthPackageId has too many ip in it. exceed the quota , Cannot add more.诊断
400
EipOperation.TooFrequently
The specified Eip add into bandwidthPackage too frequently. please add later.诊断
400
TaskConflict
The operation is too frequent, TaskConflict.诊断
400
IncorrectStatus.Eip
Eip status error.诊断
400
OperationUnsupported.IpType
Ip type does not support the operation.诊断
400
ParamExclusive.IpInstanceIdAndBandwidthPackageId
%s诊断
400
InvalidBandwidthPackage.NotExist
Eip bandwidth package not exist.诊断
400
OperationFailed.DistibuteLock
Distibute lock fail.诊断
400
OperationFailed.ZoneIdInconsistent
%s诊断
400
AttrMismatching.BandwidthPackageIpVersion
%s诊断
400
InvalidBandwidthPackageId.NotFound
The specified BandwidthPackageId not exist.诊断
400
InvalidInstanceId.NotFound
The InstanceId is not found.诊断
400
InvalidEIPStatus.BizDisabled
The EIP has been locked.诊断
400
Forbidden.FinancialLocked
The ip business status is invalid.诊断
400
Mismatch.CloudBoxCbwpZoneAndEipZone
The CbwpZone and EipZone are mismatched.诊断
404
InvalidRegionId.NotFound
The specified RegionId does not exist in our records.诊断
404
InvalidBandwidthPackageId.NotFound
The specified bandwidthPackageId does not exist in our records.诊断
404
InvalidIpInstanceId.NotFound
The specified Eip InstanceId does not exist in our records.诊断
404
IpInstanceId.InvalidIpInternetChargeType
The hybrid type eip not support add into bandwidthPackage of PayBytraffic type.诊断
404
BandwidthPackageId.InvalidBandwidth
The hybrid type eip can not add into low bandwidth bandwidthPackage.诊断

变更历史

变更时间变更内容概要操作
2023-08-08
变更错误码400
2022-11-29
变更错误码400

相关示例

为NAT网关添加和修改共享带宽
2021-03-01