Releases an elastic IP address (EIP).
Operation Description
Before you call this operation, take note of the following items:
-
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.
-
ReleaseEipAddress is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the DescribeEipAddresses operation to query the status of the task:
- 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.
debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | No | The ID of the region to which the EIP belongs. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
AllocationId | string | Yes | The ID of the EIP that you want to release. | eip-2zeerraiwb7uj6i0d**** |
Response parameters
Examples
Sample success responses
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. | 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 | You cannot release subscription EIPs. |
400 | TaskConflict.AssociateGlobalAccelerationInstance | Operate too frequent. | The number of requests that you send exceeds the upper limit. |
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. | The error message returned because the specified EIP does not exist. Check whether the value of the parameter is valid. |
404 | Forbidden.RegionNotFound | Specified region is not found during access authentication. | 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. | An unknown error occurred. |
For a list of error codes, visit the Service error codes.