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:
https://business.aliyuncs.com/?Action=QueryUserOmsData&DataType=Hour&EndTime=2019-04-18T09:15:54Z&StartTime=2019-01-01T09:15:54Z&Table=oss&<Public request parameters>
Sample responses
For Hour:
{"Data": {"OmsData": [{"LessthanMonthDatasize": "0","SyncIn": "0","RetrievalData": "0","ChargedDatasize": "0","Bucket": "quota_for_get_service_","NetworkIn": "0","PutRequest": "3","NetworkOut": "0","GetRequest": "0","ProcessImgSize": "0","SyncOut": "0","Storage": "0","Region": "cn-hangzhou","ProviderId": "26842","CdnIn": "0","EndTime": "2019-03-20T02:00:00Z","StartTime": "2019-03-20T01:00:00Z","StorageType": "standard","ProcessI": "0","CdnOut": "0"}],"HostId": "cn"},"Message": "Successful!","RequestId": "4C489CA2-5036-4B06-95A9-34AF55FDE1B2","Success": true,"Code": "Success"}