创建带宽包-CreateBandwidthPackage

为非共享带宽模式下, 已绑定资源实例的带宽计费弹性IP附加临时带宽包

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域Yes
Bandwidthint带宽大小(单位Mbps), 取值范围[2,800] (最大值受地域限制)Yes
EIPIdstring所绑定弹性IP的资源IDYes
TimeRangeint带宽包有效时长, 取值范围为大于0的整数, 即该带宽包在EnableTime到 EnableTime+TimeRange时间段内生效Yes
EnableTimeint生效时间, 格式为 Unix timestamp, 默认为立即开通No
CouponIdstring代金券IDNo

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
BandwidthPackageIdstring所创建带宽包的资源IDNo

Request Example

http(s)://api.ucloud.cn/?Action=CreateBandwidthPackage
&Region=cn-bj2
&EIPId=eip-vuxqym
&Bandwidth=200
&EnableTime=1430986009
&TimeRange=1

Response Example

{
    "Action": "CreateBandwidthPackageResponse",
    "BandwidthPackageId": "bwpack-rybftq",
    "RetCode": 0
}