Releases a specified elastic IP address (EIP).

Usage notes

Before you call this operation, take note of the following limits:

  • Before you release an EIP, make sure that the EIP meets the following requirements:
    • You can release only an EIP that is in the Available state.
    • You can release only a pay-as-you-go EIP. You cannot release a subscription EIP.
  • The ReleaseEipAddress operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the DescribeEipAddresses operation to query the status of an EIP:
    • If the EIP is in the Releasing state, the EIP is being released. In this state, you can only query the EIP and cannot perform other operations.
    • If you cannot query the EIP, the EIP is released.
  • You cannot repeatedly call the ReleaseEipAddress operation to release an EIP within the specified period of time.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ReleaseEipAddress

The operation that you want to perform. Set the value to ReleaseEipAddress.

RegionId String No cn-hangzhou

The ID of the region to which the EIP belongs. You can call the DescribeRegions operation to query the most recent region list.

AllocationId String Yes eip-2zeerraiwb7uj6i0d****

The ID of the EIP that you want to release.

Response parameters

Parameter Type Example Description
RequestId String 748C38F6-9A3D-482E-83FB-DB6C39C68AEA

The ID of the request.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "748C38F6-9A3D-482E-83FB-DB6C39C68AEA"

Error codes

HttpCode Error code Error message Description
400 IncorrectEipStatus Current elastic IP status does not support this operation. The error message returned because you cannot perform the operation when the specified EIP is in the current state.
400 Forbidden.ChargeTypeIsPrepaid It's forbidden to release a prepaid EIP The error message returned because you cannot release subscription EIPs.
400 TaskConflict.AssociateGlobalAccelerationInstance Operate too frequent. The error message returned because the number of requests that you send exceeds the upper limit.
400 Forbidden The eip instance owner error The error message returned because the EIPs do not belong to you. Check whether you are unauthorized to perform the operation on the EIPs.
400 Mismatch.%sAnd%s The %s and %s are mismatched. The error message returned because the parameter does not match. Check the parameter.
404 Forbidden.RegionNotFound Specified region is not found during access authentication. The error message returned because the specified region does not exist. Check whether the specified region ID is valid.
500 InternalError The request processing has failed due to some unknown error. The error message returned because some unknown errors occurred.

For a list of error codes, see Service error codes.