Help Center/ Virtual Private Cloud/ User Guide/ Virtual IP Address/ Releasing a Virtual IP Address
Updated on 2024-10-25 GMT+08:00

Releasing a Virtual IP Address

Scenarios

If you no longer need a virtual IP address or a reserved virtual IP address, you can release it to avoid wasting resources.

Notes and Constraints

If you want to release a virtual IP address that is being used by a resource, refer to Table 1.
Table 1 Releasing a virtual IP address that is being used by a resource

Prompts

Cause Analysis and Solution

Scenario 1:

This operation cannot be performed because the IP address is bound to an instance or an EIP. Unbind the IP address and try again.

This virtual IP address is being used by cloud resources such as an EIP or an ECS. For details, see Unbinding a Virtual IP Address from an Instance or EIP.

Release the virtual IP address.

Scenario 2:

This operation cannot be performed because the IP address is being used by a system component.

The virtual IP address is being used by an instance. Delete the instance, which will also release the virtual IP address.

Search for the instance based on the instance information displayed on the virtual IP address console and delete the instance.

  • RDS instance
  • CCE instance
  • API gateway
Figure 1 Scenario 1: Virtual IP address cannot be released
Figure 2 Scenario 2: Virtual IP address cannot be released

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Virtual Private Cloud > Subnets.
  4. Click the name of the subnet that the virtual IP address belongs to.
  5. Click the IP Addresses tab, locate the row that contains the virtual IP address to be released, click More in the Operation column, and select Release.

    A confirmation dialog box is displayed.

  6. Confirm the information and click OK.