调用AllocateEipSegmentAddress申请连续EIP。
接口说明
AllocateEipSegmentAddress接口属于异步接口,即系统会先返回一个连续EIP组的实例ID,但该连续EIP组并未创建完成,系统后台的创建任务仍在进行。您可以调用DescribeEipSegment查询连续EIP组的状态。
-
当连续EIP组处于Allocating状态时,表示连续EIP组分配中,在该状态下,您只能执行查询操作,不能执行其他操作。
-
当连续EIP组处于Allocated状态时,表示连续EIP组已分配完成。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ClientToken | string | 否 | 客户端Token,用于保证请求的幂等性。 从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken只支持ASCII字符。 说明
若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId不一样。
| 02fb3da4-130e-11e9-8e44-001**** |
Bandwidth | string | 否 | EIP的带宽峰值。单位:Mbps。
默认值为5 Mbps。 | 5 |
RegionId | string | 是 | 连续EIP所在的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 | cn-hangzhou |
EipMask | string | 是 | 连续EIP的掩码,取值:
说明
由于IP地址保留,实际申请到的连续EIP可能缺少1、3或者4个EIP。
| 28 |
Netmode | string | 否 | 网络类型,仅取值:public,表示公网。 | public |
InternetChargeType | string | 否 | 连续EIP的计费方式,取值:
| PayByBandwidth |
ResourceGroupId | string | 否 | 资源组ID。 | rg-bp67acfmxazb4ph**** |
Isp | string | 否 | 线路类型。取值:
关于BGP(多线)线路和BGP(多线)_精品线路的更多信息,请参见EIP线路类型。 如果您是单线带宽的白名单用户,您还可以选择以下类型:
如果您是杭州金融云用户,该字段必填,取值:BGP_FinanceCloud。 | BGP |
Zone | string | 否 | 连续EIP组的可用区。 | cn-hangzhou-a |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "F7A6301A-64BA-41EC-8284-8F4838C15D1F\t",
"EipSegmentInstanceId": "eipsg-2zett8ba055tbsxme****"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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 | InvalidParameter | Specified value of "Bandwidth" is not valid. | 该带宽不合法。 |
400 | InsufficientBalance | Your account does not have enough balance. | 账户余额不足,请先充值再操作。 |
400 | QuotaExceeded.Eip | Elastic IP address quota exceeded. | 弹性公网IP的个数超过额度限制,如果您有更多额度的需求,建议您考虑使用NAT网关。 |
400 | ReserveIpFail | Reserve eip failed. | EIP预留失败。 |
400 | InvalidRegion.NotSupport | The specified region does not support. | 该 RegionId 不支持此操作。 |
400 | InvalidBandwidth.Malformed | The specified Bandwidth is invalid. | - |
400 | INSTANCE_TYPE_NOT_SUPPORT | The instance type is invalid. | - |
400 | QueryParameter.Illegal | query parameter illegal | - |
400 | TokenVerfiy.Failed | token verify failed. | - |
400 | OrderFailed | The Account failed to create order. | - |
400 | QuotaExceeded.LargeSpecEip | Elastic IP address with large spec quota exceeded. | - |
400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | 资源组ID不存在。 |
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 | Trade_Sync_Create_Sub_ERROR | SyncOrderToSub error. | - |
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.CompleteUserInfo | Complete user info failed. | - |
400 | OperationFailed.QueryPrice | Query price failed when create order. | 创建订单时查询价格失败。 |
400 | OperationFailed.InsufficientEIP | Eip resource is not enough. | - |
400 | OperationFailed.InvokeInnerApi | Failed to invoke inner api. | - |
400 | OperationFailed.AccountMoneyInvalid | Account money is invalid. | - |
400 | OperationFailed.QueryCredtiInfo | Failed to query credit info. | - |
400 | FrequentPurchase.EIP | eip frequent purchase | - |
400 | OperationFailed.QueryUserLabel | Failed to query user label info. | - |
400 | PAY.INSUFFICIENT_BALANCE | Your account does not have enough balance. | - |
400 | ORDER.QUANTITY_INVALID | User quota has exceeded the limit. | 您当前保有的EIP数量已达上限,可前往配额管理提升EIP数量配额 |
400 | PAY.MAYI_WITHHOLDING_AGREEMENT_ILLEGAL | User withhoding argeement is illegal. | - |
400 | OperationFailed.ChargeTypeInvalid | Operation failed because hybrid netmode do not support PayByTraffic. | - |
400 | IllegalParam.EipMask | EipMask is illegal. | - |
400 | IllegalParam.Name | Name is illegal. | - |
400 | IllegalParam.Description | Description is illegal. | - |
400 | InstanceExist.EipSegment | The eipSegment instance already exists. | - |
400 | OperationFailed.QuotaExceed | Operation failed because over threshold bandwidth quota exceed. | - |
400 | OperationFailed.FrequentPurchase | Operation failed because eip frequent purchase. | - |
400 | OperationFailed.AllocateEipSegment | Operation failed because eip segment is out of stock. | - |
400 | OperationFailed.CreateOrderFailed | Operation failed because create order failed. | - |
400 | MissingParam.Bandwidth | The parameter Bandwidth is mandatory when allocate hybrid EipSegment. | - |
400 | OperationFailed.EipQuotaExceed | Operation failed because eip quota exceed. | - |
400 | OrderError.EIP | The Account failed to create order. | 下单失败 |
400 | OperationConflict | Request was denied due to conflict with a previous request. | 请求冲突,请稍后重试。 |
400 | Forbidden | User not authorized to operate on the specified resource. | 您没有权限操作指定资源,请申请权限后再操作。 |
400 | UnsupportedFeature.AllocateEipAddressWithZone | The feature of AllocateEipAddressWithZone is not supported. | 当前地域不支持指定Zone创建实例 |
400 | IllegalParam.Zone | The specified zone is invalid. | 参数Zone非法 |
404 | InvalidRegionId.NotFound | Specified value of "RegionId" is not supported. | 指定的 RegionId 不存在,请您检查此产品在该地域是否可用。 |
404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | 指定的RegionId不存在。请检查该参数是否正确。 |
404 | FUWU_BIZ_COMMODITY_VERIFY_FAIL | ????????, ????????PD. | - |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 内部错误 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-08-29 | OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2023-07-26 | OpenAPI 描述信息更新,OpenAPI 错误码发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2023-05-22 | OpenAPI 错误码发生变更,OpenAPI 入参发生变更 | 看变更集 | ||||||||||||
| ||||||||||||||
2023-03-17 | OpenAPI 错误码发生变更,OpenAPI 返回结构发生变更 | 看变更集 | ||||||||||||
|