参考本示例对后付费计费方式的分析型数据库ADS进行询价。

询价说明

获取后付费分析型数据库ADS的价格,您需要完成以下操作:
  1. 调用QueryProductList获取产品code,分析型数据库ADS的产品code为ads
  2. 调用DescribePricingModule接口获取产品的配置参数。该接口须指定ProductCodeSubscriptionType参数。后付费产品的SubscriptionType取值为PayAsYouGo

    下表列举了获取后付费分析型数据库ADS价格需提供的参数。

    名称 说明 取值范围
    Region cn-hangzhou 地域信息。
    ModuleList.1.ModuleCode ResourceType ECU类型。
    ModuleList.1.Config c4 ECU类型取值:
    • c4: C4。
    • c8: C8。
    • s2n : S2N。
    • s8n: S8N。
    ModuleList.1.PriceType Hour 价格类型。
    ModuleList.2.ModuleCode ResourceCount ECU数量。
    ModuleList.2.Config 1 ECU数量取值,2~100,默认值:4。
    ModuleList.2.PriceType Hour 价格类型。
    ModuleList.3.ModuleCode AvailableZone 可用区。
    ModuleList.3.Config cn-hangzhou-b 可用区取值。
    ModuleList.3.PriceType Hour 价格类型。
    ModuleList.4.ModuleCode DatabaseName 数据库名。
    ModuleList.4.Config test 取值自定义:长度少于64个字符,以小写字母开头,可包含数字或下划线。
    ModuleList.4.PriceType Hour 价格类型。
  3. 调用GetPayAsYouGoPrice接口获取后付费分析型数据库ADS的价格。

请求示例

https://business.aliyuncs.com/?Action=GetPayAsYouGoPrice
&ModuleList.1.Config=ResourceType:c4
&ModuleList.1.ModuleCode=ResourceType
&ModuleList.2.Config=ResourceCount:2
&ModuleList.2.ModuleCode=ResourceCount
&ModuleList.3.Config=DatabaseName:t12
&ModuleList.3.ModuleCode=DatabaseName
&ModuleList.4.Config=AvailableZone:cn-hangzhou-a
&ModuleList.4.ModuleCode=AvailableZone
&ProductCode=ads
&ProductType=ads
&Region=cn-hangzhou
&SubscriptionType=PayAsYouGo
&公共参数