Modifies the billing method of an Internet-facing Classic Load Balancer (CLB) instance.
- Change the bandwidth limit of a pay-by-bandwidth CLB instance. The new bandwidth limit immediately takes effect.
- After you change the billing method of a CLB instance from pay-by-data-transfer to pay-by-bandwidth, the new billing method takes effect at 00:00 on the following day.
- After you change the billing method of a CLB instance from pay-by-bandwidth to pay-by-data-transfer, the new billing method takes effect at 00:00 on the following day.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyLoadBalancerInternetSpec |
The operation that you want to perform. Set the value to ModifyLoadBalancerInternetSpec. |
LoadBalancerId | String | Yes | lb-bp1b6c719dfa08ex****** |
The ID of the CLB instance. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the CLB instance is deployed. You can query the region ID from the Regions and zones list or by calling the DescribeRegions operation. |
InternetChargeType | String | No | paybytraffic |
The metering method of the Internet-facing CLB instance. Valid values:
Note If you do not set this parameter, the billing method of the CLB instance remains unchanged.
|
Bandwidth | Integer | No | 10 |
The bandwidth limit of the Internet-facing CLB instance that is billed on a pay-by-bandwidth basis. Valid values: 1 to 5000. Unit: Mbit/s. The maximum bandwidth varies by region. Note You do not need to set this parameter for pay-by-data-transfer CLB instances. The
value of InternetChargeType is paybytraffic.
|
AutoPay | Boolean | No | false |
Specifies whether to automatically pay for the subscription Internet-facing CLB instance. Valid values: true and false (default). |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
OrderId | Long | 201429619788910 |
The order ID of the subscription CLB instance. |
RequestId | String | CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyLoadBalancerInternetSpec
&LoadBalancerId=lb-bp1b6c719dfa08ex******
&<Common request parameters>
Successful response examples
XML
format
<ModifyLoadBalancerInternetSpecResponse>
<RequestId>E4DD2D80-8DC0-4A2E-BFBA-BE983A31AFED</RequestId>
</ModifyLoadBalancerInternetSpecResponse>
JSON
format
{
"RequestId": "E4DD2D80-8DC0-4A2E-BFBA-BE983A31AFED"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | Operation.NotAllowed | Operation Denied. Unfinished purchase exists. | The error message returned because a pending order exists. |
For a list of error codes, visit the API Error Center.