compute

GET /v1/compute/servers/{serverId}/databases

The MariaDB databases on one of your servers.

All compute endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the databases.view permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/databases \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

CP-SERVERCARDS card 3. Asks the server, live, for its databases and their size (what MariaDB itself accounts). MariaDB's own schemas are never listed. A database that belongs to a site on the server carries its site_domain and is not deletable here: a site's database goes with the site, on the site's own page. managed is false with reason: not_managed when the platform does not run this server as a site host. A server that did not answer is a 503 with a sentence, never an empty list. Requires databases.view; 404 for a server that is not the caller's.

Parameters

NameTypeRequiredWhat it is
serverId (path)UuidYesThe server's id, as listComputeServers reports it. Ours (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine.

Response

NameTypeRequiredWhat it is
managedbooleanYesTrue when the platform runs this server as a site host.
reasonobjectYesWhy there is no list, or null when there is one.
dataComputeServerDatabase[]Yes—

Errors this endpoint can return

401 · 403 · 404 · 503