全部产品
云市场

共享带宽计量数据

更新时间:2019-07-09 10:19:55

接口名

QueryUserOmsData

描述

查询共享带宽产品按小时、天、月计量的数据信息。

请求参数

名称 类型 是否必填 说明
Table String CommonBandwidthPackage
DataType String 计量数据时间类型。Raw:小时,Month:月
StartTime String 请求的开始时间。日期格式按照ISO8601标准标示,并需要使用UTC时间。格式:yyyy-mm-ddThh:mm:ssZ
EndTime String 请求的结束时间。日期格式按照ISO8601标准标示,并需要使用UTC时间。格式:yyyy-mm-ddThh:mm:ssZ
Maker String 设定结果从NextToken之后按字母排序的第一个开始返回。默认从头返回
PageSize Integer 分页查询每页行数,1~200,默认100行

返回参数

名称 类型 说明
OmsData String 计量数据列表
HostId String 用户所属站点,cn为国内站
ChargeType String 购买方式,3:按带宽计费;95:按增强95计费
InstanceId String 实例ID
NetworkIn Integer 在StartTime和EndTime时间段内发生的从外部网络流入ECS的数据量,单位Bytes
Isp String 运营商
NetworkOut Integer 在StartTime和EndTime时间段内发生的从ECS流出到外部网络的数据量,单位否Bytes
Region String 地域
ProviderId String 产品供应商对应编号,默认26842
UserId String 用户id
ProductId String 产品ID
Bandwidth Integer 用户购买的带宽,单位bps
EndTime String 计费数据发生结束时间
StartTime String 计费数据发生开始时间

请求示例

示例(按小时):

  1. https://business.aliyuncs.com/? Action=QueryUserOmsData
  2. &DataType=Raw
  3. &EndTime=2019-07-02T09:15:54Z
  4. &StartTime=2018-04-18T09:15:54Z
  5. &Table=CommonBandwidthPackage
  6. &<公共请求参数>

示例(按月):

  1. https://business.aliyuncs.com/? Action=QueryUserOmsData
  2. &DataType=Month
  3. &EndTime=2019-07-02T09:15:54Z
  4. &StartTime=2018-04-18T09:15:54Z
  5. &Table=CommonBandwidthPackage
  6. &<公共请求参数>

返回示例

  1. "Data": {
  2. "OmsData": [
  3. {
  4. "ChargeType": "3",
  5. "Region": "cn-qingdao-cm5-a01",
  6. "Isp": "BGP",
  7. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  8. "ProviderId": "168**********77",
  9. "NetworkIn": "0",
  10. "EndTime": "2018-07-25T06:00:00Z",
  11. "NetworkOut": "0",
  12. "StartTime": "2018-07-25T05:00:00Z",
  13. "UserId": "102**********53",
  14. "ProductId": "CommonBandwidthPackage",
  15. "Bandwidth": "2097152"
  16. },
  17. {
  18. "ChargeType": "3",
  19. "Region": "cn-qingdao-cm5-a01",
  20. "Isp": "BGP",
  21. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  22. "ProviderId": "168**********77",
  23. "NetworkIn": "0",
  24. "EndTime": "2018-07-25T07:00:00Z",
  25. "NetworkOut": "0",
  26. "StartTime": "2018-07-25T06:00:00Z",
  27. "UserId": "102**********53",
  28. "ProductId": "CommonBandwidthPackage",
  29. "Bandwidth": "2097152"
  30. },
  31. {
  32. "ChargeType": "3",
  33. "Region": "cn-qingdao-cm5-a01",
  34. "Isp": "BGP",
  35. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  36. "ProviderId": "168**********77",
  37. "NetworkIn": "0",
  38. "EndTime": "2018-07-25T08:00:00Z",
  39. "NetworkOut": "0",
  40. "StartTime": "2018-07-25T07:00:00Z",
  41. "UserId": "102**********53",
  42. "ProductId": "CommonBandwidthPackage",
  43. "Bandwidth": "2097152"
  44. },
  45. {
  46. "ChargeType": "3",
  47. "Region": "cn-qingdao-cm5-a01",
  48. "Isp": "BGP",
  49. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  50. "ProviderId": "168**********77",
  51. "NetworkIn": "0",
  52. "EndTime": "2018-07-25T09:00:00Z",
  53. "NetworkOut": "0",
  54. "StartTime": "2018-07-25T08:00:00Z",
  55. "UserId": "102**********53",
  56. "ProductId": "CommonBandwidthPackage",
  57. "Bandwidth": "2097152"
  58. },
  59. {
  60. "ChargeType": "3",
  61. "Region": "cn-qingdao-cm5-a01",
  62. "Isp": "BGP",
  63. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  64. "ProviderId": "168**********77",
  65. "NetworkIn": "0",
  66. "EndTime": "2018-07-25T10:00:00Z",
  67. "NetworkOut": "0",
  68. "StartTime": "2018-07-25T09:00:00Z",
  69. "UserId": "102**********53",
  70. "ProductId": "CommonBandwidthPackage",
  71. "Bandwidth": "2097152"
  72. },
  73. {
  74. "ChargeType": "3",
  75. "Region": "cn-qingdao-cm5-a01",
  76. "Isp": "BGP",
  77. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  78. "ProviderId": "168**********77",
  79. "NetworkIn": "0",
  80. "EndTime": "2018-07-25T11:00:00Z",
  81. "NetworkOut": "0",
  82. "StartTime": "2018-07-25T10:00:00Z",
  83. "UserId": "102**********53",
  84. "ProductId": "CommonBandwidthPackage",
  85. "Bandwidth": "2097152"
  86. },
  87. {
  88. "ChargeType": "3",
  89. "Region": "cn-qingdao-cm5-a01",
  90. "Isp": "BGP",
  91. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  92. "ProviderId": "168**********77",
  93. "NetworkIn": "0",
  94. "EndTime": "2018-07-25T12:00:00Z",
  95. "NetworkOut": "0",
  96. "StartTime": "2018-07-25T11:00:00Z",
  97. "UserId": "102**********53",
  98. "ProductId": "CommonBandwidthPackage",
  99. "Bandwidth": "2097152"
  100. },
  101. {
  102. "ChargeType": "3",
  103. "Region": "cn-qingdao-cm5-a01",
  104. "Isp": "BGP",
  105. "InstanceId": "cbwp-m5ebc53ytd9x4d7qquko0",
  106. "ProviderId": "168**********77",
  107. "NetworkIn": "0",
  108. "EndTime": "2018-07-25T13:00:00Z",
  109. "NetworkOut": "0",
  110. "StartTime": "2018-07-25T12:00:00Z",
  111. "UserId": "102**********53",
  112. "ProductId": "CommonBandwidthPackage",
  113. "Bandwidth": "2097152"
  114. },
  115. ]
  116. }