变更按量付费CLB实例的实例计费方式。
接口说明
按量付费实例中,仅支持按规格计费转按使用量计费,不支持按使用量计费转按规格计费。
目前,该接口不支持批量变更实例计费方式。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
slb:ModifyLoadBalancerInstanceChargeType |
update |
*LoadBalancer
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
传统型负载均衡实例的地域 ID。 您可以通过调用 DescribeRegions 接口查询地域 ID。 |
cn-hangzhou |
| LoadBalancerId |
string |
是 |
传统型负载均衡实例 ID。 |
lb-bp1b3jus5hpenznuu**** |
| InternetChargeType |
string |
否 |
变更后的公网计费方式。 仅取值 paybytraffic:按使用流量计费。 说明
|
paybytraffic |
| InstanceChargeType |
string |
是 |
变更后的实例计费方式。 仅取值 PayByCLCU:按使用量计费。 |
PayByCLCU |
| LoadBalancerSpec |
string |
否 |
传统型负载均衡实例的规格。 您无需设置该参数。目前仅支持按规格计费转按使用量计费,不支持按使用量计费转按规格计费。 |
slb.s1.small |
| Bandwidth |
integer |
否 |
按带宽计费的公网型实例的带宽峰值。 您无需设置该参数,按使用量计费实例的公网计费方式仅支持按使用流量计费。 |
5 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
示例
正常返回示例
JSON格式
{
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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. | 操作被拒绝,原因是为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. | 参数LoadBalancerSpec缺失。 |
| 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. | 用户不允许lcu 转规格 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。