连续EIP是一组按序排列的弹性公网IP地址,您可以在进行网络设计时,为需要连续公网IP地址的云资源批量申请和使用这些IP地址。您可以通过调用AllocateEipSegmentAddress接口申请连续EIP。
目前该API接口已标记为弃用。
接口说明
AllocateEipSegmentAddress 接口属于异步接口,即系统会先返回一个连续 EIP 组的实例 ID,但该连续 EIP 组并未创建完成,系统后台的创建任务仍在进行。您可以调用 DescribeEipSegment 查询连续 EIP 组的状态。
-
当连续 EIP 组处于 Allocating 状态时,表示连续 EIP 组分配中,在该状态下,您只能执行查询操作,不能执行其他操作。
-
当连续 EIP 组处于 Allocated 状态时,表示连续 EIP 组已分配完成。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:AllocateEipSegmentAddress |
create |
*SegmentAddress
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| 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 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回信息列表。 |
||
| RequestId |
string |
请求 ID。 |
F7A6301A-64BA-41EC-8284-8F4838C15D1F |
| EipSegmentInstanceId |
string |
连续 EIP 组的实例 ID。 |
eipsg-2zett8ba055tbsxme**** |
示例
正常返回示例
JSON格式
{
"RequestId": "F7A6301A-64BA-41EC-8284-8F4838C15D1F",
"EipSegmentInstanceId": "eipsg-2zett8ba055tbsxme****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | QuotaExceeded.Eip | Elastic IP address quota exceeded | |
| 400 | InsufficientBalance | Your account does not have enough balance. | |
| 400 | InvalidParameter | Specified value of "InternetChargeType" is not valid | |
| 400 | ReserveIpFail | Reserve eip failed. | |
| 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 | QuotaExceeded.LargeSpecEip | Elastic IP address with large spec quota exceeded. | |
| 400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | 资源组ID不存在。 |
| 400 | OperationFailed.InsufficientEIP | Eip resource is not enough. | |
| 400 | FrequentPurchase.EIP | eip frequent purchase | |
| 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. | 连续EIP库存不足。 |
| 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 | 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非法 |
| 400 | Forbidden.AllocateEipSegmentAddress | Authentication is failed for allocating eip segment address. | 申请连续EIP失败,该服务已下线,请使用IP地址池服务。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。