All Products
Search
Document Center

Tair (Redis® OSS-Compatible):DescribePrice

Last Updated:Nov 27, 2025

Queries the fees that you must pay when you create, upgrade, or renew a Tair (Redis OSS-compatible) instance.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
kvstore:DescribePriceget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the region ID.

cn-hangzhou
CapacitylongNo

The storage capacity of the instance. Unit: MB. This parameter is used only to query Redis Open-Source Edition instances that are deployed in classic mode. We recommend that you use the InstanceClass parameter to specify an exact instance type.

Note If you specify the InstanceClass parameter, you do not need to specify the Capacity parameter.
1024
InstanceClassstringNo

The instance type.**** To view the instance type, perform the following steps:

  1. In the Instance specifications topic, click the link in the References for instance specifications column corresponding to the instance type that you want to view.
  2. In the instance type table of the specification documentation, find the instance type in the InstanceClass column.
Note If you want to query new instances, in addition to key parameters, you must also specify at least the following parameters:
  • To query a classic instance, specify this parameter.

  • To query a cloud-native standard instance, specify this parameter.

  • To query a cloud-native cluster instance, specify this parameter and the ShardCount parameter.

  • To query a cloud-native read/write splitting instance, specify this parameter and the Instances parameter.

  • To query multiple instances of different specifications or to query a Tair ESSD-based instance that has a custom storage type and storage capacity, specify the Instances parameter. In this case, you do not need to specify the InstanceClass parameter.

redis.master.small.default
OrderTypestringYes

The order type. Valid values:

  • BUY: specifies the orders that are used to purchase instances.
  • UPGRADE: specifies the orders that are used to change the configurations of instances.
  • RENEW: specifies the orders that are used to renew instances.
  • CONVERT: specifies the orders that are used to change the billing methods of instances.
BUY
ZoneIdstringNo

The zone ID. You can call the DescribeZones operation to query the zone ID.

cn-hangzhou-e
ChargeTypestringNo

The billing method. Valid values:

  • PostPaid (default): pay-as-you-go
  • PrePaid: subscription
PostPaid
NodeTypestringNo

The node type. Valid values:

  • STAND_ALONE: standalone
  • MASTER_SLAVE (default): high availability (master-replica)
MASTER_SLAVE
PeriodlongNo

The subscription duration. Unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, and 36.

3
QuantitylongNo

The number of instances that you want to purchase. Valid values: 1 to 30. Default value: 1.

1
InstanceIdstringNo

The instance ID.

Note This parameter is required when the OrderType parameter is set to UPGRADE or RENEW.
r-bp1zxszhcgatnx****
InstancesstringNo

If you want to query cloud-native read/write splitting instances, Tair ESSD-based instances, or instances of different specifications, you must specify this parameter as a JSON string. For more information, see the Additional description of the Instances parameter section.

