Kueri biaya yang dikeluarkan oleh operasi seperti pembuatan, peningkatan konfigurasi, atau perpanjangan instans ApsaraDB for Tair (kompatibel dengan Redis OSS).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:DescribePrice |
get |
*全部资源
|
None | None |
Parameter permintaan
|
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 | ID wilayah. |
| InstanceId | String | No | r-7xv4s7q131smyx**** | ID instans. Parameter ini wajib ditentukan ketika **OrderType** adalah **UPGRADE** atau **RENEW**. |
| InstanceClass | String | Yes | redis.master.small.default | Tipe instans untuk instans edisi classic. Untuk informasi lebih lanjut, lihat Panduan Pencarian Tipe Instans. |
| ShardClass | String | Yes | tair.rdb.2g | Tipe instans untuk instans edisi cloud-native. Untuk informasi lebih lanjut, lihat Panduan Pencarian Tipe Instans. Anda harus menentukan salah satu parameter ini atau **InstanceClass**. |
| IzNo | String | No | cn-hangzhou-b | ID zona. |
| NodeType | String | No | MASTER_SLAVE | Tipe node. Nilai valid:
|
| Period | Long | No | 1 | Durasi langganan dalam bulan. Nilai valid: 1–9, 12, 24, dan 36. |
| Quantity | String | No | 1 | Jumlah instans yang akan dibeli. Nilai valid: 1–30. Nilai default: 1. |
| VPCId | String | No | vpc-bp1nme44gek34slfc**** | ID VPC. |
| VSwitchId | String | No | vsw-bp1e7clcw529l773d**** | ID virtual switch. |
| AutoPay | String | No | true | Menentukan apakah akan mengaktifkan auto-payment. Nilai valid:
|
| InstanceName | String | No | test_123 | Nama instans. |
| ShardCount | String | No | 2 | Jumlah node shard. Nilai default: 1. Anda tidak perlu menentukan parameter ini saat mengkueri arsitektur standar atau arsitektur pemisahan baca/tulis. Parameter ini hanya berlaku untuk instans edisi cloud-native dengan arsitektur kluster dan memungkinkan Anda menyesuaikan jumlah shard. |
| ReadOnlyCount | Integer | No | 2 | Jumlah total node read-only. Parameter ini hanya berlaku untuk membuat instans edisi cloud-native dengan arsitektur pemisahan baca/tulis. |
| StorageType | String | No | essd_pl2 | Kelas penyimpanan untuk instans berbasis disk Tair ESSD. Nilai valid: essd_pl0, essd_pl1, essd_pl2, dan essd_pl3. Saat Anda menentukan parameter ini, Anda juga harus mengatur Capacity ke kapasitas disk kustom. Untuk informasi lebih lanjut, lihat Tipe Instans Berbasis Disk. |
| Capacity | Long | No | 512000 | Kapasitas disk untuk instans berbasis disk Tair ESSD. Satuan: MB. |
{
"RegionId": "cn-hangzhou",
"InstanceClass": "tair.rdb.with.proxy.2g",
"OrderType": "BUY",
"ChargeType": "PrePaid",
"Period": 1,
"ShardCount": 3
}
Contoh permintaan untuk mengkueri harga pembelian instans berbasis disk Tair ESSD dengan kelas penyimpanan kustom:
{
"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\"}]"
}
Contoh permintaan untuk mengkueri harga pembelian instans Tair edisi cloud-native dengan arsitektur pemisahan baca/tulis:
{
"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\"}]"
}
Contoh permintaan untuk mengkueri harga pembelian beberapa instans:
{
"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\"}]"
}
Contoh permintaan untuk mengkueri harga perpanjangan instans Tair edisi cloud-native dengan arsitektur kluster (dalam skenario ini, parameter **Instances** tidak diperlukan):
{
"RegionId": "cn-hangzhou",
"InstanceClass": "tair.rdb.with.proxy.1g",
"OrderType": "RENEW",
"ChargeType": "PrePaid",
"Period": 12,
"InstanceId": "r-d7****l3v0xmorw1xp",
"ShardCount": 3
}
Elemen respons
|
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 |
|
**** |
Contoh
Respons sukses
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": [
"[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
}
]
}
}
Kode kesalahan
|
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. | |
| 400 | AlreadyHadTemporaryBandwidth | This instance have already had temporary bandwidth, please modify instance spec first. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.