Skip to main content
POST
Python

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

Headers

Accept-Language
string

Preferred language of error texts. Supported: en, fr, de, ru, es, pt, zh, ja, ko, tr, az. Anything else, or no header, gives en.

Maximum string length: 256
Example:

"de-DE,de;q=0.9,en;q=0.8"

Body

application/json
from
string

a From date filter

Example:

"2006-01-02"

locations
string[]

a Locations list of filter

Example:
storage_ids
integer<int64>[]

a StorageIDs list of filter, by ID. Each ID selects exactly that storage, deleted ones included, narrowed by locations. An ID that is not one of the client's storages fails the request with 404. Omit it, or send null, when not selecting by ID; an empty list fails the request with 400. Mutually exclusive with storages.

Required array length: 1 - 100 elements
Example:
storages
string[]

a Storages list of filter, by name. A name selects the client's live storages with that name; a deleted storage is reachable by storage_ids only. Omit both storages and storage_ids, or send storages as [], to select the whole account. Mutually exclusive with storage_ids.

Example:
to
string

a To date filter

Example:

"2006-01-02"

Response

StorageUsageTotalEndpointRes

data
object[]

StorageUsageTotalRes for response