批量创建弹性公网IP
功能介绍
批量创建弹性公网IP
URI
POST /v2/{project_id}/batchpublicips
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 项目id |
请求参数
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
bandwidth | 是 | BatchBandwidth object | 带宽信息 |
publicip | 是 | BatchPublicIp object | 弹性公网IP信息 |
publicip_number | 是 | Integer | 批量创建EIP的个数 |
enterprise_project_id | 是 | String | 企业项目id |
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
charge_mode | 否 | String |
枚举值:
|
name | 否 | String |
最小长度:1 最大长度:64 |
share_type | 否 | String |
枚举值:
|
size | 是 | Integer |
|
id | 否 | String |
|
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
id | 否 | String | 指定id创建EIP |
type | 是 | String | 公网ip类型 枚举值:
|
ip_version | 否 | String | 公网EIP的版本,例如ipv4,ipv6,默认为ipv4 |
enterprise_project_id | 否 | String | 企业项目id |
tags | 否 | Array of ResourceTagOption objects |
|
profile | 否 | BatchProfile object | 订单信息 |
响应参数
状态码: 200
参数 | 参数类型 | 描述 |
|---|---|---|
job_id | String | job_id,需要访问调用netAPI组件访问job执行情况。netAPI:/v1/{project_id}/jobs/{job_id} |
请求示例
批量创建2个弹性公网IP,带标签创建,带宽为按宽带计费、5M大小的独享带宽。
POST /v2/{project_id}/batchpublicips
{
"bandwidth" : {
"name" : "",
"size" : 5,
"charge_mode" : "bandwidth",
"share_type" : "PER"
},
"publicip" : {
"type" : "5_bgp",
"tags" : ["name*tom", "type*kkkk"]
},
"publicip_number" : 2,
"enterprise_project_id" : 0
} 响应示例
状态码: 200
OK
{
"job_id" : "ff8080828436722c0184cdb88e9200a5"
} 状态码
请参见状态码。
错误码
请参见错误码。

