全部產品
Search
文件中心

Elastic Compute Service:AllocateEipAddress

更新時間:Jun 18, 2026

AllocateEipAddress。

說明

目前該API介面已標記為棄用,推薦使用替代API:Vpc(2016-04-28) - AllocateEipAddress

介面說明

說明

該介面已升級,不建議繼續使用。新版介面的使用說明,請參見 AllocateEipAddress

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

vpc:AllocateEipAddress

update

*All Resource

*

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

Bandwidth

string

ISP

string

InternetChargeType

string

ActivityId

integer

ClientToken

string

返回參數

名稱

類型

描述

樣本值

object

RequestId

string

AllocationId

string

EipAddress

string

樣本

正常返回樣本

JSON格式

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

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 QueryParameter.Illegal query parameter illegal
400 COMMODITY_NO_EXIST commodity is not exist
400 QuotaExceeded.Eip Elastic IP address quota exceeded
400 InvalidParameter Specified value of "InternetChargeType" is not valid
400 InsufficientBalance Your account does not have enough balance.
400 ReserveIpFail Reserve eip failed.
400 InvalidRegion.NotSupport The specified region does not support.
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.
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.
500 OrderError.EIP The Account failed to create order.
403 Forbbiden User not authorized to operate on 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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情