# 查询共享带宽列表 (/products/qvm/common-bandwidth/3-common-bandwidth-index)



最近更新时间: 2021-04-22 15:53:33

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

> `GET` /v1/vpc/common\_bandwidth

# 请求参数 [#请求参数]

| 名称         | 类型     | 位置    | 是否必须 | 描述               |
| ---------- | ------ | ----- | ---- | ---------------- |
| region\_id | string | query | 否    | 支持多个地域 ID, 按逗号分隔 |
| cb\_id     | string | query | 否    | 共享带宽包 ID         |
| name       | string | query | 否    | 名称模糊搜索           |
| page       | int    | query | 否    | 页码               |
| size       | int    | query | 否    | 分页大小             |

# 返回值 [#返回值]

\| 名称 | 类型 | 是否必须 | 描述 |
\| ----- | ----- | ----- | ----- | ----- |
\| data | \[]CommonBandwidth | 是 | 共享带宽列表 |
\| request\_id | string | 是 | 请求记录 ID |
\| page | int | 是 | 页码 |
\| size | int | 是 | 分页大小 |
\| total | int | 是 | 查询到的总数 |

### CommonBandwidth 共享带宽详情 [#commonbandwidth-共享带宽详情]

| 名称                 | 类型             | 是否必须 | 描述                   |
| ------------------ | -------------- | ---- | -------------------- |
| region\_id         | string         | 是    | 地域 ID                |
| cb\_id             | string         | 是    | 带宽包 ID               |
| name               | string         | 是    | 带宽包名称                |
| description        | string         | 是    | 带宽包描述                |
| bandwidth          | int            | 是    | 带宽大小, 单位 Mbps        |
| status             | string         | 是    | 共享带宽状态, 默认 Available |
| public\_address    | \[]AddressInfo | 是    | 加入带宽包的弹性 IP 列表       |
| create\_time       | string         | 是    | 创建时间                 |
| expire\_time       | string         | 是    | 过期时间                 |
| ratio              | int            | 是    | 保底百分比                |
| cost\_charge\_type | string         | 是    | 付费类型                 |
| cost\_charge\_mode | string         | 是    | 计费方式                 |

### AddressInfo 弹性 IP 信息 [#addressinfo-弹性-ip-信息]

| 名称          | 类型     | 是否必须 | 描述       |
| ----------- | ------ | ---- | -------- |
| ip\_address | string | 是    | IP 地址    |
| eip\_id     | string | 是    | IP 实例 ID |

# 示例 [#示例]

### 正常返回示例 [#正常返回示例]

```json
{
    "data": [
        {
            "_id": "60800ad3ca2a31b4d27286a2",
            "uid": 1381403989,
            "region_id": "cn-zhangjiakou",
            "cb_id": "cbwp-8vb7ta6zzkl83pq6bzv4i",
            "name": "test_qxy",
            "description": "null",
            "bandwidth": 2,
            "internet_charge_type": "PayByBandwidth",
            "ratio": 100,
            "instance_charge_type": "PostPaid",
            "status": "Available",
            "business_status": "Normal",
            "public_address": [{
                 "ip_address": "1.2.3.4",
                 "eip_id": "eip-xxx"
            }],
            "has_reservation_data": false,
            "isp": "BGP",
            "deletion_protection": false,
            "resource_group_id": "rg-acfm2aglnh2ecpa",
            "human_spec": "2Mbps",
            "create_time": "2021-04-21T19:21:55+08:00",
            "expire_time": "2121-04-22T03:26:56+08:00",
            "update_time": "2021-04-21T19:26:56.458+08:00",
            "customized_expire_time": null,
            "cost_charge_type": "PostPaid",
            "cost_charge_mode": "PayByBandwidth",
        }
    ],
    "page": 1,
    "size": 10,
    "total": 1,
    "request_id": "3xV5Lp2NuUUM3XcW"
}
```
