POST
/
storage
/
stats
/
v1
/
storage
/
usage
/
total
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
storage_usage_total = client.storage.statistics.get_usage_aggregated()
print(storage_usage_total.data)
{
  "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

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Body

application/json

Response

200
application/json

StorageUsageTotalEndpointRes

The response is of type object.