Instances=[{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-b","InstanceClass": "redis.master.small.default","Period": "1","Quantity": "1","Capacity": "4096"}]
BusinessInfostringNo

The extended information such as the promotional event ID and business information.

000000000000
CouponNostringNo

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank. This value indicates that no coupon code is available.

youhuiquan_promotion_option_id_for_blank
ForceUpgradebooleanNo

Specifies whether to forcefully change the configurations of the instance. Valid values:

  • false: forcefully changes the configurations.
  • true (default): does not forcefully change the configurations.
true
OrderParamOutstringNo

Specifies whether to return parameters related to the order. Valid values:

  • false (default)
  • true
true
ShardCountintegerNo

The number of data shards in the cloud-native cluster instance.

2
EngineVersionstringNo

The engine version of the instance. Valid values: 2.8, 4.0, and 5.0.

5.0

Additional description of the Instances parameter

The following description applies only to the Instances parameter of the DescribePrice operation.

ParameterTypeRequiredExampleDescription
RegionIdStringYescn-hangzhouThe region ID.
InstanceIdStringNor-7xv4s7q131smyx****The instance ID. This parameter is required if the OrderType parameter is set to UPGRADE or RENEW.
InstanceClassStringYesredis.master.small.defaultThe instance type of the classic instance. For more information, see Instance specifications.
ShardClassStringYestair.rdb.2gThe instance type of the cloud-native instance. For more information, see Instance specifications.You must specify this parameter or the InstanceClass parameter.
IzNoStringNocn-hangzhou-bThe zone ID.
NodeTypeStringNoMASTER_SLAVEThe node type. Valid values:
  • STAND_ALONE: standalone
  • MASTER_SLAVE (default): high availability (master-replica)
PeriodLongNo1The subscription duration. Unit: month. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, and 36.
QuantityStringNo1The number of instances that you want to purchase. Valid values: 1 to 30. Default value: 1.
VPCIdStringNovpc-bp1nme44gek34slfc****The virtual private cloud (VPC) ID.
VSwitchIdStringNovsw-bp1e7clcw529l773d****The vSwitch ID.
AutoPayStringNotrueSpecifies whether to enable automatic payment. Valid values:
  • true (default)
  • false
InstanceNameStringNotest_123The instance name.
ShardCountStringNo2The number of shards. Default value: 1. You do not need to specify this parameter when you query standard or read/write splitting instances. This parameter applies only to cloud-native cluster instances.
ReadOnlyCountIntegerNo2The total number of read replicas. This parameter applies only to cloud-native read/write splitting instances.
StorageTypeStringNoessd_pl2The storage type of the Tair ESSD-based instance. Valid values: essd_pl0, essd_pl1, essd_pl2, and essd_pl3. When you specify this parameter, you must also specify the Capacity parameter. For more information, see Specifications of ESSD/SSD-based instances.
CapacityLongNo512000The disk capacity of the Tair ESSD-based instance. Unit: MB.

Sample requests

Sample request for querying a Tair cloud-native cluster instance (Instances not required in this scenario):

{
  "RegionId": "cn-hangzhou",
  "InstanceClass": "tair.rdb.with.proxy.2g",
  "OrderType": "BUY",
  "ChargeType": "PrePaid",
  "Period": 1,
  "ShardCount": 3
}

Sample request for querying a Tair ESSD-based instance of a specific storage type:

{
  "RegionId": "cn-hangzhou",
  "OrderType": "BUY",
  "ChargeType": "PostPaid",
  "Instances": "[{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-h", "ShardClass": "tair.essd.standard.2xlarge", "ShardCount": "1","Capacity": "512000","StorageType": "essd_pl2"}]",
}

Sample request for querying a Tair cloud-native read/write splitting instance:

{
  "RegionId": "cn-hangzhou",
  "InstanceClass": "tair.rdb.with.proxy.2g",
  "OrderType": "BUY",
  "ChargeType": "PrePaid",
  "Period": 1,
  "Instances": "[{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-b","ShardClass":"tair.rdb.with.proxy.2g","ReadOnlyCount":"2"}]"
}

Sample request for querying multiple instances:

{
  "RegionId": "cn-hangzhou",
  "OrderType": "BUY",
  "ChargeType": "PrePaid",
  "Period": 1,
  "Instances": "[{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-b","InstanceClass": "redis.master.small.default"}{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-b","InstanceClass": "redis.amber.logic.sharding.1g.2db.0rodb.6proxy.multithread"}{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-b","ShardClass":"tair.rdb.with.proxy.2g","ShardCount":"3"}]"
}

Sample request for renewing a Tair cloud-native cluster instance (Instances not required in this scenario):

{
  "RegionId": "cn-hangzhou",
  "InstanceClass": "tair.rdb.with.proxy.1g",
  "OrderType": "RENEW",
  "ChargeType": "PrePaid",
  "Period": 12,
  "InstanceId": "r-d7****l3v0xmorw1xp",
  "ShardCount": 3
}

Response parameters

ParameterTypeDescriptionExample
object
OrderParamsstring

The parameters of the order. When OrderParamOut is set to true, this parameter is returned.

String
RequestIdstring

The request ID.

3A40BE4E-1890-4972-889C-FEFA37663635
Orderobject

The information about the order.

