查询共享带宽详情
更新时间:2025-01-02
接口描述
本接口用于查询共享带宽详情。
请求结构
JSON
1GET /v1/eipgroup/{id} HTTP/1.1
2Host: bec.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
id | String | 是 | URL参数 | 要查询的共享带宽的ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
name | String | 共享带宽名称 |
status | String | 共享带宽状态 |
id | String | 共享带宽ID |
bandwidthInMbps | int | 共享带宽带宽值,单位为Mbps |
createTime | String | 创建时间 |
tags | List<TagModel> | 标签信息 |
eips | List<EipVo> | 共享带宽中的EIP信息 |
ipVersion | String | IP地址类型 |
routeType | String | 线路类型 |
regionId | String | 节点ID |
region | String | 节点所在region |
regionName | String | 节点所在region名称 |
city | String | 节点所在city |
cityName | String | 节点所在city名称 |
serviceProvider | String | 节点所属运营商 |
serviceProviderName | String | 节点所属运营商名称 |
请求示例
JSON
1 GET /v1/eipgroup/eg-kgmyswts HTTP/1.1
2 Host: bec.baidubce.com
3 Authorization: authorization string
4
返回示例
JSON
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7 4ad5 451d 9215 71cb844c0a50
3 Date: Thu, 16 Mar 2022 06:29:48 GMT
4 Content Type: application/json;charset=UTF 8
5 Server: BWS
6
7{
8 "bandwidthInMbps": 22,
9 "city": "CHANGZHOU1",
10 "cityName": "常州1",
11 "createTime": "2024-12-31T03:37:08Z",
12 "eips": [
13 {
14 "bandwidthInMbps": 22,
15 "createTime": "2024-12-31T03:37:09Z",
16 "eip": "61.160.222.115",
17 "eipId": "ip-skefziaa",
18 "eipInstanceType": "shared",
19 "instanceId": "vm-mgv6aavq-cn-changzhou1-ix-geraa",
20 "instanceIp": "172.21.60.53",
21 "instanceType": "vm",
22 "ipVersion": 4,
23 "isp": "ct",
24 "mode": "nat",
25 "name": "ip-skefziaa",
26 "paymentTiming": "Postpaid",
27 "purpose": "public",
28 "regionId": "cn-changzhou1-ix",
29 "shareGroupId": "eg-kgmyswts",
30 "status": "binded"
31 },
32 {
33 "bandwidthInMbps": 22,
34 "createTime": "2024-12-31T08:58:07Z",
35 "eip": "61.160.232.116",
36 "eipId": "ip-gse0b7aa",
37 "eipInstanceType": "shared",
38 "instanceId": "",
39 "instanceIp": "61.160.222.116",
40 "instanceType": "",
41 "ipVersion": 4,
42 "isp": "ct",
43 "mode": "nat",
44 "name": "ip-gse0b7aa",
45 "paymentTiming": "Postpaid",
46 "purpose": "public",
47 "regionId": "cn-changzhou1-ix",
48 "shareGroupId": "eg-kgmyswts"
49 }
50 ],
51 "id": "eg-kgmyswts",
52 "ipVersion": "ipv4",
53 "name": "test",
54 "region": "EAST_CHINA",
55 "regionId": "cn-changzhou1-ix",
56 "regionName": "华东",
57 "routeType": "ChinaTelcom",
58 "serviceProvider": "TRIPLE_LINE",
59 "serviceProviderName": "三线",
60 "status": "binded",
61 "tags": [
62 {
63 "tagKey": "默认项目",
64 "tagValue": ""
65 }
66 ]
67}
Modal对象定义
EipVo
参数名称 | 类型 | 描述 |
---|---|---|
eipId | String | 弹性公网IP的ID |
name | String | 弹性公网IP名称 |
shareGroupId | String | 共享带宽组ID,若为普通EIP,此项值为空 |
eipInstanceType | String | EIP实例类型, normal 普通EIP类型; shared 共享带宽中的EIP |
eip | String | 弹性公网IP |
instanceId | String | eip绑定资源的id |
instanceType | String | eip绑定资源的类型 |
status | String | eip状态 |
bandwidthInMbps | int | eip带宽 |
createTime | String | 创建时间 |
paymentTiming | String | 付款时间,后支付(Postpaid) |
tags | List<TagModel> | 资源标签 |
regionId | String | 所属regionId |
ipVersion | int | IP地址类型 |
mode | String | 网络类型 |
instanceName | String | eip绑定资源的name |
instanceIp | String | eip绑定资源的ip |
isp | String | eip运营商 |
instanceStatus | String | eip绑定资源的状态 |
TagModel
参数名称 | 类型 | 描述 |
---|---|---|
tagKey | String | 标签键 |
tagValue | String | 标签值 |