Skip to main content
POST
/
storage
/
stats
/
v1
/
storage
/
usage
/
series
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
response = client.storage.statistics.get_usage_series()
print(response.data)
{
  "data": {
    "clients": {}
  }
}

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"

granularity
string

a Granularity is period of time for grouping data Valid values are: 1h, 12h, 24h

Example:

"12h"

locations
string[]

a Locations list of filter

Example:
["s-ed1", "s-drc2", "s-sgc1"]
source
integer

a Source is deprecated parameter

storages
string[]

a Storages list of filter

Example:
["123-myStorage"]
to
string

a To date filter

Example:

"2006-01-02"

ts_string
boolean

a TsString is configurator of response time format switch response from unix time format to RFC3339 (2006-01-02T15:04:05Z07:00)

Response

StorageUsageSeriesEndpointRes

data
object