Releases a specified elastic IP address (EIP).
Operation description
Before you begin:
-
Before releasing an EIP, make sure the following conditions are met:
-
Only EIPs in the Available state can be released.
-
Only EIPs that use the pay-as-you-go billing method can be released. Subscription EIPs cannot be released.
-
-
The ReleaseEipAddress operation is asynchronous. After you invoke this operation, the system returns a request ID, but the EIP instance has not been released yet. The release node continues to execute in the background. You can invoke DescribeEipAddresses to query the status of the EIP instance:
-
If the EIP instance is in the Releasing state, the EIP instance is being released. In this state, you can only execute query operations and cannot execute other operations.
-
If the EIP instance cannot be found, the EIP instance has been released.
-
-
The ReleaseEipAddress operation does not support concurrent release of the same EIP instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:ReleaseEipAddress |
update |
*Address
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the EIP to release. You can call DescribeRegions to query the region ID. |
cn-hangzhou |
| AllocationId |
string |
Yes |
The ID of the EIP to release. |
eip-2zeerraiwb7uj6i0d**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
748C38F6-9A3D-482E-83FB-DB6C39C68AEA |
Examples
Success response
JSON format
{
"RequestId": "748C38F6-9A3D-482E-83FB-DB6C39C68AEA"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectEipStatus | Current elastic IP status does not support this operation. | |
| 400 | TaskConflict.AssociateGlobalAccelerationInstance | Operate too frequent. | |
| 400 | InvalidOperation.DeletionProtection | The instance cannnot delete because of deletion protecion. | |
| 400 | Forbidden.ReleaseSegmentEip | Release single segment eip is forbidden. | |
| 400 | Forbidden | The eip instance owner error | The EIP does not belong to your account. Check whether you are authorized to perform the operation on the EIP. |
| 400 | Mismatch.%sAnd%s | The %s and %s are mismatched. | The parameter does not match. Check the parameter. |
| 404 | InvalidAllocationId.NotFound | Specified allocation ID is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.