Releasing a Public IP from Your Account

You can release a public IP allocated to your account if you no longer need it. The public IP becomes available again for other accounts to allocate.

Releasing a Public IP Using Cockpit v2

Before you begin:

  1. Ensure none of your applications or scripts use the public IP you release.

  2. Stop your resources from using the public IP:

  1. In the Public IPs dashboard, check the box of the public IP you want to release.

    Multiselection is available.

    The public IP is selected.

  2. Click IconTerminate Release.
    A confirmation dialog box appears.

  3. Click Release.
    The public IP is released from your account.

Releasing a Public IP Using OSC CLI

Before you begin:

  1. Ensure none of your applications or scripts use the public IP you release.

  2. Stop your resources from using the public IP:

The DeletePublicIp command releases a public IP.
You can release a public IP associated with your account. This address is released in the public IP pool and can be used by someone else. Before releasing a public IP, ensure you updated all your resources communicating with this address.

Request sample
$ osc-cli api DeletePublicIp --profile "default" \
    --PublicIp "192.0.2.0"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • PublicIp: (optional) The public IP. In the public Cloud, this parameter is required.

  • PublicIpId: (optional) The ID representing the association of the public IP with the VM or the NIC. In a Net, this parameter is required.

The DeletePublicIp command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Releasing a Public IP Using oapi-cli

Before you begin:

  1. Ensure none of your applications or scripts use the public IP you release.

  2. Stop your resources from using the public IP:

The DeletePublicIp command releases a public IP.
You can release a public IP associated with your account. This address is released in the public IP pool and can be used by someone else. Before releasing a public IP, ensure you updated all your resources communicating with this address.

Request sample
$ oapi-cli --profile "default" DeletePublicIp \
    --PublicIp "192.0.2.0"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • PublicIp: (optional) The public IP. In the public Cloud, this parameter is required.

  • PublicIpId: (optional) The ID representing the association of the public IP with the VM or the NIC. In a Net, this parameter is required.

The DeletePublicIp command returns the following elements:

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Releasing an EIP Using AWS CLI

Before you begin:

  1. Install and configure AWS CLI. For more information, see Installing and Configuring AWS CLI.

  2. Ensure none of your applications or scripts use the EIP you release.

  3. Stop your resources from using the EIP:

To release an EIP, use the release-address command following this syntax:

Request sample
$ aws ec2 release-address \
    --profile YOUR_PROFILE \
    --public-ip 111.1.1.1 \
    --allocation-id NOT_SPECIFIED \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • (optional) public-ip: The EIP.

  • (optional) allocation-id: The ID of the allocation.

    • In the public Cloud, you need to specify the public-ip attribute.

    • In a Net, you need to specify the allocation-id attribute.

  • endpoint: The endpoint corresponding to the Region you want to send the request to. For more information, see Installing and Configuring AWS CLI.

The EIP is released from your account.

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.