DescribePrice

Updated at: 2025-03-27 11:34

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
OperationAccess levelResource typeCondition keyAssociated operation
kvstore:DescribePriceget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

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 Overview topic, click the link in the Reference column corresponding to the instance type that you want to view.
  2. In the instance type table of the page that appears, find the instance type in the InstanceClass column.

When you query cloud-native cluster instances, you must set this parameter to one of the following values and use the Instances parameter to specify the instance type that you want to query.

  • ApsaraDB for Redis cluster instances: redis.cluster.sharding.common.ce
  • Tair DRAM-based cluster instances: tair.rdb.cluster.sharding.common
  • Tair persistent memory-based cluster instances: tair.scm.cluster.sharding.common.ce
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 of the instance. You can call the DescribeZones operation to query the most recent zone list.

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: months. 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

A JSON string that contains information about one or more cloud-native cluster instances. For more information, see the "Additional description of the Instances parameter" section of this topic.

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 shards. This parameter is applicable only to cloud-native cluster instances. You can use this parameter to customize the number of shards.

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
ParameterTypeRequiredExampleDescription
RegionIdStringYescn-hangzhouThe region ID.
InstanceIdStringNor-7xv4s7q131smyx****The ID of the instance. This parameter is required if the OrderType parameter is set to UPGRADE or RENEW.
InstanceClassStringYesredis.master.small.defaultThe instance type of a classic instance. For more information, see Overview .
ShardClassStringYestair.rdb.2gThe instance type of a cloud-native instance. For more information, see Overview .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 ID of the vSwitch.
AutoPayStringNotrueSpecifies whether to enable automatic payment. Valid values:
  • true (default)
  • false
InstanceNameStringNotest_123The name of the instance.
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 is applicable only to cloud-native cluster instances. You can use this parameter to specify the number of shards.
ReadOnlyCountIntegerNo2The total number of read replicas. This parameter is applicable only to cloud-native read/write splitting instances.
StorageTypeStringNoessd_pl2The storage type of a 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 a Tair ESSD-based instance. Unit: MB.

Sample request with the Instances parameter configured

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
ParameterTypeDescriptionExample
object
OrderParamsstring

The parameters of the order. This parameter is returned when OrderParamOut is set to true.

String
RequestIdstring

The ID of the request.

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

The coupon information.

IsSelectedstring

Indicates whether the coupon was selected.

true
CouponNostring

The coupon ID.

youhuiquan_promotion_option_id_for_blank
Namestring

The coupon name.

test
Descriptionstring

The description of the coupon.

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 price difference displayed in the total order amount.

**
DifferentialNamestring

The name of the price difference.

XXXXX
MonthPricelong

The monthly price.

**
IsContractActivityboolean

Indicates whether the contract promotion is hit.

false
IsShowboolean

Indicates whether the price reduction rate is displayed.

true
ContractActivityobject

The activity information.

FinalPromFeedouble

The total discount amount.

FinalFeedouble

The price after the promotion.

ProdFeedouble

The original price.

****
ActivityIdlong

The activity ID.

****
OptionCodestring

The promotion ID.

****
ActivityNamestring

The activity name.

OptionIdsarray

The promotion IDs.

OptionIdlong

The promotion ID.

*****
StandDiscountPricelong

The discount.

****
IsContractActivityboolean

Indicates whether the contract promotion is hit.

false
StandPricelong

The discount.

0
Codestring

The order code.

""
Messagestring

The order information.

""
Rulesarray<object>

Details about promotion rules.

Ruleobject

The details of the promotion rule.

RuleDescIdlong

The ID of the rule.

1111111111
Titlestring

The title of the rule.

test
Namestring

The name of the promotion rule.

test
SubOrdersarray<object>

The rules that match the coupon.

SubOrderobject

The coupon rule.

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 final price of the order.

10
RuleIdsarray

The rule IDs.

RuleIdstring

The ID of the hit rule.

RuleId: 1111111111
OptionalPromotionsarray<object>

The optional promotions.

OptionalPromotionobject

The promotional options that can be configured.

Selectedboolean

Indicates whether

false
CouponNostring

The coupon code. Default value: youhuiquan_promotion_option_id_for_blank.

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 transaction price.

****
FinalFeedouble

The discounted price.

****
ProdFeedouble

The original price.

****
ActivityIdlong

The activity ID.

1412025702634847
OptionCodestring

The promotion ID.

****
ActivityNamestring

The activity name.

****
OptionIdsarray

The promotion ID.

OptionIdlong

The promotion ID.

StartTimestring

The start time of the activity.

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

The discount.

****
IsContractActivityboolean

Indicates whether eligibility for the contracted discount is met.

****
StandPricelong

The discount.

****
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 discount.

****
PricingModuleboolean

Indicates whether the item is billed.

****
ModuleNamestring

The module name.

****
DiscountFeedouble

The discount.

****
TotalProductFeedouble

The original price of the product.

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>

The promotion details.

PromDetailobject

The information about the promotion.

PromotionNamestring

The name of the promotional activity.

****
PromotionIdlong

The promotion ID.

****
FinalPromFeedouble

The transaction price.

****
OptionCodestring

The code of the coupon.

****
PromTypestring

The promotion type.

****
ActivityExtInfoobject

The additional activity information.

****
DerivedPromTypestring

The derived promotion type.

****
PromotionCodestring

The coupon 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": "",
        "OptionIds": {
          "OptionId": [
            0
          ]
        }
      }
    },
    "StandDiscountPrice": 0,
    "IsContractActivity": true,
    "StandPrice": 0,
    "Code": "\"\"\n",
    "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
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
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
  • On this page (1)
  • Debugging
  • Authorization information
  • Request parameters
  • Additional description of the Instances parameter
  • Sample request with the Instances parameter configured
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare