开通共享带宽-AllocateShareBandwidth

开通共享带宽

Request Parameters

Parameter nameTypeDescriptionRequired
Regionstring地域。 参见 地域和可用区列表Yes
ProjectIdstring项目ID。不填写为默认项目,子帐号必须填写。No
Namestring共享带宽名字Yes
ChargeTypestring付费方式:Year 按年,Month 按月,Dynamic 按时;Yes
ShareBandwidthint共享带宽值Yes
Quantityint购买时长No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
ShareBandwidthIdstring共享带宽资源IdNo

Request Example

https://api.ucloud.cn/?Action=AllocateShareBandwidth
&Region=cn-bj2
&ShareBandwidth=20
&ChargeType=Month
&Name=sharebwname

Response Example

{
    "Action": "AllocateShareBandwidthResponse",
    "Request_uuid": "94053674-0160-40f2-8981-XXXXXXX",
    "RetCode": 0,
    "ShareBandwidthId": "mdfMzyBm"
}