# 创建弹性公网 IP (/products/qvm/eip/2-create-eip)



最近更新时间: 2021-05-26 14:44:54

# 请求路径 [#请求路径]

> `POST` /v1/vm/eip

# 请求参数 ([查看付费参数](/products/qvm/1-common-params)) [#请求参数-查看付费参数]

| 名称                                       | 类型     | 位置   | 必须 | 描述 |
| ---------------------------------------- | ------ | ---- | -- | -- |
| region\_id                               | string | body | 是  |    |
| 地域 ID。您可以调用 DescribeRegions 查看最新的七牛云地域列表 |        |      |    |    |

|
\| allocation\_name | string | body | 是 |

分配名称

|
\| bandwidth | string | body | 是 |

EIP 的带宽峰值，取值范围：1\~200，单位为 Mbps。 默认值为 5。

|
\| isp | string | body | 否 |

线路类型
目前支持BGP线路和BGP精品线路，默认为BGP线路，在选择精品线路的时候该参数必填。

* `BGP_PRO`: BGP（多线）精品线路 - `BGP`: BGP（多线）线路 - `5_telcom`: 电信 - `5_union`: 联通 - `5_bgp`: 全动态 BGP - `5_sbgp`: 静态 BGP

|
\| client\_token | string | body | 是 |

保证请求幂等性。从您的客户端生成一个参数值，确保不同请求间该参数值唯一。

|
\| enable\_auto\_renew | boolean | body | 否 |

是否打开自动续费

|
\| customized\_release\_time | string | body | 否 |

后付费定时删除的时间

|
\| cost\_charge\_type | string | body | 是 | 付费方式 |
\| cost\_charge\_mode | string | body | 是 | 计费方式 |
\| cost\_period\_unit | string | body | 是 | 计费单位 |
\| cost\_period | integer | body | 是 | 计费周期 |

# 返回值 [#返回值]

| 名称                  | 类型        | 描述          |
| ------------------- | --------- | ----------- |
| request\_id         | string    | 请求 ID       |
| data                | object\{} | 创建 EIP 返回信息 |
| data.allocation\_id | string    | 按量创建返回 ID   |
| data.order          | string    | 预付费创建返回订单号  |

## 返回值示例 [#返回值示例]

```json
{
  "data": {
    "order": "edc5413cc610305704a8aaddca"
  },
  "request_id": "N8cGF-xihhWd5VMW"
}
```

```json
{
  "data": {
    "allocation_id": "eip-6wexqbul13ouh13"
  },
  "request_id": "ScKvERYKCVyN4lMW"
}
```