OriginalAmountstring

The original price of the order.

0.21
HandlingFeeAmountstring

The service fees of the order.

0.1
Currencystring

The currency used for payment. A value of CNY is used when the order was generated on the China site (aliyun.com), and a value of USD is used when the order was generated on the international site (alibabacloud.com).

CNY
DiscountAmountstring

The discount amount of the order.

0.21
TradeAmountstring

The transaction price of the order.

10
Couponsarray<object>

Details about coupons.

Couponobject

Details about the coupon.

IsSelectedstring

Indicates whether the coupon is selected.

true
CouponNostring

The coupon ID.

youhuiquan_promotion_option_id_for_blank
Namestring

The coupon name.

test
Descriptionstring

The coupon description.

coupondemo
RuleIdsarray

The rule IDs.

RuleIdstring

The rule ID.

1001199213
ShowDiscountInfoboolean

Indicates whether the discount information is displayed.

DepreciateInfoobject

The activity information.

ListPricelong

The list price.

1*
OriginalStandAmountlong

The original total price displayed on the official website.

12*
CheapStandAmountlong

The new total price displayed on the official website.

9*
CheapRatelong

The price reduction rate.

30%
Differentiallong

The promotional offer (displayed in the total order amount).

**
DifferentialNamestring

The name of the promotional offer.

XXXXX
MonthPricelong

The monthly price.

**
IsContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

false
IsShowboolean

Indicates whether the price reduction rate is displayed.

true
ContractActivityobject

The activity information.

FinalPromFeedouble

The total discount amount.

FinalFeedouble

The preferential price.

ProdFeedouble

The original price.

****
ActivityIdlong

The activity ID.

****
OptionCodestring

The promotion code.

****
ActivityNamestring

The activity name.

contract promotion_order_xxx discount
OptionIdsarray

The promotion IDs.

OptionIdlong

The promotion ID.

*****
StandDiscountPricelong

The discount.

****
IsContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

false
StandPricelong

The discounted price.

0
Codestring

The order code.

""
Messagestring

The information about the order.

""
Rulesarray<object>

Details about promotion rules.

Ruleobject
RuleDescIdlong

The ID of the rule.

1111111111
Titlestring

The title of the rule.

test
Namestring

The name of the rule.

test
SubOrdersarray<object>

The orders that match the coupons.

SubOrderobject
OriginalAmountstring

The original price of the order.

0.21
InstanceIdstring

The instance ID.

r-bp1xxxxxxxxxxxxx
DiscountAmountstring

The discount amount of the order.

0.21
TradeAmountstring

The transaction price of the order.

10
RuleIdsarray

The hit rule IDs.

RuleIdstring

The ID of the hit rule.

RuleId: 1111111111
OptionalPromotionsarray<object>

The optional promotions.

OptionalPromotionobject
Selectedboolean

Indicates whether the promotion option is selected.

false
CouponNostring

Indicates whether coupons are used. Valid values:

  • default or null (default): Coupons are used.
  • youhuiquan_promotion_option_id_for_blank: Coupons are not used.
default
Namestring

The coupon name.

****
Descriptionstring

The description of the coupon.

****
Showboolean

Indicates whether the discount is displayed.

False
ActivityExtInfoobject

The additional activity information.

****
OptionCodestring

The promotion code.

****
PromotionNamestring

The promotion name.

****
PromotionOptionNostring

The promotion ID.

youhuiquan_promotion_option_id_for_blank
CanPromFeestring

The amount that can be deducted by using the coupon.

****
DepreciateInfoobject

The price reduction information.

ListPricelong

The list price.

****
OriginalStandAmountlong

The original total price displayed on the official website.

****
CheapStandAmountlong

The new total price displayed on the official website.

****
CheapRatelong

The price reduction rate.

****
Differentiallong

The promotional offer (displayed in the total order amount).

****
DifferentialNamestring

The name of the promotional offer.

****
MonthPricelong

The monthly price.

****
IsContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

false
ContractActivityobject

The contract promotion.

FinalPromFeedouble

The total discount amount.

