従量課金 Classic Load Balancer (CLB) インスタンスの課金方法を変更します。
操作説明
従量課金 CLB インスタンスの場合、課金方法は仕様ベース課金から LCUベース課金にのみ変更できます。LCUベース課金から仕様ベース課金への変更はできません。
この操作では、一度に 1 つのインスタンスの課金方法のみを変更できます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
slb:ModifyLoadBalancerInstanceChargeType |
update |
*LoadBalancer
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
CLB インスタンスのリージョン ID。 最新のリージョンリストを照会するには、DescribeRegions 操作を呼び出します。 |
cn-hangzhou |
| LoadBalancerId |
string |
必須 |
CLB インスタンスの ID。 |
lb-bp1b3jus5hpenznuu**** |
| InternetChargeType |
string |
任意 |
変更後のインターネットデータ転送の課金方法。 有効な値: paybytraffic。 説明
|
paybytraffic |
| InstanceChargeType |
string |
必須 |
変更後のインスタンスの課金方法。 有効な値: PayByCLCU。LCUベース課金のみがサポートされます。 |
PayByCLCU |
| LoadBalancerSpec |
string |
任意 |
CLB インスタンスの仕様。 このパラメーターを設定する必要はありません。従量課金 CLB インスタンスの場合、課金方法は仕様ベース課金から LCUベース課金にのみ変更できます。LCUベース課金から仕様ベース課金への変更はできません。 |
slb.s1.small |
| Bandwidth |
integer |
任意 |
帯域幅課金で課金されるインターネット向け CLB インスタンスの最大帯域幅。 このパラメーターを設定する必要はありません。LCUベース課金インスタンスのインターネットデータ転送の課金方法は、トラフィック課金のみをサポートします。 |
5 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
例
成功レスポンス
JSONJSON
{
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | OperationFailed.UnpaidBillsExist | The account has unpaid bills. Please pay your overdue bill first. | |
| 400 | Operation.NotAllowed | Operation Denied. Unfinished order exists. | |
| 400 | PAYFOR.ACCOUNT_MONEY_VALIDATE_ERROR | Your channel partner account does not have sufficient funds, please contact your channel partner to recharge the account. | |
| 400 | OperationDenied.PayByCLCU | The operation is not allowed because the instanceChargeType of loadbalancer is PayByCLCU. | |
| 400 | IllegalParam.InstanceChargeType | The parameter InstanceChargeType is illegal. | |
| 400 | IllegalParam.InternetChargeType | The parameter InternetChargeType is illegal. | |
| 400 | InvalidAction.RegionNotSupport | The region does not support this action. | |
| 400 | MissingParam.LoadBalancerSpec | The param LoadBalancerSpec is required. | |
| 400 | OperationDenied.PayBySpec | The operation is not allowed because the instanceChargeType of loadbalancer is PayBySpec. | |
| 400 | InvalidParameterBandwidth | The specified Bandwidth is invalid. | |
| 400 | InvalidParameter | The specified LoadBalancerSpec is invalid. | |
| 400 | Forbidden.LcuToSpec | User does not have permission modify InstanceChargeType to spec. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。