调用DescribeCommonBandwidthPackages接口查询指定地域中共享带宽实例列表及其信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| IncludeReservationData |
boolean |
否 |
是否包含未生效的订购数据。取值:
|
false |
| RegionId |
string |
是 |
共享带宽所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| BandwidthPackageId |
string |
否 |
共享带宽实例的 ID。 |
cbwp-2ze2ic1xd2qeqk145**** |
| ResourceGroupId |
string |
否 |
资源组 ID。 |
rg-acfmxazb4ph**** |
| Name |
string |
否 |
共享带宽实例名称。
长度为 0-128 个字符,不能以 |
test123 |
| PageNumber |
integer |
否 |
列表的页码。默认值:1。 |
1 |
| PageSize |
integer |
否 |
分页查询时每页的行数。最大值:50。默认值:10。 |
10 |
| DryRun |
boolean |
否 |
是否只预检此次请求。取值:
|
false |
| Tag |
array<object> |
否 |
共享带宽实例的标签列表。 |
|
|
object |
否 |
共享带宽实例的标签列表。 |
||
| Key |
string |
否 |
资源的标签键。最多支持输入 20 个标签键。如需传入该值,则不能输入空字符串。 一个标签键最多支持 128 个字符,不能以 |
KeyTest |
| Value |
string |
否 |
资源的标签值。最多支持输入 20 个标签值。如需传入该值,可以输入空字符串。 最多支持 128 个字符,不能以 |
ValueTest |
| SecurityProtectionEnabled |
boolean |
否 |
是否开启 DDoS 防护(增强版)。取值:
说明
该参数已废弃。 |
false |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回参数列表。 |
||
| PageSize |
integer |
分页查询时每页的行数。 |
10 |
| RequestId |
string |
请求 ID。 |
20E6FD1C-7321-4DAD-BDFD-EC8769E4AA33 |
| PageNumber |
integer |
列表的页码。 |
1 |
| TotalCount |
integer |
列表条目数。 |
1 |
| CommonBandwidthPackages |
object |
||
| CommonBandwidthPackage |
array<object> |
共享带宽的详细信息。 |
|
|
array<object> |
共享带宽的详细信息。 |
||
| ReservationActiveTime |
string |
续费生效时间,格式为 |
2018-08-30T16:00:00Z |
| Status |
string |
共享带宽实例的状态。
|
Available |
| CreationTime |
string |
共享带宽实例创建的时间,格式为 |
2017-06-28T06:39:20Z |
| ReservationOrderType |
string |
续费变配方式。
|
RENEWCHANGE |
| DeletionProtection |
boolean |
是否开启删除保护。
|
true |
| ReservationInternetChargeType |
string |
变配之后的计费方式。 **PayByTraffic**:按流量计费。 |
PayByBandwidth |
| Ratio |
integer |
共享带宽的保底百分比,仅返回:20。 说明
仅中国站支持该参数。 |
20 |
| InstanceChargeType |
string |
共享带宽实例的计费类型。 **PostPaid**:按量计费。 |
PostPaid |
| RegionId |
string |
共享带宽实例所在的地域 ID。 |
cn-hangzhou |
| BandwidthPackageId |
string |
共享带宽的 ID。 |
cbwp-bp1t3sm1ffzmshdki**** |
| ServiceManaged |
integer |
是否为服务账号创建的资源。
|
1 |
| Bandwidth |
string |
共享带宽的带宽峰值, 单位:Mbps。 |
20 |
| Description |
string |
共享带宽的描述信息。 |
none |
| ExpiredTime |
string |
共享带宽实例的过期时间,格式为 |
2019-01-15T03:08:37Z |
| ReservationBandwidth |
string |
变配之后的带宽值, 单位:Mbps。 |
1000 |
| ResourceGroupId |
string |
资源组 ID。 |
rg-acfmxazb4ph**** |
| InternetChargeType |
string |
共享带宽的计费方式。
|
PayByBandwidth |
| BusinessStatus |
string |
共享带宽实例的业务状态。
|
Normal |
| Name |
string |
共享带宽的名称。 |
abc |
| ISP |
string |
线路类型。
如果您是单线带宽的白名单用户,返回类型还可能为:
如果您是杭州金融云用户,返回BGP_FinanceCloud。 |
BGP |
| HasReservationData |
string |
是否有待生效的订单。
|
false |
| PublicIpAddresses |
object |
||
| PublicIpAddresse |
array<object> |
共享带宽实例中的公网 IP 地址。 |
|
|
object |
共享带宽实例中的公网 IP 地址。 |
||
| IpAddress |
string |
公网 IP 地址。 |
47.95.XX.XX |
| AllocationId |
string |
公网 IP 的实例 ID。 |
eip-bp13e9i2qst4g6jzi**** |
| BandwidthPackageIpRelationStatus |
string |
共享带宽和 EIP 的关联状态。
|
BINDED |
| SecurityProtectionTypes |
object |
||
| SecurityProtectionType |
array |
安全防护级别。
说明
该参数已废弃。 |
|
|
string |
安全防护级别。
说明
该参数已废弃。 |
AntiDDoS_Enhanced |
|
| Tags |
object |
||
| Tag |
array<object> |
共享带宽实例的标签列表。 |
|
|
object |
共享带宽实例的标签列表。 |
||
| Key |
string |
共享带宽实例的标签键。 |
KeyTest |
| Value |
string |
共享带宽实例的标签值。 |
ValueTest |
| BizType |
string |
共享带宽的业务类型。
|
CloudBox |
| Zone |
string |
共享带宽的可用区。 当可用区资源过载时,为保证服务稳定性,共享带宽可能会被调度至其他可用区。 |
ap-southeast-1-lzdvn-cb |
示例
正常返回示例
JSON格式
{
"PageSize": 10,
"RequestId": "20E6FD1C-7321-4DAD-BDFD-EC8769E4AA33",
"PageNumber": 1,
"TotalCount": 1,
"CommonBandwidthPackages": {
"CommonBandwidthPackage": [
{
"ReservationActiveTime": "2018-08-30T16:00:00Z",
"Status": "Available",
"CreationTime": "2017-06-28T06:39:20Z",
"ReservationOrderType": "RENEWCHANGE",
"DeletionProtection": true,
"ReservationInternetChargeType": "PayByBandwidth",
"Ratio": 20,
"InstanceChargeType": "PostPaid",
"RegionId": "cn-hangzhou",
"BandwidthPackageId": "cbwp-bp1t3sm1ffzmshdki****",
"ServiceManaged": 1,
"Bandwidth": "20",
"Description": "none",
"ExpiredTime": "2019-01-15T03:08:37Z",
"ReservationBandwidth": "1000",
"ResourceGroupId": "rg-acfmxazb4ph****",
"InternetChargeType": "PayByBandwidth",
"BusinessStatus": "Normal",
"Name": "abc",
"ISP": "BGP",
"HasReservationData": "false",
"PublicIpAddresses": {
"PublicIpAddresse": [
{
"IpAddress": "47.95.XX.XX",
"AllocationId": "eip-bp13e9i2qst4g6jzi****",
"BandwidthPackageIpRelationStatus": "BINDED"
}
]
},
"SecurityProtectionTypes": {
"SecurityProtectionType": [
"AntiDDoS_Enhanced"
]
},
"Tags": {
"Tag": [
{
"Key": "KeyTest",
"Value": "ValueTest"
}
]
},
"BizType": "CloudBox",
"Zone": "ap-southeast-1-lzdvn-cb"
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidBandwidthPackageIdNumber.NotSupported | The number of BandwidthPackageIds exceeds the limit. | 共享带宽包的数量超过Quota限制。 |
| 400 | InvalidResourceGroupId | The specified ResourceGroupId does not exist. | 资源组ID不存在。 |
| 400 | OperationUnsupported.ResourceGroupId | ResourceGroup is not supported in this region. | 资源组功能未打开。 |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。