参考本示例查询预付费计费方式的共享带宽的价格。
询价说明
获取预付费共享带宽的价格,您需要完成以下操作:
- 调用QueryProductList获取产品code,共享带宽的产品code为
cbwp
。 - 调用DescribePricingModule接口获取产品的配置参数。该接口须指定ProductCode和SubscriptionType参数。预付费产品的SubscriptionType取值为Subscription。
下表列举了获取预付费共享带宽价格需提供的参数。
名称 示例值 说明 OrderType NewOrder 订单类型,取值: - NewOrder:新增。
- Renewal:续费。
- Upgrade:升级。
Region cn-hangzhou 地域信息。 ModuleList.1.ModuleCode Bandwidth 峰值带宽。 ModuleList.1.Config 2 对应取值:2~5000默认值:2。 ModuleList.2.ModuleCode Name 名称。 ModuleList.2.Config 任意字符串 对应取值。 ServicePeriodQuantity 1 购买时长。 ServicePeriodUnit Month 购买时长单位: - Month:月。
- Year:年。
Quantity 1 购买数量。 - 调用GetSubscriptionPrice接口获取预付费共享带宽的价格。
请求示例
&Action=GetSubscriptionPrice
&ProductCode=cbwp
&SubscriptionType=Subscription
&OrderType=NewOrder
&Region=cn-hangzhou
&ModuleList.1.ModuleCode=Bandwidth
&ModuleList.1.Config=Bandwidth:2
&ModuleList.2.ModuleCode=Name
&ModuleList.2.Config=Name:test
&ServicePeriodQuantity=1
&ServicePeriodUnit=Month
&Quantity=1
&公共参数