POST
/
storage
/
stats
/
v1
/
storage
/
usage
/
series
Storage usage series
curl --request POST \
  --url https://api.gcore.com/storage/stats/v1/storage/usage/series \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "2006-01-02",
  "granularity": "12h",
  "locations": [
    "fra",
    "mia",
    "sin",
    "ams",
    "s-ed1",
    "s-darz1",
    "s-dt2",
    "lux",
    "drf"
  ],
  "source": 123,
  "storages": [
    "123-myStorage"
  ],
  "to": "2006-01-02",
  "ts_string": true
}'
{
  "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:
[
"fra",
"mia",
"sin",
"ams",
"s-ed1",
"s-darz1",
"s-dt2",
"lux",
"drf"
]
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