全部产品
云市场

ECS小时数据

更新时间:2019-07-08 09:10:36

接口名

QueryUserOmsData

描述

查询ECS产品按小时计量的数据信息。

请求参数

名称 类型 是否必填 说明
Table String ecs
DataType String 计量数据时间类型。Hour:小时
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行

返回参数

名称 类型 说明
HostId String 用户所属站点,cn为国内站
CPUs Integer 用户购买的CPU Core数量
InstanceId String 实例ID
OsDiskSize Integer 用户购买的OS盘大小,单位Bytes
ImageOS String 镜像OS类型
NetworkIn Integer 在StartTime和EndTime时间段内发生的从外部网络流入ECS的数据量,单位Bytes
Disk Integer 用户购买的数据盘容量,单位Bytes
NetworkOut Integer 在StartTime和EndTime时间段内发生的从ECS流出到外部网络的数据量,单位Bytes
InstanceTypeName String 实例类型名称
DataDiskSize Integer 数据盘大小,单位:GB
IoOptimized Integer 创建的 ECS 是否 I/O 优化
ImageSize Integer 镜像大小
Memory Integer 用户购买的内存容量,单位Bytes
Region String 地域
OsDiskType String 用户购买的OS盘类型
TmpDataDiskSize Integer 用户购买的本地磁盘容量,单位Bytes
ProviderId String 产品供应商对应编号,默认26842
SsdDataDiskSize Integer 用户购买的本地ssd磁盘容量,单位Bytes
CloudDataDiskSize Integer 用户购买的云磁盘容量,单位Bytes
Bandwidth Integer 用户购买的带宽,单位bps
EndTime String 计费数据发生结束时间
StartTime String 计费数据发生开始时间

请求示例

示例(按小时):

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

返回示例

