DescribeCommonBandwidthPackages
调用DescribeCommonBandwidthPackages接口查询指定地域中共享带宽实例列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
|
名称 |
类型 |
是否必选 |
示例值 |
描述 |
| Action | String | 是 | DescribeCommonBandwidthPackages | 系统规定参数。取值:DescribeCommonBandwidthPackages。 |
| IncludeReservationData | Boolean | 否 | false | 是否包含未生效的订购数据。取值:
|
| RegionId | String | 是 | cn-hangzhou | 共享带宽所在的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
| BandwidthPackageId | String | 否 | cbwp-2ze2ic1xd2qeqk145**** | 共享带宽实例的ID。 |
| ResourceGroupId | String | 否 | rg-acfmxazb4ph**** | 资源组ID。 |
| Name | String | 否 | test123 | 共享带宽实例名称。 |
| PageNumber | Integer | 否 | 1 | 列表的页码。默认值:1。 |
| PageSize | Integer | 否 | 10 | 分页查询时每页的行数。最大值:50。默认值:10。 |
| DryRun | Boolean | 否 | false | 是否只预检此次请求。取值:
|
| Tag.N.Key | String | 否 | KeyTest | 资源的标签键。最多支持输入20个标签键。如需传入该值,则不能输入空字符串。 一个标签键最多支持128个字符,不能以 |
| Tag.N.Value | String | 否 | ValueTest | 资源的标签值。最多支持输入20个标签值。如需传入该值,可以输入空字符串。 最多支持128个字符,不能以 |
| SecurityProtectionEnabled | Boolean | 否 | false | 是否开启DDoS防护(增强版)。取值:
|
返回数据
名称 |
类型 |
示例值 |
描述 |
| PageSize | Integer | 10 | 分页查询时每页的行数。 |
| RequestId | String | 20E6FD1C-7321-4DAD-BDFD-EC8769E4AA33 | 请求ID。 |
| PageNumber | Integer | 1 | 列表的页码。 |
| TotalCount | Integer | 1 | 列表条目数。 |
| CommonBandwidthPackages | Array of CommonBandwidthPackage | 共享带宽的详细信息。 |
|
| CommonBandwidthPackage | |||
| 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 | PayByBandwidth | 变配之后的计费方式。 PayBy95:按增强型95计费。 PayByBandwidth:按带宽计费。 PayByDominantTraffic:按主流量计费。 |
| Ratio | Integer | 20 | 共享带宽的保底百分比,仅返回:20。 当InternetChargeType取值PayBy95时返回该参数。 说明
仅中国站支持该参数。 |
| InstanceChargeType | String | PostPaid | 共享带宽实例的计费类型。 PostPaid:按量计费。 PrePaid:包年包月。 |
| RegionId | String | cn-hangzhou | 共享带宽实例所在的地域ID。 |
| BandwidthPackageId | String | cbwp-bp1t3sm1ffzmshdki**** | 共享带宽的ID。 |
| ServiceManaged | Integer | 1 | 是否为服务账号创建的资源。
|
| Bandwidth | String | 20 | 共享带宽的带宽峰值, 单位:Mbps。 |
| Description | String | none | 共享带宽的描述信息。 |
| ExpiredTime | String | 2019-01-15T03:08:37Z | 共享带宽实例的过期时间,格式为 |
| ReservationBandwidth | String | 1000 | 变配之后的带宽值, 单位:Mbps。 |
| ResourceGroupId | String | rg-acfmxazb4ph**** | 资源组ID。 |
| InternetChargeType | String | PayByBandwidth | 共享带宽的计费方式。 PayBy95:按增强型95计费。 PayByBandwidth:按带宽计费。 PayByDominantTraffic:按主流量计费。 |
| BusinessStatus | String | Normal | 共享带宽实例的业务状态。
|
| Name | String | abc | 共享带宽的名称。 |
| ISP | String | BGP | 线路类型。
如果您是单线带宽的白名单用户,返回类型还可能为:
如果您是杭州金融云用户,返回BGP_FinanceCloud。 |
| HasReservationData | String | false | 是否有待生效的订单。
|
| PublicIpAddresses | Array of PublicIpAddresse | 共享带宽实例中的公网IP地址。 |
|
| PublicIpAddresse | |||
| IpAddress | String | 47.95.XX.XX | 公网IP地址。 |
| AllocationId | String | eip-bp13e9i2qst4g6jzi**** | 公网IP的实例ID。 |
| BandwidthPackageIpRelationStatus | String | BINDED | 共享带宽和EIP的关联状态。
|
| SecurityProtectionTypes | Array of String | AntiDDoS_Enhanced | 安全防护级别。
|
| Tags | Array of Tag | 共享带宽实例的标签列表。 |
|
| Tag | |||
| Key | String | KeyTest | 共享带宽实例的标签键。 |
| Value | String | ValueTest | 共享带宽实例的标签值。 |
| BizType | String | CloudBox | 共享带宽的业务类型。
|
| Zone | String | ap-southeast-1-lzdvn-cb | 共享带宽的可用区。 仅云盒共享带宽返回该参数。非云盒共享带宽返回为空。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeCommonBandwidthPackages
&IncludeReservationData=false
&RegionId=cn-hangzhou
&BandwidthPackageId=cbwp-2ze2ic1xd2qeqk145****
&ResourceGroupId=rg-acfmxazb4ph****
&Name=test123
&PageNumber=1
&PageSize=10
&DryRun=false
&Tag=[{"Key":"KeyTest","Value":"ValueTest"}]
&SecurityProtectionEnabled=false
&公共请求参数
正常返回示例
XML格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeCommonBandwidthPackagesResponse>
<PageSize>10</PageSize>
<RequestId>20E6FD1C-7321-4DAD-BDFD-EC8769E4AA33</RequestId>
<PageNumber>1</PageNumber>
<TotalCount>1</TotalCount>
<CommonBandwidthPackages>
<ReservationActiveTime>2018-08-30T16:00:00Z</ReservationActiveTime>
<Status>Available</Status>
<CreationTime>2017-06-28T06:39:20Z</CreationTime>
<ReservationOrderType>RENEWCHANGE</ReservationOrderType>
<DeletionProtection>true</DeletionProtection>
<ReservationInternetChargeType>PayByBandwidth</ReservationInternetChargeType>
<Ratio>20</Ratio>
<InstanceChargeType>PostPaid</InstanceChargeType>
<RegionId>cn-hangzhou</RegionId>
<BandwidthPackageId>cbwp-bp1t3sm1ffzmshdki****</BandwidthPackageId>
<ServiceManaged>1</ServiceManaged>
<Bandwidth>20</Bandwidth>
<Description>none</Description>
<ExpiredTime>2019-01-15T03:08:37Z</ExpiredTime>
<ReservationBandwidth>1000</ReservationBandwidth>
<ResourceGroupId>rg-acfmxazb4ph****</ResourceGroupId>
<InternetChargeType>PayByBandwidth</InternetChargeType>
<BusinessStatus>Normal</BusinessStatus>
<Name>abc</Name>
<ISP>BGP</ISP>
<HasReservationData>false</HasReservationData>
<PublicIpAddresses>
<IpAddress>47.95.XX.XX</IpAddress>
<AllocationId>eip-bp13e9i2qst4g6jzi****</AllocationId>
<BandwidthPackageIpRelationStatus>BINDED</BandwidthPackageIpRelationStatus>
</PublicIpAddresses>
<SecurityProtectionTypes>AntiDDoS_Enhanced</SecurityProtectionTypes>
<Tags>
<Key>KeyTest</Key>
<Value>ValueTest</Value>
</Tags>
<BizType>CloudBox</BizType>
<Zone>ap-southeast-1-lzdvn-cb</Zone>
</CommonBandwidthPackages>
</DescribeCommonBandwidthPackagesResponse>
JSON格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"PageSize" : 10,
"RequestId" : "20E6FD1C-7321-4DAD-BDFD-EC8769E4AA33",
"PageNumber" : 1,
"TotalCount" : 1,
"CommonBandwidthPackages" : [ {
"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" : [ {
"IpAddress" : "47.95.XX.XX",
"AllocationId" : "eip-bp13e9i2qst4g6jzi****",
"BandwidthPackageIpRelationStatus" : "BINDED"
} ],
"SecurityProtectionTypes" : [ "AntiDDoS_Enhanced" ],
"Tags" : [ {
"Key" : "KeyTest",
"Value" : "ValueTest"
} ],
"BizType" : "CloudBox",
"Zone" : "ap-southeast-1-lzdvn-cb"
} ]
}
错误码
|
HttpCode |
错误码 |
错误信息 |
描述 |
| 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. | 指定的RegionId不存在。 |
访问错误中心查看更多错误码。