技术员联盟提供win764位系统下载,win10,win7,xp,装机纯净版,64位旗舰版,绿色软件,免费软件下载基地!

当前位置:主页 > 教程 > 服务器类 >

阿里云如何查询共享带宽包列表

来源:技术员联盟┆发布时间:2017-05-02 23:30┆点击:

  查询共享带宽包列表

  描述

  查询指定地域的BandwidthPackage列表。此接口支持分页查询,每页的数量默认为 10 条。

  请求参数

名称 类型 是否必须 描述
Action   String     系统规定参数,取值:DescribeBandwidthPackages  
RegionId   String     指定查询的地域  
BandwidthPackageId   String     过滤类参数,即,只返回指定BandwidthPackage的结果  
不指定该参数则为不过滤。              
NatGatewayId   String     过滤类参数,即,只返回指定NatGateway上的BandwidthPackage  
不指定该参数则为不过滤。              
PageNumber   Integer     实例状态列表的页码,起始值为 1,默认值为 1  
PageSize   Integer     分页查询时设置的每页行数,最大值 50 行,默认为 10  

  返回参数

名称 类型 描述
BandwidthPackages   BandwidthPackageSetType   BandwidthPackage列表  
TotalCount   Integer   列表条条目数  
PageNumber   Integer   当前页码  
PageSize   Integer   当前分页包含多少条目  

  错误码

错误代码 描述 Http 状态码 语义
InvalidRegionId.NotFound   Specified value of “RegionId” is not supported.   404   指定的 Region 不存在  

  示例

  请求示例

  https://ecs.aliyuncs.com/?SignatureVersion=1.0&Format=json&TimeStamp=2016-05-23T03%3A33%3A30Z&RegionId=cn-shanghai&NatGatewayId=ngw-112za33e4&AccessKeyId=jZgi0oyrQ6ihgKp9&SignatureMethod=HMAC-SHA1&Version=2014-05-26&Signature=KN0C2Q4TUZtfECBn1c2lOdBzrb8%3D&action=DescribeBandwidthPackages&SignatureNonce=1e8941ae-2097-11e6-acbb-2cf0ee28adf2

  返回示例

  JSON格式

  { "BandwidthPackages": { "BandwidthPackage": [ { "Bandwidth": "150", "BandwidthPackageId": "bwp-11odxu2k7", "BusinessStatus": "Normal", "CreationTime": "2016-05-23T03:26:24Z", "Description": "", "InstanceChargeType": "PostPaid", "InternetChargeType": "PayByBandwidth", "IpCount": "5", "Name": "", "NatGatewayId": "ngw-112za33e4", "PublicIpAddresses": { "PublicIpAddresse": [ { "AllocationId": "nateip-11iopy3sl", "IpAddress": "139.224.22.107" }, { "AllocationId": "nateip-11pt1f9ph", "IpAddress": "139.224.22.55" }, { "AllocationId": "nateip-111ul670c", "IpAddress": "139.224.22.79" }, { "AllocationId": "nateip-11ogfjj85", "IpAddress": "139.224.22.59" }, { "AllocationId": "nateip-11s2jempe", "IpAddress": "139.224.22.99" } ] }, "RegionId": "cn-shanghai", "Status": "Available", "ZoneId": "cn-shanghai-a" } ] }, "PageNumber": 1, "PageSize": 10, "RequestId": "14406B86-7CA1-4907-9755-86096F476A4F", "TotalCount": 1}