POST
/
storage
/
stats
/
v1
/
storage
/
usage
/
total
curl --request POST \
  --url https://api.gcore.com/storage/stats/v1/storage/usage/total \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "2006-01-02",
  "locations": [
    "fra",
    "mia",
    "sin",
    "ams",
    "s-ed1",
    "s-darz1",
    "s-dt2",
    "lux",
    "drf"
  ],
  "storages": [
    "123-myStorage"
  ],
  "to": "2006-01-02"
}'
{
  "data": [
    {
      "metrics": {
        "file_quantity_sum_max": 123,
        "requests_in_sum": 123,
        "requests_out_edges_sum": 123,
        "requests_out_wo_edges_sum": 123,
        "requests_sum": 123,
        "size_sum_bytes_hour": 123,
        "size_sum_max": 123,
        "size_sum_mean": 123,
        "traffic_in_sum": 123,
        "traffic_out_edges_sum": 123,
        "traffic_out_wo_edges_sum": 123,
        "traffic_sum": 123
      }
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json

Response

200
application/json

StorageUsageTotalEndpointRes

The response is of type object.