Restore test results
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/restore-testsRestore test results (ADR 0154); the provider sees every account its policy covers, an account on a plan with restore tests its own tests
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required |
Responses
200 Results
Content type: application/json
manageboolean requiredThe reader sets the policy and starts tests
A provider's periodic restore tests (ADR 0154)
tenant_idstring requiredenabledboolean requiredfrequencystring requiredAllowed values:"daily""weekly""monthly"hourinteger requiredUTC hour a run starts
- minimum 0
- maximum 23
scopestring requiredplans: only accounts whose plan has restore_tests on
Allowed values:"all""plans"sampleinteger requiredAccounts tested each run, those tested longest ago first; 0 is all
- minimum 0
- maximum 50
targetstring requiredoffsite: the newest backup whose whole chain is off the server, else the newest on its server; offsite_only: no test without one; latest: the newest
Allowed values:"offsite""offsite_only""latest"server_idstring requiredServer the sandbox runs on; empty is the server that made the backup. A backup read from its own server is always tested there
last_run_atstring (date-time) | null requiredupdated_atstring (date-time) required
availableboolean requiredFor an account: its plan includes restore tests
tenant_idstring requirednamestring requiredidstring requiredtenant_idstring requiredThe account tested
policy_tenant_idstring requiredbackup_idstring requiredserver_idstring requiredServer the sandbox ran on
job_idstring requiredtriggerstring requiredAllowed values:"schedule""manual"statestring requiredAllowed values:"running""passed""warning""failed"error_codestring requiredThe first failing (or, for warning, first warning) check's code, or why the test could not run
targetstring requiredWhere the backup was read from: s3, sftp, gdrive, onedrive, dropbox or local
linksinteger requiredBackups in the chain read
rto_msinteger requiredTime the restore work took: an estimate of the time to restore the account
rpo_secondsinteger requiredAge of the backup when tested: what a restore then would lose
backup_atstring (date-time) | null requiredstarted_atstring (date-time) requiredfinished_atstring (date-time) | null requiredidstring requiredAllowed values:"source""sandbox""fetch""hash""archive""files""mail""database""site""cleanup"partstring optionalkind/name (site/<id>, database/<name>, mail/<domain>, backup/<id>); absent for the whole backup
statestring requiredAllowed values:"pass""warning""fail""skipped"codestring optionalWhy, when not pass: e.g. HASH_MISMATCH, FILES_MISMATCH, DB_TABLES_MISMATCH, SITE_HTTP_STATUS, SITE_APP_NOT_RUN, LOCAL_ONLY, CLEANUP_LEFT
detailsobject optionalCounts and short facts: files, bytes, expected_files, tables, sample_rows, status, location, error
phases_msmap<string, integer> requiredfetch, verify, database, site
tested_atstring (date-time) | null requiredLast test that passed, with or without warnings
coveredboolean requiredThe policy tests this account
Fields of RestoreTest are shown above.
Example
{
"manage": true,
"policy": {
"tenant_id": "string",
"enabled": true,
"frequency": "daily",
"hour": 0,
"scope": "all",
"sample": 0,
"target": "offsite",
"server_id": "string",
"last_run_at": "2026-01-01T00:00:00Z",
"updated_at": "2026-01-01T00:00:00Z"
},
"available": true,
"accounts": [
{
"tenant_id": "string",
"name": "string",
"last": {
"id": "string",
"tenant_id": "string",
"policy_tenant_id": "string",
"backup_id": "string",
"server_id": "string",
"job_id": "string",
"trigger": "schedule",
"state": "running",
"error_code": "string",
"target": "string",
"links": 0,
"rto_ms": 0,
"rpo_seconds": 0,
"backup_at": "2026-01-01T00:00:00Z",
"started_at": "2026-01-01T00:00:00Z",
"finished_at": "2026-01-01T00:00:00Z",
"checks": [
{
"id": "source",
"part": null,
"state": "pass",
"code": null,
"details": null
}
],
"phases_ms": {
"key": 0
}
},
"tested_at": "2026-01-01T00:00:00Z",
"covered": true
}
],
"tests": [
{
"id": "string",
"tenant_id": "string",
"policy_tenant_id": "string",
"backup_id": "string",
"server_id": "string",
"job_id": "string",
"trigger": "schedule",
"state": "running",
"error_code": "string",
"target": "string",
"links": 0,
"rto_ms": 0,
"rpo_seconds": 0,
"backup_at": "2026-01-01T00:00:00Z",
"started_at": "2026-01-01T00:00:00Z",
"finished_at": "2026-01-01T00:00:00Z",
"checks": [
{
"id": "source",
"part": "string",
"state": "pass",
"code": "string",
"details": {}
}
],
"phases_ms": {
"key": 0
}
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required