创建弹性公网 IP
请求路径
POST/v1/vm/eip
请求参数 (查看付费参数)
| 名称 | 类型 | 位置 | 必须 | 描述 |
|---|---|---|---|---|
| region_id | string | body | 是 |
地域 ID。您可以调用 DescribeRegions 查看最新的七牛云地域列表 |
| allocation_name | string | body | 是 |
分配名称 |
| bandwidth | string | body | 是 |
EIP 的带宽峰值,取值范围:1~200,单位为 Mbps。 默认值为 5。 |
| isp | string | body | 否 |
线路类型
|
| 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 | 预付费创建返回订单号 |
返回值示例
{
"data": {
"order": "edc5413cc610305704a8aaddca"
},
"request_id": "N8cGF-xihhWd5VMW"
}
{
"data": {
"allocation_id": "eip-6wexqbul13ouh13"
},
"request_id": "ScKvERYKCVyN4lMW"
}
文档反馈
(如有产品使用问题,请 提交工单)