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

RenewLoadBalancer

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

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

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

调试

请求参数

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

PeriodUnit

String

Month

包年包月计费类型的时长单位。取值如下:

  • Month (默认值):按月计费
  • Year:按年计费

Period

Integer

1

包年包月计费类型的时长数量。

  • PeriodUnit配置为Month时,取值包括1~9,12,24和36。
  • PeriodUnit配置为Year时,取值范围为1~3。

说明

不传入该参数或该参数不传入数值时,默认为1。

返回参数

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

请求示例

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

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20210811152539010225146063030****",
        "Action": "RenewLoadBalancer",
        "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表示缺少的参数名称。

400InvalidPeriod.MalformedThe specified Period is malformed.指定的 Period 参数格式不合法。
400InvalidPeriodUnit.MalformedThe specified PeriodUnit is malformed.指定的 PeriodUnit 参数格式不合法。
400OrderError.PreOrderFailed to create a preorder.下单失败。
400OrderError.OrderPayFailed to create order and pay.下单支付失败。
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.指定的负载均衡不存在。
404InvalidLoadBalancerSpec.NotFoundThe specified LoadBalancerSpec does not exist.指定的负载均衡规格不存在。
412InvalidLoadBalancer.InvalidBillingTypeThe specified LoadBalancer is not in the correct BillingType for the request.指定的负载均衡所处计费类型无法响应该请求。