# View Quota Usage Report - GetUFileReport

## Overview

View Quota Usage Report

 > 💡 Note: 1. The parameters EntTime and StartTime are both unix timestamps. It must be ensured that EndTime < StartTime, and the time difference is less than one year.




## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetUFileReport`.                      | **Yes** |
| **PublicKey**  | string  | AccessKey ID, obtained from [Console](https://console.feb.sg/uaccount/api_manage)                                              | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Region. See [List of Regions and Availability Zones](/docs/api/summary/regionlist) |**Yes**|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |No|
| **StartTime** | int | Query start time, unit s |**Yes**|
| **EndTime** | int | Query end time, unit s |**Yes**|
| **FakeRegion** | string | bucket fake region |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **DataSet** | array[[*UFileReportSet*](#ufilereportset)] | Report content parameters see UFileReportSet |No|

#### Data Model


#### UFileReportSet

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Time** | int | Quota consumption time, Unix timestamp, accurate to the date |No|
| **StorageVolume** | float | Quota consumption of storage capacity used on the same day, unit: GB*Day |No|
| **DownloadTraffic** | float | Quota consumption of download traffic used on the day, unit: GB |No|
| **RequestCount** | float | The number of requests used on the day of quota consumption, unit: 10,000 times |No|

## Example

### Request Example
    
```
https://api.feb.sg/?Action=GetUFileReport
&Region=cn-bj2
&StartTime=1427558400
&EndTime=1427644799
&FakeRegion=LHAHZBzg
```

### Response Example
    
```json
{
  "Action": "GetUFileReportResponse",
  "DataSet": [
    {
      "DownloadTraffic": 10,
      "RequestCount": 10343,
      "StorageVolume": 32,
      "Time": 1427558400
    }
  ],
  "Retcode": 0
}
```





