查詢建立、升級配置或續約雲資料庫 Tair(相容 Redis)執行個體等操作產生的費用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
kvstore:DescribePrice |
get |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
|
cn-hangzhou |
| Capacity |
integer |
否 |
|
1024 |
| InstanceClass |
string |
否 |
|
redis.master.small.default |
| OrderType |
string |
是 |
|
BUY |
| ZoneId |
string |
否 |
|
cn-hangzhou-e |
| SecondaryZoneId |
string |
否 |
|
cn-hangzhou-g |
| ChargeType |
string |
否 |
|
PostPaid |
| NodeType |
string |
否 |
|
MASTER_SLAVE |
| Period |
integer |
否 |
|
3 |
| Quantity |
integer |
否 |
|
1 |
| InstanceId |
string |
否 |
|
r-bp1zxszhcgatnx**** |
| Instances |
string |
否 |
|
[{"RegionId": "cn-hangzhou","ZoneId": "cn-hangzhou-b","ShardClass": "tair.scm.with.proxy.standard.2m.8d","ShardCount": "3","Period": "1","Quantity": "1"}] |
| BusinessInfo |
string |
否 |
|
000000000000 |
| CouponNo |
string |
否 |
|
youhuiquan_promotion_option_id_for_blank |
| ForceUpgrade |
boolean |
否 |
|
true |
| OrderParamOut |
string |
否 |
|
true |
| ShardCount |
integer |
否 |
|
2 |
| EngineVersion |
string |
否 |
|
5.0 |
| 名稱 | 類型 | 是否必選 | 樣本值 | 描述 |
|---|---|---|---|---|
| RegionId | String | 是 | cn-hangzhou | 地區 ID。 |
| InstanceId | String | 否 | r-7xv4s7q131smyx**** | 執行個體ID,當OrderType為UPGRADE或RENEW時必傳。 |
| InstanceClass | String | 是 | redis.master.small.default | 經典版執行個體的執行個體規格,請參見規格查詢導航。 |
| ShardClass | String | 是 | tair.rdb.2g | 雲原生版執行個體的執行個體規格,請參見規格查詢導航。本參數和 InstanceClass 兩者中必須傳入一項。 |
| IzNo | String | 否 | cn-hangzhou-b | 可用性區域ID。 |
| NodeType | String | 否 | MASTER_SLAVE | 節點類型,取值:
|
| Period | Long | 否 | 1 | 訂用帳戶時間長度,單位為月。取值範圍:1~9、12、24、36。 |
| Quantity | String | 否 | 1 | 購買執行個體的數量,取值範圍:1~30。預設值:1。 |
| VPCId | String | 否 | vpc-bp1nme44gek34slfc**** | VPC ID。 |
| VSwitchId | String | 否 | vsw-bp1e7clcw529l773d**** | 虛擬交換器ID。 |
| AutoPay | String | 否 | true | 是否自動付款,取值:
|
| InstanceName | String | 否 | test_123 | 執行個體名稱。 |
| ShardCount | String | 否 | 2 | 分區節點數,預設為1,查詢標準架構、讀寫分離架構執行個體時無需傳入該參數。本參數僅適用於查詢雲原生版叢集架構執行個體,您可以通過該參數實現自訂分區數量。 |
| ReadOnlyCount | Integer | 否 | 2 | 總唯讀節點數量,本參數僅適用於建立雲原生版讀寫分離架構執行個體。 |
| StorageType | String | 否 | essd_pl2 | Tair ESSD磁碟型的儲存類型,取值為essd_pl0、essd_pl1、essd_pl2和essd_pl3,在指定本參數時,您還需同時指定Capacity為自訂磁碟容量。更多資訊請參見磁碟型執行個體規格。 |
| Capacity | Long | 否 | 512000 | Tair ESSD磁碟型的磁碟容量,單位:MB。 |
{
"RegionId": "cn-hangzhou",
"InstanceClass": "tair.rdb.with.proxy.2g",
"OrderType": "BUY",
"ChargeType": "PrePaid",
"Period": 1,
"ShardCount": 3
}
查詢新購Tair ESSD磁碟型自訂儲存類型的樣本:
{
"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"}]",
}
查詢新購Tair雲原生版讀寫分離架構的樣本:
{
"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"}]"
}
查詢新購多個執行個體的請求樣本:
{
"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"}]"
}
查詢續約Tair雲原生版叢集架構的樣本(該情境無需傳入**Instances**參數):
{
"RegionId": "cn-hangzhou",
"InstanceClass": "tair.rdb.with.proxy.1g",
"OrderType": "RENEW",
"ChargeType": "PrePaid",
"Period": 12,
"InstanceId": "r-d7****l3v0xmorw1xp",
"ShardCount": 3
}
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
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 |
|
**** |
樣本
正常返回樣本
JSON格式
{
"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": 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": "合約優惠_整單_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
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | Period is mandatory for this action. | |
| 400 | InvalidInstances.Format | The Specified parameter Instances is not valid. | 傳入的Instances參數是無效的 |
| 400 | AlreadyHadTemporaryBandwidth | This instance have already had temporary bandwidth, please modify instance spec first. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。