参考本示例查询后付费计费方式的弹性公网IP的价格。

询价说明

获取后付费EIP实例的价格,您需要完成以下操作:
  1. 调用QueryProductList获取产品code,弹性公网IP的产品code为eip
  2. 调用DescribePricingModule接口获取产品的配置参数。该接口须指定ProductCodeSubscriptionType参数。后付费产品的SubscriptionType取值为PayAsYouGo

    下表列举了获取后付费EIP实例价格需提供的参数。

    返回参数 取值范围
    Region 地域信息。
    OrderType 订单类型,取值:
    • NewOrder:新增。
    • Renewal:续费。
    • Upgrade:升级。
    ModuleList.1.ModuleCode 带宽:Bandwidth。
    ModuleList.1.Config 带宽峰值,取值:1024~204800,只能是1024的倍数。默认值为1024。
    ModuleList.1.PriceType 价格类型:Day。
    ModuleList.2.ModuleCode 计费方式:InternetChargeType。
    ModuleList.2.Config
    • 1:按使用流量计费。
    • 0:按固定带宽计费。
    ModuleList.2.PriceType 价格类型:Usage。
    ModuleList.3.ModuleCode 线路类型:ISP。
    ModuleList.3.Config 线路类型取值:BGP。
    ModuleList.3.PriceType 价格类型:Hour。
  3. 调用GetPayAsYouGoPrice接口获取后付费EIP的价格。

请求示例

https://business.aliyuncs.com/?Action=GetPayAsYouGoPrice
&ModuleList.1.Config=Bandwidth:1024
&ModuleList.1.ModuleCode=Bandwidth
&ModuleList.1.PriceType=Day
&ModuleList.2.Config=InternetChargeType:1
&ModuleList.2.ModuleCode=InternetChargeType
&ModuleList.2.PriceType=Usage
&ModuleList.3.Config=ISP:BGP
&ModuleList.3.ModuleCode=ISP
&ModuleList.3.PriceType=Hour
&ProductCode=eip
&Region=cn-hangzhou
&SubscriptionType=PayAsYouGo
&公共参数