All Products
Search
Document Center

ECS Hour Data

Last Updated: Jul 08, 2019

API Name

QueryUserOmsData

Overview

You can call this API to get original usage data of ECS product.

Request parameters

Name Type Required Description
Table String Yes ecs
DataType String Yes Time type, normally value is Hour
StartTime String Yes Data start time, format:yyyy-mm-ddThh:mm:ssZ
EndTime String Yes Data end time, format:yyyy-mm-ddThh:mm:ssZ
Maker String No Tag of last records of current request, using this parameter you can start next request with continuous records
PageSize Integer No 1~200,by default is 100

Response parameters

Name Type Required
HostId String User owned site
CPUs Integer Number of CPU Cores purchased by the user
InstanceId String Instance ID
OsDiskSize Integer OS disk size purchased by the user, in Bytes
ImageOS String Mirror OS type
NetworkIn Integer The amount of data flowing into the ECS from the external network that occurred during the StartTime and EndTime , in Bytes
Disk Integer Data disk capacity purchased by the user, in Bytes
NetworkOut Integer The amount of data flowing out of the ECS to the external network that occurred during the StartTime and EndTime , in Bytes
InstanceTypeName String Instance type name
DataDiskSize Integer Data disk size, in GB
IoOptimized Integer I/O optimization
ImageSize Integer Mirror size
Memory Integer Memory capacity purchased by the user, in Bytes
Region String Region
OsDiskType String OS disk type purchased by the user
TmpDataDiskSize Integer Local disk capacity purchased by the user, in Bytes
ProviderId String Product supplier corresponding number, default 26842
SsdDataDiskSize Integer Local ssd disk capacity purchased by the user, in Bytes
CloudDataDiskSize Integer Cloud disk capacity purchased by the user, in Bytes
Bandwidth Integer Bandwidth, in bps
EndTime String Billing data end time
StartTime String Billing data start time

Sample requests

For Hour:

  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

Sample responses

For Hour:

  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. }