All Products
Search
Document Center

Elastic IP Address:ReleaseEipAddress

Last Updated:Aug 26, 2026

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vpc:ReleaseEipAddress

update

*Address

acs:vpc:{#regionId}:{#accountId}:eip/{#AllocationId}

  • vpc:tag
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.