public.databases.storage
const url = 'https://rest.watchtower15.com/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/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://rest.watchtower15.com/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/storage \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”DatabasesStorageResource
object
object
Epoch milliseconds: when the sizes were measured; null before the first measurement.
The instance’s size.
Days until the storage is full.
The forecast’s status; null before the first forecast.
The forecast’s projected size, in bytes, after 30, 90, 180 and 365 days; each null with no forecast or too little history.
object
What the forecast measures against; both null before the first forecast.
object
One of volume, manual, reported, none.
The current schemas, largest first; empty in counts mode. A name is null unless the database shows identifiers.
object
The stored schema key, which tells schemas apart when their names are hidden.
The current tables, largest first; empty in counts mode. A name is null unless the database shows identifiers.
object
The stored table key, which tells tables apart when their names are hidden.
The key of the table’s schema.
Example generated
{ "data": { "measured_at": 1, "size_bytes": 1, "days_to_full": 1, "forecast_status": "example", "growth_bytes_per_day": 1, "projections": { "days_30": 1, "days_90": 1, "days_180": 1, "days_365": 1 }, "ceiling": { "source": "example", "bytes": 1 }, "schemas": [ { "key": "example", "name": "example", "size_bytes": 1, "table_count": 1 } ], "tables": [ { "key": "example", "schema_key": "example", "name": "example", "size_bytes": 1, "rows_estimate": 1 } ] }}The API key is missing, malformed, expired or revoked.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}The key or its owner does not hold what the operation needs.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}No such record in this organisation (an absent id and another organisation’s answer alike).
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}The request is invalid; errors names the parameters.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}A rate limit or the organisation’s daily limit is reached; Retry-After says when to retry.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}An unexpected error.
object
https://docs.watchtower15.com/api/errors/<code>/
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "code": "example", "detail": "example", "request_id": "example", "errors": { "additionalProperty": [ "example" ] }, "limit": 1, "used": 1}