All Products
Search
Document Center

Elastic Compute Service:AllocateEipAddress

Last Updated:Jun 18, 2026

AllocateEipAddress

Note

This API has been deprecated. We recommend migrating to Vpc(2016-04-28) - AllocateEipAddress for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.

Operation description

Note

This API has been upgraded and is no longer recommended. For instructions on the new API, see AllocateEipAddress.

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:AllocateEipAddress

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

Bandwidth

string

No

ISP

string

No

InternetChargeType

string

No

ActivityId

integer

No

ClientToken

string

No

Response elements

Element

Type

Description

Example

object

RequestId

string

AllocationId

string

EipAddress

string

Examples

Success response

JSON format

{
  "RequestId": "",
  "AllocationId": "",
  "EipAddress": ""
}

Error codes

HTTP status code

Error code

Error message

Description

400 QueryParameter.Illegal query parameter illegal
400 COMMODITY_NO_EXIST commodity is not exist
400 QuotaExceeded.Eip Elastic IP address quota exceeded The number of EIPs has reached the quota. If you require more EIPs, submit a ticket to request a quota increase. We recommend that you use a NAT gateway.
400 InvalidParameter Specified value of "InternetChargeType" is not valid
400 InsufficientBalance Your account does not have enough balance. Your account balance is insufficient. Add funds to your account and try again.
400 ReserveIpFail Reserve eip failed. The EIP cannot be retained.
400 InvalidRegion.NotSupport The specified region does not support. The specified region is not supported.
400 InvalidBandwidth.Malformed The specified Bandwidth is invalid.
400 COMMODITY.INVALID_COMPONENT The instance component is invalid.
400 INSTANCE_TYPE_NOT_SUPPORT The instance type is invalid.
400 OrderFailed The Account failed to create order.
400 QuotaExceeded.LargeSpecEip Elastic IP address with large spec quota exceeded.
400 PAYFOR.CREDIT_PAY_INSUFFICIENT_BALANCE Your account does not have enough balance.
400 SYSTEM.SALE_VALIDATE_UNEXPECTED_ERROR You have arrears and do not meet the purchase conditions.
400 InvalidComponent.EipBandwidthMax The eip_bandwidth_max component is invalid.
400 OperationFailed.RiskControl Risk control check failed.
400 OperationFailed.SaleValidate Validate sale condition with subArticle failed.
400 IllegalParam.OrderParamComponent Product order param has invalid component.
400 OperationFailed.SaleExpression Get the sales expression exception attached to the item.
400 OperationFailed.SyncOrderToSub SyncOrderToSub error.
400 OperationFailed.CompleteUserInfo Complete user info failed.
400 OperationFailed.QueryPrice Query price failed when create order.
400 OperationFailed.InvokeInnerApi Failed to invoke inner api.
400 OperationFailed.AccountMoneyInvalid Account money is invalid.
400 OperationFailed.QueryCredtiInfo Failed to query credit info.
400 OperationFailed.QueryUserLabel Failed to query user label info.
400 FrequentPurchase.EIP eip frequent purchase
400 PAY.INSUFFICIENT_BALANCE Your account does not have enough balance.
400 ORDER.QUANTITY_INVALID User quota has exceeded the limit.
400 PAY.MAYI_WITHHOLDING_AGREEMENT_ILLEGAL User withhoding argeement is illegal.
400 OrderError.EIP The Account failed to create order. Failed to create the order.
400 IellgalParameter.OwnerAccount The specified parameter OwnerAccount is not valid.
500 InsufficientEipCapacity Insufficient EIP capacity to fulfill your request.
500 InternalError The request processing has failed due to some unknown error, exception or failure. An internal error has occurred. Try again later.
500 OrderError.EIP The Account failed to create order.
403 Forbbiden User not authorized to operate on the specified resource. You are not authorized to operate the specified resource.
404 InvalidRegionId.NotFound Specified value of "RegionId" is not supported.
409 OperationConflict Request was denied due to conflict with a previos request.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.