Queries the fees for creating, upgrading, or renewing ApsaraDB for Tair (Redis OSS-compatible) instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribePrice |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
|
cn-hangzhou |
| Capacity |
integer |
No |
|
1024 |
| InstanceClass |
string |
No |
|
redis.master.small.default |
| OrderType |
string |
Yes |
|
BUY |
| ZoneId |
string |
No |
|
cn-hangzhou-e |
| SecondaryZoneId |
string |
No |
|
cn-hangzhou-g |
| ChargeType |
string |
No |
|
PostPaid |
| NodeType |
string |
No |
|
MASTER_SLAVE |
| Period |
integer |
No |
|
3 |
| Quantity |
integer |
No |
|
1 |
| InstanceId |
string |
No |
|
r-bp1zxszhcgatnx**** |
| Instances |
string |
No |
|
[{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-b","ShardClass": "tair.scm.with.proxy.standard.2m.8d","ShardCount": "3","Period": "1","Quantity": "1"}] |
| BusinessInfo |
string |
No |
|
000000000000 |
| CouponNo |
string |
No |
|
youhuiquan_promotion_option_id_for_blank |
| ForceUpgrade |
boolean |
No |
|
true |
| OrderParamOut |
string |
No |
|
true |
| ShardCount |
integer |
No |
|
2 |
| EngineVersion |
string |
No |
|
5.0 |
| Name | Type | Required | Example Value | Description |
|---|---|---|---|---|
| RegionId | String | Yes | cn-hangzhou | The region ID. |
| InstanceId | String | No | r-7xv4s7q131smyx**** | The instance ID. This parameter is required when **OrderType** is **UPGRADE** or **RENEW**. |
| InstanceClass | String | Yes | redis.master.small.default | The instance type for classic edition instances. For more information, see Instance Type Lookup Guide. |
| ShardClass | String | Yes | tair.rdb.2g | The instance type for cloud-native edition instances. For more information, see Instance Type Lookup Guide.You must specify either this parameter or **InstanceClass**. |
| IzNo | String | No | cn-hangzhou-b | The zone ID. |
| NodeType | String | No | MASTER_SLAVE | The node type. Valid values:
|
| Period | Long | No | 1 | The subscription duration in months. Valid values: 1–9, 12, 24, and 36. |
| Quantity | String | No | 1 | The number of instances to purchase. Valid values: 1–30. Default value: 1. |
| VPCId | String | No | vpc-bp1nme44gek34slfc**** | The VPC ID. |
| VSwitchId | String | No | vsw-bp1e7clcw529l773d**** | The virtual switch ID. |
| AutoPay | String | No | true | Specifies whether to enable auto-payment. Valid values:
|
| InstanceName | String | No | test_123 | The instance name. |
| ShardCount | String | No | 2 | The number of shard nodes. Default value: 1. You do not need to specify this parameter when querying standard architecture or read/write splitting architecture instances. This parameter applies only to cloud-native edition cluster architecture instances and allows you to customize the number of shards. |
| ReadOnlyCount | Integer | No | 2 | The total number of read-only nodes. This parameter applies only to creating cloud-native edition read/write splitting architecture instances. |
| StorageType | String | No | essd_pl2 | The storage class for Tair ESSD disk-based instances. Valid values: essd_pl0, essd_pl1, essd_pl2, and essd_pl3. When you specify this parameter, you must also set Capacity to a custom disk capacity. For more information, see Disk-Based Instance Types. |
| Capacity | Long | No | 512000 | The disk capacity for Tair ESSD disk-based instances. Unit: MB. |
{
"RegionId": "cn-hangzhou",
"InstanceClass": "tair.rdb.with.proxy.2g",
"OrderType": "BUY",
"ChargeType": "PrePaid",
"Period": 1,
"ShardCount": 3
} Sample request to query the price for purchasing a new Tair ESSD disk-based instance with a custom storage class:
{
"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 to query the price for purchasing a new Tair cloud-native edition read/write splitting architecture 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 to query the price for purchasing 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 to query the renewal price for a Tair cloud-native edition cluster architecture instance (in this scenario, the **Instances** parameter is not required):
{
"RegionId": "cn-hangzhou",
"InstanceClass": "tair.rdb.with.proxy.1g",
"OrderType": "RENEW",
"ChargeType": "PrePaid",
"Period": 12,
"InstanceId": "r-d7****l3v0xmorw1xp",
"ShardCount": 3
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| OrderParams |
string |
|
String |
| RequestId |
string |
|
3A40BE4E-1890-4972-889C-FEFA37663635 |
| Order |
object |
|
|
| OriginalAmount |
string |
|
0.21 |
| HandlingFeeAmount |
string |
|
0.1 |
| Currency |
string |
|
CNY |
| DiscountAmount |
string |
|
0.21 |
| TradeAmount |
string |
|
10 |
| Coupons |
object |
||
| Coupon |
array<object> |
|
|
|
object |
|
||
| IsSelected |
string |
|
true |
| CouponNo |
string |
|
youhuiquan_promotion_option_id_for_blank |
| Name |
string |
|
test |
| Description |
string |
|
coupondemo |
| RuleIds |
object |
||
| RuleId |
array |
|
|
|
string |
|
[202] |
|
| ShowDiscountInfo |
boolean |
|
|
| DepreciateInfo |
object |
|
|
| ListPrice |
integer |
|
1* |
| OriginalStandAmount |
integer |
|
12* |
| CheapStandAmount |
integer |
|
9* |
| CheapRate |
integer |
|
30% |
| Differential |
integer |
|
** |
| DifferentialName |
string |
|
XXXXX |
| MonthPrice |
integer |
|
** |
| IsContractActivity |
boolean |
|
false |
| IsShow |
boolean |
|
true |
| ContractActivity |
object |
|
|
| FinalPromFee |
number |
|
|
| FinalFee |
number |
|
|
| ProdFee |
number |
|
**** |
| ActivityId |
integer |
|
**** |
| OptionCode |
string |
|
**** |
| ActivityName |
string |
|
合同优惠_整单_xxx折 |
| OptionIds |
object |
||
| OptionId |
array |
|
|
|
integer |
|
***** |
|
| StandDiscountPrice |
integer |
|
**** |
| IsContractActivity |
boolean |
|
false |
| StandPrice |
integer |
|
0 |
| Code |
string |
|
"" |
| Message |
string |
|
"" |
| Rules |
object |
||
| Rule |
array<object> |
|
|
|
object |
|||
| RuleDescId |
integer |
|
1111111111 |
| Title |
string |
|
test |
| Name |
string |
|
test |
| SubOrders |
object |
||
| SubOrder |
array<object> |
|
|
|
array<object> |
|||
| OriginalAmount |
string |
|
0.21 |
| InstanceId |
string |
|
r-bp1xxxxxxxxxxxxx |
| DiscountAmount |
string |
|
0.21 |
| TradeAmount |
string |
|
10 |
| RuleIds |
object |
||
| RuleId |
array |
|
|
|
string |
|
RuleId: 1111111111 |
|
| OptionalPromotions |
object |
||
| OptionalPromotion |
array<object> |
|
|
|
array<object> |
|||
| Selected |
boolean |
|
false |
| CouponNo |
string |
|
default |
| Name |
string |
|
**** |
| Description |
string |
|
**** |
| Show |
boolean |
|
False |
| ActivityExtInfo |
object |
|
**** |
| OptionCode |
string |
|
**** |
| PromotionName |
string |
|
**** |
| PromotionOptionNo |
string |
|
youhuiquan_promotion_option_id_for_blank |
| CanPromFee |
string |
|
**** |
| DepreciateInfo |
object |
|
|
| ListPrice |
integer |
|
**** |
| OriginalStandAmount |
integer |
|
**** |
| CheapStandAmount |
integer |
|
**** |
| CheapRate |
integer |
|
**** |
| Differential |
integer |
|
**** |
| DifferentialName |
string |
|
**** |
| MonthPrice |
integer |
|
**** |
| IsContractActivity |
boolean |
|
false |
| ContractActivity |
object |
|
|
| FinalPromFee |
number |
|
**** |
| FinalFee |
number |
|
**** |
| ProdFee |
number |
|
**** |
| ActivityId |
integer |
|
1412025702634847 |
| OptionCode |
string |
|
**** |
| ActivityName |
string |
|
**** |
| OptionIds |
object |
||
| OptionId |
array |
|
|
|
integer |
|
|
|
| StartTime |
string |
|
2024-11-18T00:00:00Z |
| StandDiscountPrice |
integer |
|
**** |
| IsContractActivity |
boolean |
|
**** |
| StandPrice |
integer |
|
**** |
| ModuleInstance |
object |
||
| ModuleInstance |
array<object> |
|
|
|
array<object> |
|
||
| ModuleCode |
string |
|
**** |
| ModuleId |
string |
|
**** |
| StandPrice |
number |
|
**** |
| PricingModule |
boolean |
|
**** |
| ModuleName |
string |
|
**** |
| DiscountFee |
number |
|
**** |
| TotalProductFee |
number |
|
0.0 |
| NeedOrderPay |
boolean |
|
true |
| PayFee |
number |
|
0.0 |
| ModuleAttrs |
object |
||
| moduleAttr |
array<object> |
|
|
|
object |
|
||
| Type |
integer |
|
**** |
| Value |
string |
|
**** |
| Code |
string |
|
**** |
| Name |
string |
|
**** |
| ContractActivity |
boolean |
|
**** |
| DepreciateInfo |
object |
|
|
| ListPrice |
number |
|
**** |
| OriginalStandAmount |
number |
|
**** |
| CheapStandAmount |
number |
|
**** |
| CheapRate |
number |
|
****** |
| Differential |
number |
|
**** |
| DifferentialName |
string |
|
**** |
| MonthPrice |
number |
|
**** |
| IsContractActivity |
boolean |
|
**** |
| IsShow |
boolean |
|
true |
| StartTime |
string |
|
2024-09-23T14:00:01Z |
| PromDetailList |
object |
||
| PromDetail |
array<object> |
|
|
|
array<object> |
|
||
| PromotionName |
string |
|
**** |
| PromotionId |
integer |
|
**** |
| FinalPromFee |
number |
|
**** |
| OptionCode |
string |
|
**** |
| PromType |
string |
|
**** |
| ActivityExtInfo |
object |
|
**** |
| DerivedPromType |
string |
|
**** |
| PromotionCode |
string |
|
**** |
| ContractActivity |
boolean |
|
**** |
Examples
Success response
JSON format
{
"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": [
"[202]"
]
},
"ShowDiscountInfo": false,
"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": "合同优惠_整单_xxx折",
"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 code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | Period is mandatory for this action. | |
| 400 | InvalidInstances.Format | The Specified parameter Instances is not valid. | The Instances parameter passed in is invalid |
| 400 | AlreadyHadTemporaryBandwidth | This instance have already had temporary bandwidth, please modify instance spec first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.