compute
GET /v1/compute/servers/{serverId}/restore-test
Read the latest weekly restore test of a server's backups.
Authentication
Send an API key as a bearer token. The key must carry the sites.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}/restore-test \
-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
Once a week the platform restores one of the server's newest site backups into a throwaway scratch directory on the server, checks the files and the database dump are really there, and deletes the scratch copy. Nothing live is touched. This read returns the latest result so a customer can see that their backups restore, not only that they were taken. latest is null until the first test has run (a new server, or one with no site backup yet). outcome is passed, failed or skipped; reason is a short machine word for a failure or skip (for example no_backup, no_files, no_database) that a client maps to its own sentence. Read from our rows only, never from the provider. A server the caller cannot see is a 404, the same as one that does not exist. Requires sites.view.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
serverId (path) | Uuid | Yes | The 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
| Name | Type | Required | What it is |
|---|---|---|---|
cadence_days | integer | Yes | How often the test runs, in days. |
latest | null | ComputeServerRestoreTestResult | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 429