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

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

a From date filter

Example:

"2006-01-02"

locations
string[]

a Locations list of filter

Example:
["s-ed1", "s-drc2", "s-sgc1"]
storages
string[]

a Storages list of filter

Example:
["123-myStorage"]
to
string

a To date filter

Example:

"2006-01-02"

Response

StorageUsageTotalEndpointRes

data
object[]

StorageUsageTotalRes for response