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:
|
-
In the Public IPs dashboard, check the box of the public IP you want to release.
Multiselection is available.
The public IP is selected.
-
Click Release.
A confirmation dialog box appears. -
Click Release.
The public IP is released from your account.
Releasing a Public IP Using OSC CLI
Before you begin:
|
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.
$ 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.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Releasing a Public IP Using oapi-cli
Before you begin:
|
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.
$ 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.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Releasing an EIP Using AWS CLI
Before you begin:
|
To release an EIP, use the release-address command following this syntax:
$ 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.