****
FinalFeedouble

The preferential price.

****
ProdFeedouble

The original price.

****
ActivityIdlong

The activity ID.

1412025702634847
OptionCodestring

The promotion ID.

****
ActivityNamestring

The activity name.

****
OptionIdsarray

The promotion IDs.

OptionIdlong

The promotion ID.

StartTimestring

The start time of the activity.

2024-11-18T00:00:00Z
StandDiscountPricelong

The discounted price.

****
IsContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

****
StandPricelong

The discounted price.

****
ModuleInstancearray<object>

The configuration details for each instance of an order line item.

ModuleInstanceobject

The configuration sub-item of the instance in the order.

ModuleCodestring

The module code.

****
ModuleIdstring

The module ID.

****
StandPricedouble

The discounted price.

****
PricingModuleboolean

Indicates whether the item is billed.

****
ModuleNamestring

The module name.

****
DiscountFeedouble

The discount.

****
TotalProductFeedouble

The original price of the instance.

0.0
NeedOrderPayboolean

Indicates whether the order is paid.

true
PayFeedouble

The actual amount paid.

0.0
ModuleAttrsarray<object>

The module attributes.

moduleAttrobject

The module attribute.

Typelong

The attribute type.

****
Valuestring

The attribute value.

****
Codestring

The attribute code.

****
Namestring

The attribute name.

****
ContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

****
DepreciateInfoobject

The price reduction information.

ListPricedouble

The list price.

****
OriginalStandAmountdouble

The original total price displayed on the official website.

****
CheapStandAmountdouble

The new total price displayed on the official website.

****
CheapRatedouble

The price reduction rate.

******
Differentialdouble

The promotional offer (displayed in the total order amount).

****
DifferentialNamestring

The name of the promotional offer.

****
MonthPricedouble

The monthly price.

****
IsContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

****
IsShowboolean

Indicates whether the price reduction rate is displayed.

true
StartTimestring

The start time of the activity.

2024-09-23T14:00:01Z
PromDetailListarray<object>

Details about promotions.

PromDetailobject

Details about the promotion.

PromotionNamestring

The promotion name.

****
PromotionIdlong

The promotion ID.

****
FinalPromFeedouble

The discount amount.

****
OptionCodestring

The coupon code.

****
PromTypestring

The promotion type.

****
ActivityExtInfoobject

The additional activity information.

****
DerivedPromTypestring

The derived promotion type.

****
PromotionCodestring

The promotion code.

****
ContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

****

Examples

Sample success responses

JSONformat

