参考本示例查询后付费计费方式的共享带宽的价格。
询价说明
获取后付费共享带宽的价格,您需要完成以下操作:
- 调用QueryProductList获取产品code,共享带宽的产品code为
cbwp
。 - 调用DescribePricingModule接口获取产品的配置参数。该接口须指定ProductCode和SubscriptionType参数。后付费产品的SubscriptionType取值为PayAsYouGo。
下表列举了获取后付费共享带宽价格需提供的参数。
名称 示例值 说明 Region cn-hangzhou 地域信息 ModuleList.1.ModuleCode InternetChargeType 计费方式。 ModuleList.1.Config 0 计费方式取值。 - 0:按宽带。
- 95:按增强型95。
ModuleList.1.PriceType Usage 价格类型。 ModuleList.2.ModuleCode Bandwidth 带宽。 ModuleList.2.Config 2 带宽取值,2~5000;默认值:2。 ModuleList.2.PriceType Hour 价格类型。 - 调用GetPayAsYouGoPrice接口获取后付费共享带宽的价格。
接口参数和取值样例
https://business.aliyuncs.com/?Action=GetPayAsYouGoPrice
&ModuleList.1.Config=InternetChargeType:0
&ModuleList.1.ModuleCode=InternetChargeType
&ModuleList.1.PriceType=Usage
&ModuleList.2.Config=Bandwidth:2
&ModuleList.2.ModuleCode=Bandwidth
&ModuleList.2.PriceType=Hour
&ProductCode=cbwp
&Region=cn-hangzhou
&SubscriptionType=PayAsYouGo
&公共参数