All Products
Search
Document Center

OSS Hour Data

Last Updated: Jun 18, 2020

API Name

QueryUserOmsData

Overview

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

Request parameters

Name Type Required Description
Table String Yes oss
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
LessthanMonthDatasize String
SyncIn String
RetrievalData String
ChargedDatasize Integer
Bucket String The bucket name created by the user in OSS
NetworkIn Integer The amount of data flowing into the OSS from the external network during the StartTime and EndTime, in Bytes
NetworkOut Integer The amount of data flowing out of the OSS to the external network during the StartTime and EndTime, in Bytes
PutRequest Integer Number of PUT requests that occurred during the StartTime and EndTime
GetRequest Integer Number of GET requests that occurred during the StartTime and EndTime
ProcessImgSize Integer
SyncOut String
Storage Integer Storage space, in Bytes
CdnIn String
StorageType String Storage space type
ProcessI String
CdnOut String
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=oss
  6. &<Public request parameters>

Sample responses

For Hour:

  1. {
  2. "Data": {
  3. "OmsData": [
  4. {
  5. "LessthanMonthDatasize": "0",
  6. "SyncIn": "0",
  7. "RetrievalData": "0",
  8. "ChargedDatasize": "0",
  9. "Bucket": "quota_for_get_service_",
  10. "NetworkIn": "0",
  11. "PutRequest": "3",
  12. "NetworkOut": "0",
  13. "GetRequest": "0",
  14. "ProcessImgSize": "0",
  15. "SyncOut": "0",
  16. "Storage": "0",
  17. "Region": "cn-hangzhou",
  18. "ProviderId": "26842",
  19. "CdnIn": "0",
  20. "EndTime": "2019-03-20T02:00:00Z",
  21. "StartTime": "2019-03-20T01:00:00Z",
  22. "StorageType": "standard",
  23. "ProcessI": "0",
  24. "CdnOut": "0"
  25. }
  26. ],
  27. "HostId": "cn"
  28. },
  29. "Message": "Successful!",
  30. "RequestId": "4C489CA2-5036-4B06-95A9-34AF55FDE1B2",
  31. "Success": true,
  32. "Code": "Success"
  33. }