API referenceSections

Ending

Ending object

How far an account's end got (ADR 0131). The end runs in the background: a failed step is tried again at next_try_at (1, 2, 4, 8 then every 15 minutes), or at once when the end is asked again.

  • state string required
    Allowed values: "ending" "ended" "not_ending"
  • tenant_id string required
  • ref string optional
  • reseller boolean required
  • started_at string (date-time) optional
  • ended_at string (date-time) optional
  • steps array<EndStep> required
  • attempts integer required

    Passes that stopped on an error

  • last_error StepError optional
  • next_try_at string (date-time) optional
  • remote_backups_left array<RemoteBackupLeft> optional

    With keep_backups_days 0: off-machine copies given up because their target did not answer; the end completes without them

Used by

DELETE/api/v1/tenants/{tid}/provisioning/accounts/{ref} 202Terminate the account; its websites, databases, mail, caches and DNS zones are removed the usual way (ADR 0104), in the background (ADR 0131)
DELETE/api/v1/tenants/{tid}/provisioning/resellers/{ref} 202Terminate the reseller; refused while it has accounts unless cascade=true. Runs in the background (ADR 0131)
DELETE/api/v1/tenants/{tid}/customers/{cid} 202End a customer of this seller, made in the panel or by billing: suspended, websites, databases, mail, caches and DNS zones removed by jobs in the background, backups kept the days asked for (ADR 0104, 0131)
GET/api/v1/tenants/{tid}/customers/{cid}/endingHow far a customer's end got (ADR 0131)