ApsaraDB for Tair(Redis OSS互換)インスタンスの作成、構成変更、更新などの操作にかかる料金を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
kvstore:DescribePrice |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| 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**** | vSwitch 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 |
|
**** |
例
成功レスポンス
JSONJSON
{
"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
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。