查询共享带宽详情
更新时间:2025-01-02
接口描述
本接口用于查询共享带宽详情。
请求结构
GET /v1/eipgroup/{id} HTTP/1.1
Host: bec.baidubce.com
Authorization: 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 | 节点所属运营商名称 |
请求示例
GET /v1/eipgroup/eg-kgmyswts HTTP/1.1
Host: bec.baidubce.com
Authorization: authorization string
返回示例
HTTP/1.1 200 OK
x-bce-request-id: 1214cca7 4ad5 451d 9215 71cb844c0a50
Date: Thu, 16 Mar 2022 06:29:48 GMT
Content Type: application/json;charset=UTF 8
Server: BWS
{
"bandwidthInMbps": 22,
"city": "CHANGZHOU1",
"cityName": "常州1",
"createTime": "2024-12-31T03:37:08Z",
"eips": [
{
"bandwidthInMbps": 22,
"createTime": "2024-12-31T03:37:09Z",
"eip": "61.160.222.115",
"eipId": "ip-skefziaa",
"eipInstanceType": "shared",
"instanceId": "vm-mgv6aavq-cn-changzhou1-ix-geraa",
"instanceIp": "172.21.60.53",
"instanceType": "vm",
"ipVersion": 4,
"isp": "ct",
"mode": "nat",
"name": "ip-skefziaa",
"paymentTiming": "Postpaid",
"purpose": "public",
"regionId": "cn-changzhou1-ix",
"shareGroupId": "eg-kgmyswts",
"status": "binded"
},
{
"bandwidthInMbps": 22,
"createTime": "2024-12-31T08:58:07Z",
"eip": "61.160.232.116",
"eipId": "ip-gse0b7aa",
"eipInstanceType": "shared",
"instanceId": "",
"instanceIp": "61.160.222.116",
"instanceType": "",
"ipVersion": 4,
"isp": "ct",
"mode": "nat",
"name": "ip-gse0b7aa",
"paymentTiming": "Postpaid",
"purpose": "public",
"regionId": "cn-changzhou1-ix",
"shareGroupId": "eg-kgmyswts"
}
],
"id": "eg-kgmyswts",
"ipVersion": "ipv4",
"name": "test",
"region": "EAST_CHINA",
"regionId": "cn-changzhou1-ix",
"regionName": "华东",
"routeType": "ChinaTelcom",
"serviceProvider": "TRIPLE_LINE",
"serviceProviderName": "三线",
"status": "binded",
"tags": [
{
"tagKey": "默认项目",
"tagValue": ""
}
]
}
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 | 标签值 |