If an Elastic Compute Service (ECS) instance is associated with an auto-assigned public IP address (also called system-assigned public IP address), you can increase or decrease the public bandwidth value of the instance or change the billing method for network usage of the instance between pay-by-bandwidth and pay-by-traffic based on your business requirements. If an ECS instance is not associated with a public IP address and does not have public bandwidth, you can specify a non-zero public bandwidth value for the instance. This way, the instance is automatically assigned a public IP address and public bandwidth is enabled for the instance.
Scenarios
Upgrade or downgrade the public bandwidth of an instance that is associated with an auto-assigned public IP address
If the public bandwidth of an instance that is associated with an auto-assigned public IP address does not meet your business requirements, upgrade or downgrade the public bandwidth based on your business requirements.
Change the billing method for network usage of an instance that is associated with an auto-assigned public IP address
You can change the billing method for network usage of an instance that is associated with an auto-assigned public IP address from pay-by-bandwidth to pay-by-traffic or from pay-by-traffic to pay-by-bandwidth.
Enable public bandwidth for an instance
If public bandwidth is not enabled for your instance, you can specify a non-zero public bandwidth value for the instance. This way, the instance is automatically assigned a public IPv4 address to achieve Internet connectivity.
Considerations
Your ECS usage determines whether the public bandwidth of your instances can be downgraded.
A bandwidth downgrade may result in a refund. The refund amount is calculated by using the following formula: Refund amount = Remaining amount of the price of the original configurations - Price of the new configurations. You can receive up to three refunds for each subscription instance. If you downgrade the instance type or bandwidth or change the billing method of a disk from subscription to pay-as-you-go, you receive a refund.
Procedure
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.
Open the Adjust Bandwidth dialog box.
To modify the public bandwidth configurations of a single instance, find the instance and choose
in the Actions column.To modify the public bandwidth configurations of multiple instances, select the instances and choose
in the lower part of the Instance page.
In the Adjust Bandwidth dialog box, you can view the current billing method for network usage and the current public bandwidth value. Set the Operation parameter to Adjust Bandwidth and perform the following operations based on your business requirements.
Upgrade or downgrade the public bandwidth by changing the relevant parameter value based on your business requirements. If the Billing Method for Network Usage parameter is set to Pay-by-traffic, change the value of the Fixed Bandwidth parameter. If the Billing Method for Network Usage parameter is set to Pay-by-bandwidth, change the value of the Peak Bandwidth (Bandwidth Limit for Traffic) parameter.
Change the billing method for network usage. Set the Billing Method for Network Usage parameter to Pay-by-bandwidth or Pay-by-traffic and specify a public bandwidth value.
Enable IPv4 public bandwidth. If public bandwidth is not enabled for an instance, you can select a billing method for network usage and specify a non-zero public bandwidth value to enable IPv4 public bandwidth for the instance.
Confirm that the configurations you specified are correct, click Change Now and follow the on-screen instructions to proceed.
ImportantIf you change the billing method for network usage from pay-by-traffic to pay-by-bandwidth, you must pay an upfront fee for the public bandwidth.
The first time you upgrade the public bandwidth of an instance in the classic network from 0 Mbit/s to a non-zero value, you must restart the instance in the ECS console or by calling the RebootInstances operation for the upgrade to take effect.
References
DescribeResourcesModification: queries available resources within a zone when you upgrade or downgrade instance types or replace system disks.
ModifyInstanceNetworkSpec: modifies the bandwidth configurations of an ECS instance.
You cannot disassociate the auto-assigned public IP address of an ECS instance that is deployed in a virtual private cloud (VPC) from the instance. If you want to disassociate the auto-assigned public IP address from the ECS instance and associate the IP address with other ECS instances, you can convert the IP address into an elastic IP address (EIP). For more information, see Convert the public IP address of an ECS instance in a VPC to an EIP.
ImportantWhen you convert the auto-assigned public IP address of an ECS instance into an EIP and change the billing method of the EIP instance from pay-as-you-go to subscription, the charges incurred may vary significantly. Ensure you accept the charged fees. For more information, see FAQ about billing.