All Products
Search
Document Center

Elastic Compute Service:Change the billing method for network usage of an ECS instance that uses a static public IP address

Last Updated:Feb 14, 2025

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.

Note

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.

    Important
    • If 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.

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Change the billing method for network usage based on your business scenario.

    Important
    • If 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.

    Note

    If 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

    1. Find the ECS instance for which you want to change the billing method for network usage, and choose 更多 > Upgrade/Downgrade > Change Pay-as-you-go Instance Bandwidth in the Actions column.

    2. On the Change Bandwidth page, select Pay-By-Traffic in the Public Bandwidth section and specify a maximum bandwidth value.

      更改流量-guoji

    3. 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

    1. Select multiple ECS instances for which you want to change the billing method for network usage, and choose More > Upgrade/Downgrade > Change Pay-as-you-go Instance Bandwidth in the lower part of the page.

    2. On the Change Bandwidth page, select Pay-By-Traffic in the Public Bandwidth section and specify a maximum bandwidth value.

      更改流量-guoji-piliang

    3. 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.

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Change the billing method for network usage based on your business scenario.

    A single pay-as-you-go instance

    1. Find the pay-as-you-go instance for which you want to change the billing method for network usage, and choose 更多 > Upgrade/Downgrade > Change Pay-as-you-go Instance Bandwidth in the Actions column.

    2. On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.

      更改带宽-固定带宽-guojizhan

    3. 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

    1. Find the subscription instance for which you want to change the billing method for network usage, and choose 更多 > Upgrade/Downgrade > Change Subscription Instance Bandwidth in the Actions column.

    2. In the Change Subscription Instance Bandwidth dialog box, select Modify Maximum Bandwidth Value and click Continue.

    3. On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.

      更改带宽-固定带宽-guojizhan

    4. 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

    1. Select multiple pay-as-you-go instances for which you want to change the billing method for network usage, and choose More > Upgrade/Downgrade > Change Pay-as-you-go Instance Bandwidth in the lower part of the page.

    2. On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.

      更改带宽-固定带宽-guojizhan-piliang

    3. 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

    1. Select multiple subscription instances for which you want to change the billing method for network usage, and choose More > Upgrade/Downgrade > Change Subscription Instance Bandwidth in the lower part of the page.

    2. In the Change Subscription Instance Bandwidth dialog box, select Modify Maximum Bandwidth Value and click Continue.

    3. On the Change Bandwidth page, select Pay-By-Bandwidth in the Public Bandwidth section and specify a bandwidth value.

      更改带宽-固定带宽-guojizhan

    4. 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