示例(按小时):

  1. {
  2. "Data": {
  3. "OmsData": [
  4. {
  5. "CPUs": "1",
  6. "InstanceId": "i-bp1hmito9v058zbua0eb",
  7. "OsDiskSize": "42949672960",
  8. "NetworkIn": "0",
  9. "NetworkOut": "0",
  10. "ImageOS": "Windows Server 2016",
  11. "Disk": "0",
  12. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  13. "DataDiskSize": "0",
  14. "IoOptimized": "true",
  15. "ImageSize": "42949672960",
  16. "Memory": "536870912",
  17. "Region": "cn-hangzhou-dg-a01",
  18. "OsDiskType": "cloud_efficiency",
  19. "TmpDataDiskSize": "0",
  20. "ProviderId": "26842",
  21. "EndTime": "2019-01-01T11:00:00Z",
  22. "SsdDataDiskSize": "0",
  23. "StartTime": "2019-01-01T10:00:00Z",
  24. "CloudDataDiskSize": "0",
  25. "Bandwidth": "1048576"
  26. },
  27. {
  28. "CPUs": "1",
  29. "InstanceId": "i-bp1hmito9v058zbua0eb",
  30. "OsDiskSize": "42949672960",
  31. "NetworkIn": "0",
  32. "NetworkOut": "0",
  33. "ImageOS": "Windows Server 2016",
  34. "Disk": "0",
  35. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  36. "DataDiskSize": "0",
  37. "IoOptimized": "true",
  38. "ImageSize": "42949672960",
  39. "Memory": "536870912",
  40. "Region": "cn-hangzhou-dg-a01",
  41. "OsDiskType": "cloud_efficiency",
  42. "TmpDataDiskSize": "0",
  43. "ProviderId": "26842",
  44. "EndTime": "2019-01-01T12:00:00Z",
  45. "SsdDataDiskSize": "0",
  46. "StartTime": "2019-01-01T11:00:00Z",
  47. "CloudDataDiskSize": "0",
  48. "Bandwidth": "1048576"
  49. },
  50. {
  51. "CPUs": "1",
  52. "InstanceId": "i-bp1hmito9v058zbua0eb",
  53. "OsDiskSize": "42949672960",
  54. "NetworkIn": "0",
  55. "NetworkOut": "0",
  56. "ImageOS": "Windows Server 2016",
  57. "Disk": "0",
  58. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  59. "DataDiskSize": "0",
  60. "IoOptimized": "true",
  61. "ImageSize": "42949672960",
  62. "Memory": "536870912",
  63. "Region": "cn-hangzhou-dg-a01",
  64. "OsDiskType": "cloud_efficiency",
  65. "TmpDataDiskSize": "0",
  66. "ProviderId": "26842",
  67. "EndTime": "2019-01-01T13:00:00Z",
  68. "SsdDataDiskSize": "0",
  69. "StartTime": "2019-01-01T12:00:00Z",
  70. "CloudDataDiskSize": "0",
  71. "Bandwidth": "1048576"
  72. },
  73. {
  74. "CPUs": "1",
  75. "InstanceId": "i-bp1hmito9v058zbua0eb",
  76. "OsDiskSize": "42949672960",
  77. "NetworkIn": "0",
  78. "NetworkOut": "0",
  79. "ImageOS": "Windows Server 2016",
  80. "Disk": "0",
  81. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  82. "DataDiskSize": "0",
  83. "IoOptimized": "true",
  84. "ImageSize": "42949672960",
  85. "Memory": "536870912",
  86. "Region": "cn-hangzhou-dg-a01",
  87. "OsDiskType": "cloud_efficiency",
  88. "TmpDataDiskSize": "0",
  89. "ProviderId": "26842",
  90. "EndTime": "2019-01-01T14:00:00Z",
  91. "SsdDataDiskSize": "0",
  92. "StartTime": "2019-01-01T13:00:00Z",
  93. "CloudDataDiskSize": "0",
  94. "Bandwidth": "1048576"
  95. },
  96. {
  97. "CPUs": "1",
  98. "InstanceId": "i-bp1hmito9v058zbua0eb",
  99. "OsDiskSize": "42949672960",
  100. "NetworkIn": "0",
  101. "NetworkOut": "0",
  102. "ImageOS": "Windows Server 2016",
  103. "Disk": "0",
  104. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  105. "DataDiskSize": "0",
  106. "IoOptimized": "true",
  107. "ImageSize": "42949672960",
  108. "Memory": "536870912",
  109. "Region": "cn-hangzhou-dg-a01",
  110. "OsDiskType": "cloud_efficiency",
  111. "TmpDataDiskSize": "0",
  112. "ProviderId": "26842",
  113. "EndTime": "2019-01-01T15:00:00Z",
  114. "SsdDataDiskSize": "0",
  115. "StartTime": "2019-01-01T14:00:00Z",
  116. "CloudDataDiskSize": "0",
  117. "Bandwidth": "1048576"
  118. },
  119. {
  120. "CPUs": "1",
  121. "InstanceId": "i-bp1hmito9v058zbua0eb",
  122. "OsDiskSize": "42949672960",
  123. "NetworkIn": "0",
  124. "NetworkOut": "0",
  125. "ImageOS": "Windows Server 2016",
  126. "Disk": "0",
  127. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  128. "DataDiskSize": "0",
  129. "IoOptimized": "true",
  130. "ImageSize": "42949672960",
  131. "Memory": "536870912",
  132. "Region": "cn-hangzhou-dg-a01",
  133. "OsDiskType": "cloud_efficiency",
  134. "TmpDataDiskSize": "0",
  135. "ProviderId": "26842",
  136. "EndTime": "2019-01-01T16:00:00Z",
  137. "SsdDataDiskSize": "0",
  138. "StartTime": "2019-01-01T15:00:00Z",
  139. "CloudDataDiskSize": "0",
  140. "Bandwidth": "1048576"
  141. },
  142. {
  143. "CPUs": "1",
  144. "InstanceId": "i-bp1hmito9v058zbua0eb",
  145. "OsDiskSize": "42949672960",
  146. "NetworkIn": "0",
  147. "NetworkOut": "0",
  148. "ImageOS": "Windows Server 2016",
  149. "Disk": "0",
  150. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  151. "DataDiskSize": "0",
  152. "IoOptimized": "true",
  153. "ImageSize": "42949672960",
  154. "Memory": "536870912",
  155. "Region": "cn-hangzhou-dg-a01",
  156. "OsDiskType": "cloud_efficiency",
  157. "TmpDataDiskSize": "0",
  158. "ProviderId": "26842",
  159. "EndTime": "2019-01-01T17:00:00Z",
  160. "SsdDataDiskSize": "0",
  161. "StartTime": "2019-01-01T16:00:00Z",
  162. "CloudDataDiskSize": "0",
  163. "Bandwidth": "1048576"
  164. },
  165. {
  166. "CPUs": "1",
  167. "InstanceId": "i-bp1hmito9v058zbua0eb",
  168. "OsDiskSize": "42949672960",
  169. "NetworkIn": "0",
  170. "NetworkOut": "0",
  171. "ImageOS": "Windows Server 2016",
  172. "Disk": "0",
  173. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  174. "DataDiskSize": "0",
  175. "IoOptimized": "true",
  176. "ImageSize": "42949672960",
  177. "Memory": "536870912",
  178. "Region": "cn-hangzhou-dg-a01",
  179. "OsDiskType": "cloud_efficiency",
  180. "TmpDataDiskSize": "0",
  181. "ProviderId": "26842",
  182. "EndTime": "2019-01-01T18:00:00Z",
  183. "SsdDataDiskSize": "0",
  184. "StartTime": "2019-01-01T17:00:00Z",
  185. "CloudDataDiskSize": "0",
  186. "Bandwidth": "1048576"
  187. },
  188. {
  189. "CPUs": "1",
  190. "InstanceId": "i-bp1hmito9v058zbua0eb",
  191. "OsDiskSize": "42949672960",
  192. "NetworkIn": "0",
  193. "NetworkOut": "0",
  194. "ImageOS": "Windows Server 2016",
  195. "Disk": "0",
  196. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  197. "DataDiskSize": "0",
  198. "IoOptimized": "true",
  199. "ImageSize": "42949672960",
  200. "Memory": "536870912",
  201. "Region": "cn-hangzhou-dg-a01",
  202. "OsDiskType": "cloud_efficiency",
  203. "TmpDataDiskSize": "0",
  204. "ProviderId": "26842",
  205. "EndTime": "2019-01-01T19:00:00Z",
  206. "SsdDataDiskSize": "0",
  207. "StartTime": "2019-01-01T18:00:00Z",
  208. "CloudDataDiskSize": "0",
  209. "Bandwidth": "1048576"
  210. },
  211. {
  212. "CPUs": "1",
  213. "InstanceId": "i-bp1hmito9v058zbua0eb",
  214. "OsDiskSize": "42949672960",
  215. "NetworkIn": "0",
  216. "NetworkOut": "0",
  217. "ImageOS": "Windows Server 2016",
  218. "Disk": "0",
  219. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  220. "DataDiskSize": "0",
  221. "IoOptimized": "true",
  222. "ImageSize": "42949672960",
  223. "Memory": "536870912",
  224. "Region": "cn-hangzhou-dg-a01",
  225. "OsDiskType": "cloud_efficiency",
  226. "TmpDataDiskSize": "0",
  227. "ProviderId": "26842",
  228. "EndTime": "2019-01-01T20:00:00Z",
  229. "SsdDataDiskSize": "0",
  230. "StartTime": "2019-01-01T19:00:00Z",
  231. "CloudDataDiskSize": "0",
  232. "Bandwidth": "1048576"
  233. },
  234. {
  235. "CPUs": "1",
  236. "InstanceId": "i-bp1hmito9v058zbua0eb",
  237. "OsDiskSize": "42949672960",
  238. "NetworkIn": "0",
  239. "NetworkOut": "0",
  240. "ImageOS": "Windows Server 2016",
  241. "Disk": "0",
  242. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  243. "DataDiskSize": "0",
  244. "IoOptimized": "true",
  245. "ImageSize": "42949672960",
  246. "Memory": "536870912",
  247. "Region": "cn-hangzhou-dg-a01",
  248. "OsDiskType": "cloud_efficiency",
  249. "TmpDataDiskSize": "0",
  250. "ProviderId": "26842",
  251. "EndTime": "2019-01-01T21:00:00Z",
  252. "SsdDataDiskSize": "0",
  253. "StartTime": "2019-01-01T20:00:00Z",
  254. "CloudDataDiskSize": "0",
  255. "Bandwidth": "1048576"
  256. },
  257. {
  258. "CPUs": "1",
  259. "InstanceId": "i-bp1hmito9v058zbua0eb",
  260. "OsDiskSize": "42949672960",
  261. "NetworkIn": "0",
  262. "NetworkOut": "0",
  263. "ImageOS": "Windows Server 2016",
  264. "Disk": "0",
  265. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  266. "DataDiskSize": "0",
  267. "IoOptimized": "true",
  268. "ImageSize": "42949672960",
  269. "Memory": "536870912",
  270. "Region": "cn-hangzhou-dg-a01",
  271. "OsDiskType": "cloud_efficiency",
  272. "TmpDataDiskSize": "0",
  273. "ProviderId": "26842",
  274. "EndTime": "2019-01-01T22:00:00Z",
  275. "SsdDataDiskSize": "0",
  276. "StartTime": "2019-01-01T21:00:00Z",
  277. "CloudDataDiskSize": "0",
  278. "Bandwidth": "1048576"
  279. },
  280. {
  281. "CPUs": "1",
  282. "InstanceId": "i-bp1hmito9v058zbua0eb",
  283. "OsDiskSize": "42949672960",
  284. "NetworkIn": "0",
  285. "NetworkOut": "0",
  286. "ImageOS": "Windows Server 2016",
  287. "Disk": "0",
  288. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  289. "DataDiskSize": "0",
  290. "IoOptimized": "true",
  291. "ImageSize": "42949672960",
  292. "Memory": "536870912",
  293. "Region": "cn-hangzhou-dg-a01",
  294. "OsDiskType": "cloud_efficiency",
  295. "TmpDataDiskSize": "0",
  296. "ProviderId": "26842",
  297. "EndTime": "2019-01-01T23:00:00Z",
  298. "SsdDataDiskSize": "0",
  299. "StartTime": "2019-01-01T22:00:00Z",
  300. "CloudDataDiskSize": "0",
  301. "Bandwidth": "1048576"
  302. },
  303. {
  304. "CPUs": "1",
  305. "InstanceId": "i-bp1hmito9v058zbua0eb",
  306. "OsDiskSize": "42949672960",
  307. "NetworkIn": "0",
  308. "NetworkOut": "0",
  309. "ImageOS": "Windows Server 2016",
  310. "Disk": "0",
  311. "InstanceTypeName": "ecs.t5-lc2m1.nano",
  312. "DataDiskSize": "0",
  313. "IoOptimized": "true",
  314. "ImageSize": "42949672960",
  315. "Memory": "536870912",
  316. "Region": "cn-hangzhou-dg-a01",
  317. "OsDiskType": "cloud_efficiency",
  318. "TmpDataDiskSize": "0",
  319. "ProviderId": "26842",
  320. "EndTime": "2019-01-02T00:00:00Z",
  321. "SsdDataDiskSize": "0",
  322. "StartTime": "2019-01-01T23:00:00Z",
  323. "CloudDataDiskSize": "0",
  324. "Bandwidth": "1048576"
  325. }
  326. ],
  327. "HostId": "cn",
  328. "Marker": "079:00000000000000002895:r:01_1711245632317223:02_vm:03_26842:04_i-bp1hmito9v058zbua0eb:05_000000000001546696800:"
  329. },
  330. "Message": "Successful!",
  331. "RequestId": "9A1F6898-EFAA-4C16-A38E-AA3A98FBF232",
  332. "Success": true,
  333. "Code": "Success"
  334. }