查询指定带宽包详情
更新时间:2024-12-27
描述
查询指定云智能网带宽包详情。
请求结构
Plain Text
1GET /v{version}/csn/bp/{csnBpId} HTTP/1.1
2Host: csn.baidubce.com
3Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必选 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号,当前取值1 |
csnBpId | String | 是 | URL参数 | 带宽包的ID |
返回头域
除公共头域外,无其他特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
csnBpId | String | 带宽包的ID |
name | String | 带宽包的名称 |
bandwidth | String | 带宽包的总带宽 |
usedBandwidth | String | 带宽包的已分配带宽 |
csnId | String | 绑定云智能网实例 |
interworkType | String | 带宽包互通类型,取值 [ center | center-edge | edge-edge ],分别表示云间互通、云边互通、边边互通 |
interworkRegion | String | 带宽包互通地域,取值 [ chinesemainland | asiapacific | crossregional ],分别表示中国大陆、亚太区域、跨区域互通 |
status | String | 带宽包的状态 |
paymentTiming | String | 带宽包的付费方式,取值 [ PrePaid | PostPaid ],分别表示预付费、后付费 |
expireTime | String | 带宽包预付费的到期时间 |
createdTime | String | 带宽包的创建时间 |
tags | List<TagModel> | 绑定的标签信息 |
请求示例
Plain Text
1GET /v1/csn/bp/csnBp-gdrf6fukb36u
2Host: csn.baidubce.com
3Authorization: bce-auth-v1/bf427691810a11e8a106475a8496ca04/2018-07-06T11:02:49Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-token/e84ee938f6466428ff5c16b3562a1cbf3db5928e7f863cedec8820b5d98aa474
返回示例
Plain Text
1HTTP/1.1 200 OK
2Date: Fri, 06 Jul 2018 11:12:34 GMT
3Content-Type: application/json;charset=UTF-8
4Server: BWS
5{
6 "csnBpId":"csnBp-gdrf6fukb36u",
7 "name":"csnBp",
8 "bandwidth":100,
9 "usedBandwidth":10,
10 "csnId":"",
11 "interworkType":"center",
12 "interworkRegion":"chinesemainland",
13 "status":"available",
14 "paymentTiming":"Prepaid",
15 "expireTime":"2022-08-13T08:10:59Z",
16 "createdTime":"2021-04-25T17:22:34Z",
17 "tags": [
18 {
19 "tagKey": "tagKey",
20 "tagValue": "tagValue"
21 }
22 ]
23}