Every tenant's storage now, and measured daily
GET
/v1/admin/usage/storage
const url = 'https://example.com/v1/admin/usage/storage';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/admin/usage/storage \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”tenant
string
Only this tenant.
from
string
Daily measures from this day (31 days before to by default).
to
string
Until this day (today by default).
Responses
Section titled “Responses”The answer.
Media typeapplication/json
object
metering
required
string
now
required
Array<object>
object
tenant
required
string
kinds
required
object
daily
required
Array
Example generated
{ "metering": "example", "now": [ { "tenant": "example", "kinds": {} } ], "daily": [ "example" ]}The request is malformed (bad-request).
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}No key, or not a valid one.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}The key lacks the scope, or its tenant is suspended or deleted.
Media typeapplication/json
object
code
required
string
message
required
string
requestId
string
Example
{ "code": "field-unknown"}