链接复制成功!
共享带宽插入弹性公网IP
功能介绍
共享带宽插入弹性公网IP。
URI
POST /v2.0/{project_id}/bandwidths/{bandwidth_id}/insert
请求参数
| 名称 | 是否必选 | 参数类型 | 说明 |
|---|---|---|---|
| publicip_info | 是 | Array of publicip_info objects |
|
| 名称 | 是否必选 | 参数类型 | 说明 |
|---|---|---|---|
| publicip_id | 是 | String | 带宽对应的弹性公网IP的唯一标识 |
| publicip_type | 否 | String |
|
请求样例
POST https://{Endpoint}/v2.0/{project_id}/bandwidths/{bandwidth_id}/insert
{
"bandwidth": {
"publicip_info": [
{
"publicip_id": "29b114d1-2d41-4741-a1f0-b6f80aabceff",
"publicip_type": "5_bgp",
}
]
}
} 响应参数
| 名称 | 参数类型 | 说明 |
|---|---|---|
| name | String |
|
| size | Integer |
|
| id | String | 带宽唯一标识 |
| share_type | String |
|
| publicip_info | Array of publicip_info objects |
|
| tenant_id | String | 项目ID |
| bandwidth_type | String |
|
| charge_mode | String |
|
| billing_info | String | 账单信息。 如果billing_info不为空,说明是包周期的带宽。 |
| enterprise_project_id | String |
说明: 关于企业项目ID的获取及企业项目特性的详细信息,请参见《企业管理用户指南》。 |
| status | String |
|
| enable_bandwidth_rules | boolean |
|
| rule_quota | integer | 功能说明:带宽支持的最大分组规则数 |
| bandwidth_rules | Array of bandwidth_rules objects | 功能说明:带宽规则对象 |
| 名称 | 参数类型 | 说明 |
|---|---|---|
| publicip_id | String | 功能说明:带宽对应的弹性公网IP的唯一标识 |
| publicip_address | String | 功能说明:IPv4时是申请到的弹性公网IP地址 |
| publicipv6_address | String | 功能说明:IPv4时无此字段,IPv6时为申请到的弹性公网IP地址 |
| ip_version | Integer |
|
| publicip_type | String |
|
| 字段名称 | 类型 | 描述 |
|---|---|---|
| id | string | 带宽规则ID |
| name | string | 带宽规则名称 |
| admin_state_up | boolean | 配置状态,为False时配置不生效 |
| egress_size | integer |
|
| egress_guarented_size | integer |
|
| publicip_info | Array of publicip_info objects |
|
响应样例
{
"bandwidth": {
"id": "3fa5b383-5a73-4dcb-a314-c6128546d855",
"name": "bandwidth123",
"size": 10,
"share_type": "WHOLE",
"publicip_info": [
{
"publicip_id": "1d184b2c-4ec9-49b5-a3f9-27600a76ba3f",
"publicip_address": "99.xx.xx.82",
"publicip_type": "5_bgp",
"ip_version": 4
}
],
"tenant_id": "8b7e35ad379141fc9df3e178bd64f55c",
"charge_mode": "traffic",
"billing_info": "CS1712121146TSQOJ:0616e2a5dc9f4985ba52ea8c0c7e273c:southchina:35f2b308f5d64441a6fa7999fbcd4321",
"bandwidth_type": "share",
"status": "NORMAL"
}
} 状态码
请参见状态码。
错误码
请参考错误码。