文档

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

更新时间:

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

接口说明

说明
  • 按量付费实例中,仅支持按规格计费转按使用量计费,不支持按使用量计费转按规格计费。
  • 目前,该接口不支持批量变更实例计费方式。
  • 调试

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

    授权信息

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

    • 操作:是指具体的权限点。
    • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
    • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
      • 对于必选的资源类型,用背景高亮的方式表示。
      • 对于不支持资源级授权的操作,用全部资源表示。
    • 条件关键字:是指云产品自身定义的条件关键字。
    • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
    操作访问级别资源类型条件关键字关联操作
    slb:ModifyLoadBalancerInstanceChargeTypeWrite
    • LoadBalancer
      acs:slb:{#regionId}:{#accountId}:loadbalancer/{#loadbalancerId}

    请求参数

    名称类型必填描述示例值
    RegionIdstring

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

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

    cn-hangzhou
    LoadBalancerIdstring

    传统型负载均衡实例 ID。

    lb-bp1b3jus5hpenznuu****
    InternetChargeTypestring

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

    说明
  • InstanceChargeType 参数的值为 PayByCLCU 时,只支持按使用流量计费。
  • 如果公网计费方式从按固定带宽变更为按使用流量,则所有变配会在次日 00:00:00 生效。
  • paybytraffic
    InstanceChargeTypestring

    变更后的实例计费方式。 仅取值 PayByCLCU:按使用量计费。

    PayByCLCU
    LoadBalancerSpecstring

    传统型负载均衡实例的规格。

    您无需设置该参数。目前仅支持按规格计费转按使用量计费,不支持按使用量计费转按规格计费。

    slb.s1.small
    Bandwidthinteger

    按带宽计费的公网型实例的带宽峰值。

    您无需设置该参数,按使用量计费实例的公网计费方式仅支持按使用流量计费。

    5

    返回参数

    名称类型描述示例值
    object
    RequestIdstring

    请求 ID。

    365F4154-92F6-4AE4-92F8-7FF34B540710

    示例

    正常返回示例

    JSON格式

    {
      "RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710"
    }

    错误码

    HTTP status code错误码错误信息描述
    400OperationFailed.UnpaidBillsExistThe account has unpaid bills. Please pay your overdue bill first.操作失败,原因是当前账户下存在未支付账单。请先支付您的逾期账单。
    400Operation.NotAllowedOperation Denied. Unfinished order exists.操作被拒绝,原因是存在未完成的订单。
    400Operation.NotAllowedOperation Denied. Unfinished purchase exists.不允许该操作,存在未完成的购买订单。
    400Operation.NotAllowedOperation Denied. Prepay instance only permitted to modify internet bandwidth.操作被拒绝,原因是预付费实例只允许修改公网带宽。
    400Operation.NotAllowedOperation Denied. Prepay instance only permitted to increase internet bandwidth.操作被拒绝,原因是预付费实例只支持升配公网带宽。
    400Operation.NotAllowedOperation Denied. The Purchase status of the instance is not valid.操作被拒绝,原因是负载均衡实例下单参数非法。
    400PAYFOR.ACCOUNT_MONEY_VALIDATE_ERRORYour channel partner account does not have sufficient funds, please contact your channel partner to recharge the account.-
    400OperationDenied.PayByCLCUThe operation is not allowed because the instanceChargeType of loadbalancer is PayByCLCU.操作被拒绝,原因是为PayByCLCU类型实例。
    400IllegalParam.InstanceChargeTypeThe parameter InstanceChargeType is illegal.指定的InstanceChargeType非法。
    400IllegalParam.InternetChargeTypeThe parameter InternetChargeType is illegal.指定的InternetChargeType非法。
    400InvalidAction.RegionNotSupportThe region does not support this action.当前地域不支持指定功能。
    400MissingParam.LoadBalancerSpecThe param LoadBalancerSpec is required.参数LoadBalancerSpec缺失。
    400OperationDenied.PayBySpecThe operation is not allowed because the instanceChargeType of loadbalancer is PayBySpec.操作被拒绝,原因是为PayBySpec类型实例。
    400InvalidParameterBandwidthThe specified Bandwidth is invalid.-
    400InvalidParameterThe specified LoadBalancerSpec is invalid.参数LoadBalancerSpec无效。请检查该参数是否正确。
    400Forbidden.LcuToSpecUser does not have permission modify InstanceChargeType to spec.用户不允许lcu 转规格

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

    • 本页导读 (1)
    文档反馈