You need to enable JavaScript to run this app.
文档中心
负载均衡

负载均衡

复制全文
下载 pdf
CLB实例
ConvertLoadBalancerBillingType - 转换负载均衡计费类型
复制全文
下载 pdf
ConvertLoadBalancerBillingType - 转换负载均衡计费类型
调用 ConvertLoadBalancerBillingType 接口,转换CLB实例的计费方式。​
使用说明​
该接口支持以下计费转换:​
  • 按量计费-按规格计费与包年包月之间的相互转换。​
  • 按量计费-按规格计费与按量计费-按使用量计费之间的相互转换。​
说明​
包年包月计费类型不支持直接转换为按量计费-按使用量计费。如需转换,请先转换为按量计费-按规格计费,再转换为按量计费-按使用量计费。​
公网CLB实例关联的公网IP为增强防护类型或已加入共享带宽包时,计费类型不支持转换为包年包月。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
Action String 必选 示例值:ConvertLoadBalancerBillingType​
要执行的操作,取值:ConvertLoadBalancerBillingType。​
​
Version String 必选 示例值:2020-04-01​
API的版本信息,当前版本为 2020-04-01。​
​
LoadBalancerId String 必选 示例值:clb-bp1b6c719dfa08ex****​
CLB实例ID。​
您可以调用DescribeLoadBalancers接口,查询CLB实例ID。​
​
LoadBalancerBillingType Integer 必选 示例值:1​
CLB实例的计费方式。取值如下:​
  • 1:包年包月​
  • 2:按量计费-按规格计费​
  • 3:按量计费-按使用量计费​
说明​
按使用量计费正在邀测中,如需试用,请联系客户经理。​
​
LoadBalancerSpec String 可选 示例值:small_1​
CLB实例的规格,不同规格提供的转发能力不同,更多信息请参见产品类型与规格。取值如下:​
  • small_1:小型I​
  • small_2:小型II​
  • medium_1:中型I​
  • medium_2:中型II​
  • large_1:大型I​
  • large_2:大型II​
说明​
参数LoadBalancerBillingType设置为2,且CLB实例原计费方式为按量计费-按使用量计费时,该参数为必填。​
​
PeriodUnit String 可选 示例值:Month​
包年包月计费方式的时长单位。取值如下:​
  • Month (默认值):按月计费​
  • Year:按年计费​
​
Period Integer 可选 示例值:1​
包年包月计费方式的时长数量。​
  • 当PeriodUnit配置为Month时,取值包括1~9,12,24和36。​
  • 当PeriodUnit配置为Year时,取值范围为1~3。​
说明​
不传入该参数或该参数不传入数值时,默认为1。​
​
AutoRenewal Boolean 可选 示例值:true​
是否开通自动续费。​
  • true:是。默认自动续费为1个月。​
  • false(默认值):否。​
​
​
​
返回参数​
RequestId String 示例值:20210811152539010225146063030****​
请求ID。​
​
OrderId String 示例值:Order705261343570982****​
订单ID。​
​
​
​
请求示例​
​
GET /?Action=ConvertLoadBalancerBillingType&Version=2020-04-01&LoadBalancerId=clb-bp1b6c719dfa08ex****&LoadBalancerBillingType=1&LoadBalancerSpec=small_1&PeriodUnit=Month&Period=1&AutoRenewal=true​
Host: clb.cn-beijing.volcengineapi.com​
X-Date: 20251121T094038Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251121/cn-beijing/clb/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "ConvertLoadBalancerBillingType",​
"Version": "2020-04-01",​
"Service": "clb",​
"Region": "cn-beijing"​
},​
"Result": {​
"OrderId": "Order705261343570982****",​
"RequestId": "20210811152539010225146063030****"​
}​
}​
​
错误码​
此处仅展示当前API的错误码,更多错误码请参见公共错误码。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidAutoRenewal.Malformed​
The specified AutoRenewal is malformed.​
指定的 AutoRenewal 参数格式不合法。​
400​
InvalidLoadBalancer.InvalidStatus​
The specified LoadBalancer is not in the correct status for the request.​
指定的负载均衡所处状态无法响应该请求。​
400​
InvalidLoadBalancer.UnSupportAction​
The specified LoadBalancer does not support this action.​
指定的负载均衡不支持当前操作。​
400​
InvalidLoadBalancerBillingType.Malformed​
The specified LoadBalancerBillingType is malformed.​
指定的 LoadBalancerBillingType 参数格式不合法。​
400​
InvalidLoadBalancerSpec.ListenerBandwidthMismatch​
The total bandwidth of all listeners exceeds the upper limit of the specified spec.​
实例内监听器指定带宽总和超过指定的负载均衡规格上限。​
400​
InvalidLoadBalancerSpec.Malformed​
The specified LoadBalancerSpec is malformed.​
指定的 LoadBalancerSpec 参数格式不合法。​
400​
InvalidPeriod.Malformed​
The specified Period is malformed.​
指定的 Period 参数格式不合法。​
400​
InvalidPeriodUnit.Malformed​
The specified PeriodUnit is malformed.​
指定的 PeriodUnit 参数格式不合法。​
400​
InvalidQuotaCode.Malformed​
The specified QuotaCode is malformed.​
指定的 QuotaCode 参数格式不合法。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'LoadBalancerSpec'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如 LoadBalancerSpec。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the ''.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如 。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'LoadBalancerBillingType'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如 LoadBalancerBillingType。​
400​
MissingParameter​
The request is missing a required parameter. Ensure that you have supplied all the required parameters for the request; for example, the 'LoadBalancerId'.​
该请求缺少必要参数。请确保发起请求已提供全部必要参数,比如 LoadBalancerId。​
400​
OrderError.OrderPay​
Failed to create order and pay.​
下单支付失败。​
400​
OrderError.PreOrder​
Failed to create a preorder.​
下单失败。​
400​
UnSupportedOperation.SpecUnchanged​
The request on the specified LoadBalancer is denied due to the LoadBalancerSpec has not changed.​
负载均衡规格未改变。​
400​
UnsupportedOperation.AccountArrears​
The request on the specified instance is denied due to the account in arrears status.​
因账户处于欠费状态,对于该实例的操作请求被拒绝。​
403​
Forbidden​
You are not authorized to perform operations on the specified service.​
无权限对指定服务进行操作。​
403​
InvalidResourceType.ServcieManaged​
The specified ResourceType is managed by a service.​
指定的资源是服务托管资源。​
404​
InvalidExclusiveCluster.NotFound​
The specified ExclusiveCluster does not exist.​
指定的独占集群不存在。​
404​
InvalidLoadBalancer.NotFound​
The specified LoadBalancer does not exist.​
指定的负载均衡不存在。​
412​
InvalidExclusiveCluster.Expired​
The specified ExclusiveCluster has expired.​
指定的独占集群已过期。​
412​
InvalidExclusiveCluster.UnPurchased​
The specified ExclusiveCluster is not purchased.​
指定的独占集群未购买。​
412​
InvalidLoadBalancer.Expired​
The specified LoadBalancer has expired.​
指定的负载均衡已过期。​
412​
InvalidLoadBalancer.InvalidBillingType​
The specified LoadBalancer is not in the correct BillingType for the request.​
指定的负载均衡所处计费类型无法响应该请求。​
500​
InternalError​
An internal error has occurred.​
发生内部错误。​
​
​
最近更新时间:2026.02.13 10:33:00
这个页面对您有帮助吗?
有用
有用
无用
无用