Description
Show usage volume of Swift.
The unit is byte.
Request URL
Account API v1.0
GET /v1/{tenant_id}/object-storage/rrd/size
Request Paramters
| Parameter | Value | Style | Description |
|---|---|---|---|
| X-Auth-Token | User Token | header | |
| tenant_id | URI | ||
| server_id | Server ID | URI | |
| start_date_raw (Optional) | Starting time (UNIX Time) | query | Default: 1 day ago |
| end_date_raw (Optional) | Ending Time (UNIX Time) | query | Default: Current Time |
| mode (Optional) | Mode of Data Handling | query | {average,max,min} Default: average |
Request Json
This operation does not accept a request body.
Normal response codes
200
Example
curl -i -X GET \ -H "Accept: application/json" \ -H "X-Auth-Token: a187673dea394169a6c9b880d9d467a7" \ https://account.tyo1.cloud.z.com/v1/487727e3921d44e3bfe7ebb337bf085e/object-storage/rrd/size?start_date_raw=1427161890\&end_date_raw=1427164620\&mode=average
HTTP/1.1 200 OK
Date: Thu, 19 Mar 2015 01:31:26 GMT
Server: Apache
Content-Length: 1337
Content-Type: application/json
{
"size": {
"schema": [
"unixtime",
"value"
],
"data": [
[
1427162400,
485099075
],
[
1427166000,
485099075
]
]
}
}