For an ECS instance that uses a static public IP address, you can upgrade or downgrade its bandwidth if the current bandwidth does not meet your business requirements. You can also switch the billing method for public bandwidth between pay-by-bandwidth and pay-by-traffic. If the instance does not have a public IP address, you can assign one by modifying its bandwidth.
Scenarios
Upgrade or downgrade the bandwidth of a static public IP address
If the public bandwidth does not meet your business requirements, you can upgrade or downgrade the bandwidth of the static public IP address.
Switch the bandwidth billing method of a static public IP address
Switch the public bandwidth billing method for the static public IP address from pay-by-bandwidth to pay-by-traffic, or from pay-by-traffic to pay-by-bandwidth.
Enable internet access for an ECS instance
If an ECS instance does not have internet access, you can modify its bandwidth and set it to a non-zero value. This assigns a public IPv4 address to the instance and enables internet communication.
If you need to temporarily upgrade the bandwidth for a subscription instance, see Temporarily upgrade the public bandwidth of a subscription instance for a consecutive period or Temporarily upgrade the public bandwidth of a subscription instance for recurring periods.
To change a public IP address for purposes such as network security optimization, IP blocking, or resource migration, see Static public IP addresses or Change the EIP associated with an ECS instance.
To downgrade the instance type (vCPUs and memory) within the same instance family, change the public bandwidth, or switch the billing method for data disks when you renew a subscription ECS instance, see Renew and downgrade an instance.
If your subscription instance has expired but has not been released, and you want to modify its specifications upon renewal, see Renew and reconfigure an instance.
If your instance uses an Elastic IP Address (EIP), see Modify the bandwidth of an EIP to modify its bandwidth.
Limits
Whether you can downgrade the bandwidth depends on your ECS usage.
Downgrading the fixed bandwidth may result in a refund. The refund amount is the price difference between the new configuration and the remaining price of your original configuration for the subscription period. For more information, see unsubscription rules.
Downgrades are subject to a monthly quota that is determined based on your historical consumption. The specific quota is displayed on the page. You cannot perform further downgrades after the monthly quota is exhausted. The quota is automatically reset on the first day of the next month. For more information, see unsubscription rules.
Procedure
Go to ECS console - Instances.
In the upper-left corner of the page, select a region and resource group.
Find the instance whose bandwidth you want to modify, and click the instance ID to go to the instance details page. In the All Operations section, find the public IP address and click Adjust Bandwidth.
NoteYou can also perform batch operations on the Instances page. Select multiple instances in the instance list. Then, in the lower part of the page, click and follow the on-screen instructions to change the bandwidth for the instances in a batch.
On the Adjust Bandwidth page, you can view the current billing method and bandwidth value. Select Operation for Adjust Bandwidth and perform one of the following operations based on your requirements.
ImportantIf you set Fixed Bandwidth or Peak Bandwidth (Bandwidth Limit for Traffic) to 0 Mbit/s, the system reclaims the static public IP address. The reclaimed IP address cannot be recovered.
Upgrade or downgrade bandwidth: Adjust the Fixed Bandwidth or Peak Bandwidth (Bandwidth Limit for Traffic) value based on the current billing method for public bandwidth.
Switch the public bandwidth billing method: Set Network Usage to Pay-by-bandwidth or Pay-by-traffic, and then specify a bandwidth value.
Enable a static public IPv4 address: If the ECS instance does not have a public IPv4 address, you can select a billing method and set the bandwidth to a non-zero value.
Confirm the settings and click Change Now. Then, follow the on-screen instructions to complete the process.
ImportantIf you switch the bandwidth billing method for a subscription instance from pay-by-traffic to pay-by-bandwidth, you must make a prepayment. Click Pay and Change Now and follow the on-screen instructions to complete the payment.
References
DescribeResourcesModification: Use this API to query for available resources in a specific zone that can be used to upgrade or downgrade instance types or system disks.
ModifyInstanceNetworkSpec: Use this API to modify the bandwidth configuration of an ECS instance.
If you require the ability to associate and disassociate a public IP address on demand, you can convert a static public IP address to an Elastic IP Address (EIP).