Releases a specified elastic IP address (EIP).
Operation description
Before you invoke this operation, take note of the following information:
-
Before you release an EIP, make sure that 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 send a request, the system returns a request ID. However, the EIP instance is not immediately released because the release node is still running 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 is 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 be released. You can call the DescribeRegions operation to query the region ID. |
cn-hangzhou |
| AllocationId |
string |
Yes |
The ID of the EIP to be released. |
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 | Forbidden.ChargeTypeIsPrepaid | It's forbidden to release a prepaid EIP | |
| 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. |
| 400 | Forbidden.MinimumHoldingPeriod | The EIP is within its minimum holding period. | Local ISP can only be released after 30 days of creation. If you want to delete it, please do so after 30 days. |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 404 | InvalidAllocationId.NotFound | Specified allocation ID is not found. | |
| 404 | Forbidden.RegionNotFound | Specified region is not found during access authentication. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.