{
  "OrderParams": "String",
  "RequestId": "3A40BE4E-1890-4972-889C-FEFA37663635",
  "Order": {
    "OriginalAmount": 0.21,
    "HandlingFeeAmount": 0.1,
    "Currency": "CNY",
    "DiscountAmount": 0.21,
    "TradeAmount": 10,
    "Coupons": {
      "Coupon": [
        {
          "IsSelected": true,
          "CouponNo": "youhuiquan_promotion_option_id_for_blank",
          "Name": "test",
          "Description": "coupondemo"
        }
      ]
    },
    "RuleIds": {
      "RuleId": [
        1001199213
      ]
    },
    "ShowDiscountInfo": true,
    "DepreciateInfo": {
      "ListPrice": 0,
      "OriginalStandAmount": 0,
      "CheapStandAmount": 0,
      "CheapRate": 0,
      "Differential": 0,
      "DifferentialName": "XXXXX",
      "MonthPrice": 0,
      "IsContractActivity": false,
      "IsShow": true,
      "ContractActivity": {
        "FinalPromFee": 0,
        "FinalFee": 0,
        "ProdFee": 0,
        "ActivityId": 0,
        "OptionCode": "****",
        "ActivityName": "contract promotion_order_xxx discount\n",
        "OptionIds": {
          "OptionId": [
            0
          ]
        }
      }
    },
    "StandDiscountPrice": 0,
    "IsContractActivity": true,
    "StandPrice": 0,
    "Code": "",
    "Message": ""
  },
  "Rules": {
    "Rule": [
      {
        "RuleDescId": 1111111111,
        "Title": "test",
        "Name": "test"
      }
    ]
  },
  "SubOrders": {
    "SubOrder": [
      {
        "OriginalAmount": 0.21,
        "InstanceId": "r-bp1xxxxxxxxxxxxx",
        "DiscountAmount": 0.21,
        "TradeAmount": 10,
        "RuleIds": {
          "RuleId": [
            "RuleId: 1111111111"
          ]
        },
        "OptionalPromotions": {
          "OptionalPromotion": [
            {
              "Selected": false,
              "CouponNo": "default",
              "Name": "****",
              "Description": "****",
              "Show": true,
              "ActivityExtInfo": {
                "test": "test",
                "test2": 1
              },
              "OptionCode": "****",
              "PromotionName": "****",
              "PromotionOptionNo": "youhuiquan_promotion_option_id_for_blank",
              "CanPromFee": "****"
            }
          ]
        },
        "DepreciateInfo": {
          "ListPrice": 0,
          "OriginalStandAmount": 0,
          "CheapStandAmount": 0,
          "CheapRate": 0,
          "Differential": 0,
          "DifferentialName": "****",
          "MonthPrice": 0,
          "IsContractActivity": false,
          "ContractActivity": {
            "FinalPromFee": 0,
            "FinalFee": 0,
            "ProdFee": 0,
            "ActivityId": 1412025702634847,
            "OptionCode": "****",
            "ActivityName": "****",
            "OptionIds": {
              "OptionId": [
                0
              ]
            }
          },
          "StartTime": "2024-11-18T00:00:00Z"
        },
        "StandDiscountPrice": 0,
        "IsContractActivity": true,
        "StandPrice": 0,
        "ModuleInstance": {
          "ModuleInstance": [
            {
              "ModuleCode": "****",
              "ModuleId": "****",
              "StandPrice": 0,
              "PricingModule": true,
              "ModuleName": "****",
              "DiscountFee": 0,
              "TotalProductFee": 0,
              "NeedOrderPay": true,
              "PayFee": 0,
              "ModuleAttrs": {
                "moduleAttr": [
                  {
                    "Type": 0,
                    "Value": "****",
                    "Code": "****",
                    "Name": "****"
                  }
                ]
              },
              "ContractActivity": true,
              "DepreciateInfo": {
                "ListPrice": 0,
                "OriginalStandAmount": 0,
                "CheapStandAmount": 0,
                "CheapRate": 0,
                "Differential": 0,
                "DifferentialName": "****",
                "MonthPrice": 0,
                "IsContractActivity": true,
                "IsShow": true,
                "StartTime": "2024-09-23T14:00:01Z"
              }
            }
          ]
        },
        "PromDetailList": {
          "PromDetail": [
            {
              "PromotionName": "****",
              "PromotionId": 0,
              "FinalPromFee": 0,
              "OptionCode": "****",
              "PromType": "****",
              "ActivityExtInfo": {
                "test": "test",
                "test2": 1
              },
              "DerivedPromType": "****",
              "PromotionCode": "****"
            }
          ]
        },
        "ContractActivity": true
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400MissingParameterPeriod is mandatory for this action.-
400MissingParameterInstanceId is mandatory for this action.-
400InvalidInstances.FormatThe Specified parameter Instances is not valid.The Instances parameter passed in is invalid
400AlreadyHadTemporaryBandwidthThis instance have already had temporary bandwidth, please modify instance spec first.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-03-25API Description Update. The Error code has changedView Change Details
2025-02-10The Error code has changed. The request parameters of the API has changedView Change Details
2024-07-31The Error code has changed. The request parameters of the API has changedView Change Details
2024-04-10The Error code has changed. The response structure of the API has changedView Change Details
2024-04-07The Error code has changed. The response structure of the API has changedView Change Details
2024-03-26The Error code has changed. The response structure of the API has changedView Change Details
2024-02-28The Error code has changed. The response structure of the API has changedView Change Details
2023-09-18The Error code has changed. The response structure of the API has changedView Change Details