API referenceSections

Restore test results

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/tenants/{tid}/restore-tests

Restore 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

NameInTypeRequiredDescription
tidpathstringrequired

Responses

200 Results

Content type: application/json

  • manage boolean required

    The reader sets the policy and starts tests

  • policy RestoreTestPolicy optional

    A provider's periodic restore tests (ADR 0154)

    • tenant_id string required
    • enabled boolean required
    • frequency string required
      Allowed values: "daily" "weekly" "monthly"
    • hour integer required

      UTC hour a run starts

      • minimum 0
      • maximum 23
    • scope string required

      plans: only accounts whose plan has restore_tests on

      Allowed values: "all" "plans"
    • sample integer required

      Accounts tested each run, those tested longest ago first; 0 is all

      • minimum 0
      • maximum 50
    • target string required

      offsite: 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_id string required

      Server 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_at string (date-time) | null required
    • updated_at string (date-time) required
  • available boolean required

    For an account: its plan includes restore tests

  • accounts array<RestoreTestAccount> required
    • tenant_id string required
    • name string required
    • last RestoreTest | null required
      • id string required
      • tenant_id string required

        The account tested

      • policy_tenant_id string required
      • backup_id string required
      • server_id string required

        Server the sandbox ran on

      • job_id string required
      • trigger string required
        Allowed values: "schedule" "manual"
      • state string required
        Allowed values: "running" "passed" "warning" "failed"
      • error_code string required

        The first failing (or, for warning, first warning) check's code, or why the test could not run

      • target string required

        Where the backup was read from: s3, sftp, gdrive, onedrive, dropbox or local

      • links integer required

        Backups in the chain read

      • rto_ms integer required

        Time the restore work took: an estimate of the time to restore the account

      • rpo_seconds integer required

        Age of the backup when tested: what a restore then would lose

      • backup_at string (date-time) | null required
      • started_at string (date-time) required
      • finished_at string (date-time) | null required
      • checks array<RestoreTestCheck> required
        • id string required
          Allowed values: "source" "sandbox" "fetch" "hash" "archive" "files" "mail" "database" "site" "cleanup"
        • part string optional

          kind/name (site/<id>, database/<name>, mail/<domain>, backup/<id>); absent for the whole backup

        • state string required
          Allowed values: "pass" "warning" "fail" "skipped"
        • code string optional

          Why, when not pass: e.g. HASH_MISMATCH, FILES_MISMATCH, DB_TABLES_MISMATCH, SITE_HTTP_STATUS, SITE_APP_NOT_RUN, LOCAL_ONLY, CLEANUP_LEFT

        • details object optional

          Counts and short facts: files, bytes, expected_files, tables, sample_rows, status, location, error

      • phases_ms map<string, integer> required

        fetch, verify, database, site

    • tested_at string (date-time) | null required

      Last test that passed, with or without warnings

    • covered boolean required

      The policy tests this account

  • tests array<RestoreTest> required

    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

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required