更新时间:2026-11-13 GMT+08:00
链接复制成功!
批量创建共享带宽
功能介绍
批量创建共享带宽。
URI
POST /v2.0/{project_id}/batch-bandwidths
请求参数
| 名称 | 是否必选 | 参数类型 | 说明 |
|---|---|---|---|
| name | 是 | String |
|
| size | 是 | Integer |
|
| count | 是 | Integer |
|
| public_border_group | 否 | String | 功能说明:表示中心站点资源或者边缘站点资源。 取值范围:
约束限制:只能绑定与该字段相同的publicip资源 |
请求样例
POST https://{Endpoint}/v2.0/{project_id}/batch-bandwidths
{
"bandwidth": {
"name": "bandwidth123",
"size": 10,
"count": 2
}
} 响应参数
| 名称 | 参数类型 | 说明 |
|---|---|---|
| bandwidths | Array of bandwidths objects | 批创的带宽对象的列表,请参见表5。 |
| 名称 | 参数类型 | 说明 |
|---|---|---|
| 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不为空,说明是包周期的带宽。 |
| status | String |
|
| public_border_group | String | 功能说明:表示中心站点资源或者边缘站点资源。 取值范围:
约束限制:只能绑定与该字段相同的publicip资源 |
| 名称 | 参数类型 | 说明 |
|---|---|---|
| publicip_id | String | 功能说明:带宽对应的弹性公网IP的唯一标识 |
| publicip_address | String | 功能说明:IPv4时是申请到的弹性公网IP地址 |
| publicipv6_address | String | 功能说明:IPv4时无此字段,IPv6时为申请到的弹性公网IP地址 |
| ip_version | Integer |
|
| publicip_type | String |
|
响应样例
{
"bandwidths": [
{
"id": "7e5a1a30-6e88-4ce5-b5fa-1d6c6864e084",
"name": "bandwidth123",
"size": 10,
"share_type": "WHOLE",
"publicip_info": [],
"tenant_id": "26ae5181a416420998eb2093aaed84d9",
"bandwidth_type": "share",
"charge_mode": "bandwidth",
"billing_info": "",
"status": "NORMAL"
},
{
"id": "ed2da50a-3ce9-4d86-9f17-e8f3801299a5",
"name": "bandwidth123",
"size": 10,
"share_type": "WHOLE",
"publicip_info": [],
"tenant_id": "26ae5181a416420998eb2093aaed84d9",
"bandwidth_type": "share",
"charge_mode": "bandwidth",
"billing_info": "",
"status": "NORMAL"
}
]
} 状态码
请参见状态码。
错误码
请参考错误码。
父主题: 带宽(V2.0)