最近更新时间:2023.11.16 15:51:42
首次发布时间:2022.03.01 08:57:47
调用 ConvertLoadBalancerBillingType 接口,转换负载均衡实例的计费类型。
该接口支持以下计费转换:
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ConvertLoadBalancerBillingType | 要执行的操作,取值为ConvertLoadBalancerBillingType。 |
Version | String | 是 | 2020-04-01 | API版本信息,当前版本为:2020-04-01。 |
LoadBalancerId | String | 是 | clb-bp1b6c719dfa08ex**** | 负载均衡实例ID。您可以调用DescribeLoadBalancers接口获取负载均衡实例ID。 |
LoadBalancerBillingType | Integer | 是 | 1 | 负载均衡实例的计费类型。取值如下:
|
LoadBalancerSpec | String | 否 | small_1 | 负载均衡实例的规格,不同规格提供的转发能力不同,更多信息请参见产品类型与规格。取值如下:
说明 参数 |
PeriodUnit | String | 否 | Month | 包年包月计费类型的时长单位。取值如下:
|
Period | Integer | 否 | 1 | 包年包月计费类型的时长数量。
说明 不传入该参数或该参数不传入数值时,默认为1。 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 20210811152539010225146063030**** | 请求ID。 |
OrderId | String | Order705261343570982**** | 订单ID。 |
GET /?Action=ConvertLoadBalancerBillingType&Version=2020-04-01&LoadBalancerId=clb-bp1b6c719dfa08ex****&LoadBalancerBillingType=1 HTTP/1.1 Host: open.volcengineapi.com Region: cn-beijing Service: clb
{ "ResponseMetadata": { "RequestId": "20210811152539010225146063030****", "Action": "ConvertLoadBalancerBillingType", "Version": "2020-04-01", "Service": "clb", "Region": "cn-beijing" }, "Result": { "RequestId": "20210811152539010225146063030****", "OrderId": "Order705261343570982****" } }
此处仅展示当前API的错误码,更多错误码请参见公共错误码。
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表示缺少的参数名称。 |
400 | InvalidLoadBalancerBillingType.Malformed | The specified LoadBalancerBillingType is malformed. | 指定的 LoadBalancerBillingType 参数格式不合法。 |
400 | InvalidPeriod.Malformed | The specified Period is malformed. | 指定的 Period 参数格式不合法。 |
400 | InvalidPeriodUnit.Malformed | The specified PeriodUnit is malformed. | 指定的 PeriodUnit 参数格式不合法。 |
400 | InvalidBillingTypeConvert.Malformed | The specified billing type is malformed. EIP which is already in BandwidthPackage can't be converted to 1. | 指定的参数BillingType不合法。指定的负载均衡关联的公网IP已加入共享带宽包,不允许转换为包年包月计费类型。 |
400 | OrderError.PreOrder | Failed to create a preorder. | 下单失败。 |
400 | OrderError.OrderPay | Failed to create order and pay. | 下单支付失败。 |
400 | UnsupportedOperation.AccountArrears | The request on the specified instance is denied due to the account in arrears status. | 因账户处于欠费状态,对于该实例的操作请求被拒绝。 |
400 | InvalidBillingTypeConvert.Malformed | The specified billing type is malformed. EIP which is already in BandwidthPackage can't be converted to 1. | 共享带宽里的EIP,其计费方式不能被转换成包年包月。 |
400 | InvalidBillingTypeConvert.Malformed | The specified billing type convert is malformed. AntiDDoS enhanced eip billing type only support converting between 2 and 3. | 指定的计费类型不支持。增强防护EIP只支持按带宽上限计费和按流量计费类型之间互相转换。 |
400 | InvalidLoadBalancerSpec.Malformed | The specified LoadBalancerSpec is malformed. | 指定的 LoadBalancerSpec 参数格式不合法。 |
400 | InvalidLoadBalancer.InvalidStatus | The specified LoadBalancer is not in the correct status for the request. | 指定的负载均衡所处状态无法响应该请求。 |
400 | InvalidLoadBalancerSpec.ListenerBandwidthMismatch | The total bandwidth of all listeners exceeds the upper limit of the specified spec. | 实例内监听器指定带宽总和超过指定的负载均衡规格上限。 |
400 | InvalidLoadBalancer.UnSupportAction | The specified LoadBalancer does not support this action. | 指定的负载均衡不支持当前操作。 |
403 | InvalidResourceType.ServcieManaged | The specified ResourceType is managed by a service. | 指定的资源是服务托管资源。 |
404 | InvalidLoadBalancer.NotFound | The specified LoadBalancer does not exist. | 指定的负载均衡不存在。 |
404 | InvalidExclusiveCluster.NotFound | The specified ExclusiveCluster 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. | 指定的负载均衡所处计费类型无法响应该请求。 |