Get Database Status
Get a database’s live CPU, RAM, network, storage and uptime with GET /v2/databases//status. Pass rawData=true for numbers, not strings.
GET
Get Database Status
string
required
The API key for your account. You can find this in your account settings.
databases:read scope.
Returns live runtime stats for a single database: CPU, RAM, network usage, storage and uptime. Pass rawData=true to get raw numeric values instead of the formatted strings ("0.54%", "111.32MB") shown in the example below, useful when you want to do your own formatting or math client-side.
To fetch this for every owned database at once, use All Databases Status. For historical trends instead of a live reading, see Get Database Metrics.
Parameters
string
required
The ID of the database.
boolean
When
true, cpu, ram and the other figures come as numbers instead of formatted strings.Response
string
Indicates whether the call was successful:
success if it was, error if not.object
The contents of the response.
Common errors
Related
- CLI:
squarecloud db status - SDKs:
api.databases.status()(JavaScript),client.databases.status()(Python),c.Databases.Status()(Go)

