ModifyLoadBalancerInstanceChargeType - 变更按量付费CLB实例的实例计费方式

更新时间:
复制为 MD 格式

变更按量付费CLB实例的实例计费方式。

接口说明

说明
  • 按量付费实例中,仅支持按规格计费转按使用量计费,不支持按使用量计费转按规格计费。

  • 目前,该接口不支持批量变更实例计费方式。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

slb:ModifyLoadBalancerInstanceChargeType

update

*LoadBalancer

acs:slb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}

请求参数

名称

类型

必填

描述

示例值

RegionId

string

传统型负载均衡实例的地域 ID。

您可以通过调用 DescribeRegions 接口查询地域 ID。

cn-hangzhou

LoadBalancerId

string

传统型负载均衡实例 ID。

lb-bp1b3jus5hpenznuu****

InternetChargeType

string

变更后的公网计费方式。 仅取值 paybytraffic:按使用流量计费。

说明
  • InstanceChargeType 参数的值为 PayByCLCU 时,只支持按使用流量计费。

  • 如果公网计费方式从按固定带宽变更为按使用流量,则所有变配会在次日 00:00:00 生效。

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 转规格

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情