You can change the billing method for network usage of an Elastic Compute Service (ECS) instance that uses a static public IP address from pay-by-bandwidth to pay-by-traffic or from pay-by-traffic to pay-by-bandwidth. The static public IP address of the ECS instance is the public IP address assigned by the system.
For information about how to change the billing method of an elastic IP address (EIP), see Switch metering methods.
Billing methods for network usage of an ECS instance that uses a static public IP address
Pay-by-bandwidth: You are charged fees based on the bandwidth that you specify. The actual outbound bandwidth of the instance does not exceed the specified bandwidth. This billing method is suitable for scenarios in which bandwidth usage is predictable.
Pay-by-traffic: You are charged fees based on the actual traffic volume. If you use this billing method, the bandwidth that you specify is the maximum bandwidth for outbound traffic. The bandwidth limit prevents out-of-control fees caused by traffic bursts. This billing method is suitable for scenarios in which bandwidth usage may significantly fluctuate.
ImportantIf you use the pay-by-traffic billing method for network usage, the maximum inbound and outbound bandwidths are used as the upper limits of bandwidths instead of guaranteed performance specifications. In scenarios in which demand exceeds available resources, the maximum bandwidths may not be reached. If you want guaranteed bandwidths for your ECS instance, use the pay-by-bandwidth billing method for network usage.
BGP (Multi-ISP) Pro lines in the China (Hong Kong) region do not support the pay-by-traffic billing method for network usage.
Change from pay-by-bandwidth to pay-by-traffic
The following section describes how to change the billing method for network usage from pay-by-bandwidth to pay-by-traffic for pay-as-you-go instances. You can also call the ModifyInstanceNetworkSpec operation to perform the change.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Change the billing method for network usage based on your business scenario.
ImportantIf you temporarily upgraded the bandwidth of a subscription ECS instance, the system cancels all pending and effective temporary bandwidth upgrade orders for the instance and processes a refund after you change the billing method for network usage of the instance from pay-by-bandwidth to pay-by-traffic.
If you select the pay-by-traffic billing method for network usage, your network traffic fees may increase in high-traffic scenarios. To ensure that the billing method for network usage meets your budget plan, we recommend that you assess the budget in advance. For information about how to select a billing method for network usage, see Public bandwidth.
NoteIf an ECS instance is a pay-as-you-go instance that uses the pay-by-bandwidth billing method for network usage, you cannot change the billing method for network usage to pay-by-traffic.
A single ECS instance
Find the ECS instance for which you want to change the billing method for network usage, and choose
in the Actions column.On the Change Bandwidth page, select Pay-By-Traffic in the Public Bandwidth section and specify a maximum bandwidth value.
Read and select ECS Terms of Service, and then click Confirm.
Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.
Multiple ECS instances
Select multiple ECS instances for which you want to change the billing method for network usage, and choose
in the lower part of the page.On the Change Bandwidth page, select Pay-By-Traffic in the Public Bandwidth section and specify a maximum bandwidth value.
Read and select ECS Terms of Service, and then click Confirm.
Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.
Change from pay-by-traffic to pay-by-bandwidth
The following section describes how to change the billing method for network usage from pay-by-traffic to pay-by-bandwidth for a subscription or pay-as-you-go instance. You can also call the ModifyInstanceNetworkSpec operation to perform the change.
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Change the billing method for network usage based on your business scenario.
A single pay-as-you-go instance
Find the pay-as-you-go instance for which you want to change the billing method for network usage, and choose
in the Actions column.On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.
Read and select ECS Terms of Service, and then click Confirm.
Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.
A single subscription instance
Find the subscription instance for which you want to change the billing method for network usage, and choose
in the Actions column.In the Change Subscription Instance Bandwidth dialog box, select Modify Maximum Bandwidth Value and click Continue.
On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.
Read and select ECS Terms of Service, and then click Confirm.
Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.
Multiple pay-as-you-go instances
Select multiple pay-as-you-go instances for which you want to change the billing method for network usage, and choose
in the lower part of the page.On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.
Read and select ECS Terms of Service, and then click Confirm.
Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.
Multiple subscription instances
Select multiple subscription instances for which you want to change the billing method for network usage, and choose
in the lower part of the page.In the Change Subscription Instance Bandwidth dialog box, select Modify Maximum Bandwidth Value and click Continue.
On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.
Read and select ECS Terms of Service, and then click Confirm.
Follow the on-screen instructions to complete the operation. The new configuration immediately takes effect.
References
After you change the billing method for network usage of an ECS instance, the system calculates the public bandwidth fee of the instance based on the new billing method. For more information, see Public bandwidth.
You may need to modify the bandwidth limit or configurations for an instance based on the new billing method. For more information, see the following topics:
If you want to manage public IP addresses in a more flexible manner, such as associating EIPs with or disassociating EIPs from ECS instances, you can convert the static public IP addresses of the ECS instances to EIPs.
ImportantIf you change the billing method of an EIP that is converted from a static public IP address from pay-as-you-go to subscription, the EIP price may change. Proceed with caution when you change the billing method of the EIP. For more information, see FAQ about billing.