API referenceSections

RestoreTestPolicy

RestoreTestPolicy object

A provider's periodic restore tests (ADR 0154)

  • no other properties
  • 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

Used by

GET/api/v1/tenants/{tid}/restore-tests/policyThe provider's restore test policy (the defaults until saved)
PUT/api/v1/tenants/{tid}/restore-tests/policyChange it