You need to enable JavaScript to run this app.
导航

SetLoadBalancerRenewal

最近更新时间2024.01.12 10:21:39

首次发布时间2022.03.01 08:57:47

调用SetLoadBalancerRenewal接口,设置包年包月类型负载均衡实例的续费类型。

调试

请求参数

名称类型是否必选示例值
描述
ActionStringSetLoadBalancerRenewal要执行的操作,取值为SetLoadBalancerRenewal。
VersionString2020-04-01API版本信息,当前版本为:2020-04-01。
LoadBalancerIdStringclb-bp1b6c719dfa08ex****负载均衡实例ID。您可以调用DescribeLoadBalancers接口获取负载均衡实例ID。

RenewType

Integer

2

负载均衡实例的续费类型。取值如下:

  • 1:手动续费(默认值)
  • 2:自动续费

RenewPeriodTimes

Integer

1

单次自动续费的时长,单位为月。
取值包括1~3,6和12,默认值为1。

说明

RenewType配置为2时生效。

RemainRenewTimes

Integer

-1

自动续费的次数。
取值包括-1和1~100,默认值为-1,表示自动续费无限次。

说明

RenewType配置为2时生效。

返回参数

名称类型示例值
描述
RequestIdString20210811152539010225146063030****请求ID。

请求示例

GET /?Action=SetLoadBalancerRenewal&Version=2020-04-01&LoadBalancerId=clb-bp1b6c719dfa08ex****&RenewType=2 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: clb

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20210811152539010225146063030****",
        "Action": "SetLoadBalancerRenewal",
        "Version": "2020-04-01",
        "Service": "clb",
        "Region": "cn-beijing"
    }, 
    "Result": {
        "RequestId": "20210811152539010225146063030****"
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

HttpCode错误码错误信息描述

400

MissingParameter

The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'XXX'.

该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如XXX

说明

其中,XXX表示缺少的参数名称。

400InvalidRemainRenewTimes.MalformedThe specified RemainRenewTimes is malformed.指定的 RemainRenewTimes 参数格式不合法。
400InvalidRenewPeriodTimes.MalformedThe specified RenewPeriodTimes is malformed.指定的 RenewPeriodTimes 参数格式不合法。
400InvalidRenewType.MalformedThe specified RenewType is malformed.指定的 RenewType 参数格式不合法。
400InvalidLoadBalancer.InvalidStatusThe specified LoadBalancer is not in the correct status for the request.指定的负载均衡所处状态无法响应该请求。
400UnsupportedOperation.AccountArrearsThe request on the specified instance is denied due to the account in arrears status.因账户处于欠费状态,对于该实例的操作请求被拒绝。
400InvalidLoadBalancer.UnSupportActionThe specified LoadBalancer does not support this action.指定的负载均衡不支持当前操作。
403InvalidResourceType.ServcieManagedThe specified ResourceType is managed by a service.指定的资源是服务托管资源。
404InvalidLoadBalancer.NotFoundThe specified LoadBalancer does not exist.指定的负载均衡不存在。
412InvalidLoadBalancer.InvalidBillingTypeThe specified LoadBalancer is not in the correct BillingType for the request.指定的负载均衡所处计费类型无法响应该请求。