Abandon a gone server with what the panel keeps of it
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
/api/v1/tenants/{tid}/servers/{id}/abandonAbandon a gone server with what the panel keeps of it (ADR 0198)
Its name typed in confirm (SERVER_REMOVE_CONFIRM) and the administrator's own password again (INVALID_CREDENTIALS). In one transaction: its sites and databases are deleted the way a delete goes and their removal jobs end as done (result SERVER_REMOVED), its caches, mail domains and DNS zones are forgotten, its kept deleted sites purged, every other job waiting for it fails with SERVER_REMOVED, and it leaves the server list. Off-machine backups stay. Nothing on it: SERVER_ABANDON_EMPTY (remove it instead). Audit server.abandoned, and server.abandoned_contents for each tenant.
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
confirmstring requiredThe server's name, exactly
passwordstring (password) required
Example
{
"confirm": "string",
"password": "********"
}Responses
200 What was dropped
Content type: application/json
What abandoning a gone server drops, per tenant (ADR 0198)
server_idstring requiredserver_namestring requiredremainsobject requiredsitesinteger requiredkept_sitesinteger requireddatabasesinteger requiredmail_domainsinteger requireddns_zonesinteger requiredcachesinteger requiredjobsinteger required
tenantsarray<object> | null requiredtenant_idstring requiredtenant_namestring requiredsitesarray<string> | null requiredkept_sitesarray<string> | null requireddatabasesarray<string> | null requiredmail_domainsarray<string> | null requireddns_zonesarray<string> | null requiredcachesarray<string> | null requiredoffsite_backupsinteger requiredFinished backups from this server with a copy off it; they stay
Example
{
"server_id": "string",
"server_name": "string",
"remains": {
"sites": 0,
"kept_sites": 0,
"databases": 0,
"mail_domains": 0,
"dns_zones": 0,
"caches": 0,
"jobs": 0
},
"tenants": [
{
"tenant_id": "string",
"tenant_name": "string",
"sites": [
"string"
],
"kept_sites": [
"string"
],
"databases": [
"string"
],
"mail_domains": [
"string"
],
"dns_zones": [
"string"
],
"caches": [
"string"
],
"offsite_backups": 0
}
]
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required