edit-icon download-icon

DescribePrice

Last Updated: Apr 19, 2018

Description

This API queries the price of an instance you want to purchase.

Request parameters

Parameter Type Required Description
Action String Yes Set this parameter to DescribePrice.
RegionId String Yes Region ID. It cannot exceed 50 characters. You can use the DescribeRegions API to check the available regions.
Engine String Yes Database type. Values: MySQL, SQLServer, PostgreSQL, and PPAS.
EngineVersion String Yes Database version. Values:
  • MySQL: 5.5, 5.6, and 5.7
  • SQL Server: 2008 R2, 2012, and 2016
  • PostgreSQL: 9.4
  • PPAS: 9.3
CommodityCode String No Product specifications. Values:
  • rds: indicates the Subscription billing method. This is the default value.
  • bards: indicates the Pay-As-You-Go billing method.
DBInstanceClass String Yes Instance type code.
DBInstanceStorage Integer Yes Storage space, measured in GB. The value must be a multiple of 5. For more information, see Instance type list. Value range:
  • [5, 2000] for the high-availability series of MySQL, PostgreSQL, and PPAS
  • [20, 1000] for the basic series of MySQL 5.7
  • [10, 2000] for SQL Server 2008 R2
  • [20, 2000] for the basic series of SQL Server 2012
PayType String No Billing method. Values:
  • Postpaid: Pay-As-You-Go
  • Prepaid: Subscription
UsedTime String No Length of service time. If TimeType is Year, values are 1 to 3. If TimeType is Month, values are 1 to 9.
TimeType String No Time type. Values:
  • Day, Month, or Year for Subscription instance
  • Hour for Pay-As-You-Go instances
Quantity Integer Yes Number of the instances you want to purchase. Value range: [1, 30].

Response parameters

Parameter Type Description
<Common response parameters> - For more information, see Common parameters.
PriceInfo PriceInfo Price information.
Rules List<Rule> List of activities.

Rule parameters

Parameter Type Description
RuleId Long Activity ID.
Name String Activity name.
Description String Activity description.

PriceInfo parameters

Parameter Type Description
Currency String Currency unit.
OriginalPrice Double Original price.
DiscountPrice Double Discount.
TradePrice Double Final price, which is equal to the original price minus the discount.
Thank you! We've received your feedback.