Tair インスタンスの課金方法をサブスクリプションと従量課金の間で変更します。
操作説明
この操作を呼び出す前に、課金への影響と注意事項を必ずご確認ください。 詳細については、以下をご参照ください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
kvstore:TransformInstanceChargeType |
update |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| InstanceId |
string |
必須 |
インスタンス ID。 DescribeInstances 操作を呼び出してインスタンス ID を照会できます。 |
r-bp1zxszhcgatnx**** |
| Period |
integer |
任意 |
サブスクリプション期間 (月単位)。 有効な値:1~9、12、24、36。 説明
このパラメーターは、ChargeType パラメーターが PrePaid に設定されている場合にのみ使用可能で、必須です。 |
1 |
| AutoPay |
boolean |
任意 |
自動支払いを有効にするかどうかを指定します。 有効な値:
|
true |
| ChargeType |
string |
必須 |
変更先の課金方法。 有効な値:
|
PrePaid |
| AutoRenew |
string |
任意 |
インスタンスの自動更新を有効にするかどうかを指定します。 有効な値:
列挙値:
|
false |
| AutoRenewPeriod |
integer |
任意 |
自動更新期間 (月単位)。 有効な値:1、2、3、6、12。 説明
このパラメーターは、AutoRenew パラメーターが true に設定されている場合に必須です。 |
1 |
| CouponNo |
string |
任意 |
クーポン ID。 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーター。 |
||
| EndTime |
string |
インスタンスの有効期限。 説明
このパラメーターは、インスタンスの課金方法を従量課金からサブスクリプションに変更した場合にのみ返されます。 |
2021-05-13T00:00:00Z |
| RequestId |
string |
リクエスト ID。 |
82C791FB-8979-489E-853D-706D7743**** |
| OrderId |
string |
注文 ID。 |
20881824000**** |
例
成功レスポンス
JSONJSON
{
"EndTime": "2021-05-13T00:00:00Z",
"RequestId": "82C791FB-8979-489E-853D-706D7743****",
"OrderId": "20881824000****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter | Period is mandatory for this action. | |
| 400 | InvalidParam | Period is invalid | |
| 400 | ResourceNotAvailable | Resource you requested is not available for finance user. | |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 400 | Order.LatestOrderIsHanding | Latest order is handing, please retry later. | |
| 403 | RealNameAuthenticationError | Your account has not passed the real-name authentication yet. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。