AllocateEipAddress - 申请弹性公网IP(EIP)

更新时间:
复制为 MD 格式

说明

目前该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

*全部资源

*

请求参数

名称

类型

必填

描述

示例值

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 弹性公网 IP 的个数超过额度限制,如果您有更多额度的需求,请提交工单申请增加限额,建议您考虑使用 NAT 网关。
400 InvalidParameter Specified value of "InternetChargeType" is not valid
400 InsufficientBalance Your account does not have enough balance. 账户余额不足,请先充值再操作。
400 ReserveIpFail Reserve eip failed. 储存 EIP 失败。
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. 请求操作的资源与之前的请求冲突

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情