API referenceSections

Sites

31 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
GET/api/v1/tenants/{tid}/deleted-sitesDeleted websites still kept (ADR 0127)
DELETE/api/v1/tenants/{tid}/deleted-sites/{id} 202Remove a deleted website for good now (server.manage), typing its name
POST/api/v1/tenants/{tid}/deleted-sites/{id}/restore 202Bring a deleted website back with its names and settings (ADR 0127)
GET/api/v1/tenants/{tid}/projects
POST/api/v1/tenants/{tid}/projects
GET/api/v1/tenants/{tid}/projects/{pid}
PATCH/api/v1/tenants/{tid}/projects/{pid}
DELETE/api/v1/tenants/{tid}/projects/{pid}
GET/api/v1/tenants/{tid}/site-movesSite moves between servers (ADR 0097)
GET/api/v1/tenants/{tid}/site-moves/{mid}One move
POST/api/v1/tenants/{tid}/site-moves/{mid}/actions/{action} 202switch (final sync, then serve from the new server), finalize (remove from the old one), rollback, retry. MOVE_STATE when not possible now
GET/api/v1/tenants/{tid}/site-retentionHow many days the provider keeps deleted websites (server.manage)
PUT/api/v1/tenants/{tid}/site-retentionChange it (server.manage); websites already deleted keep their date
GET/api/v1/tenants/{tid}/sitesThe tenant's sites by hostname; all of them, or a page when limit is given (ADR 0189)
POST/api/v1/tenants/{tid}/sitesQueue a new site; a hostname exists once per server
GET/api/v1/tenants/{tid}/sites/{id}One site as the list shows it; the site page follows it without the whole list (R29)
DELETE/api/v1/tenants/{tid}/sites/{id}Remove the site from IIS; its folder and logs are kept for the provider's retention and the site can be restored until then (ADR 0127)
GET/api/v1/tenants/{tid}/sites/{id}/aliasesThe site's other names (ADR 0031)
POST/api/v1/tenants/{tid}/sites/{id}/aliasesAdd a name to prove; IIS answers to it only once proven
DELETE/api/v1/tenants/{tid}/sites/{id}/aliases/{host}Stop answering to the name and forget it
POST/api/v1/tenants/{tid}/sites/{id}/aliases/{host}/verifyCheck the alias's TXT record, or with a reason record the provider's word; then IIS answers to it
GET/api/v1/tenants/{tid}/sites/{id}/analyticsVisits summarized from the site's IIS logs on its server (ADR 0023)
GET/api/v1/tenants/{tid}/sites/{id}/limitsThe site's caps and where they come from (ADR 0091)
PUT/api/v1/tenants/{tid}/sites/{id}/limits 202Cap the CPU share and memory of the site's pool (ADR 0036)
GET/api/v1/tenants/{tid}/sites/{id}/logsA redacted page of a site's IIS log; whoever may read the site's files (ADR 0077)
POST/api/v1/tenants/{tid}/sites/{id}/move 202Move a site, with its MariaDB databases, to another server; it serves from the old one until the switch. Needs site.write, database.write and server.manage. MOVE_* codes, SERVER_MAINTENANCE, PLACEMENT_SERVER
GET/api/v1/tenants/{tid}/sites/{id}/resource-usageThe site's caps, minutes at them and automatic actions, last 24 hours and 7 days (ADR 0126)
GET/api/v1/tenants/{tid}/sites/{id}/settings-optionsWhat the IIS, PHP and pool settings offer for this site and user (ADR 0061, 0062)
POST/api/v1/tenants/{tid}/sites/{id}/verifyCheck the site's TXT record to prove the hostname belongs to this tenant
POST/api/v1/tenants/{tid}/sites/{id}/verify-overrideRecord ownership without DNS; needs a separate permission and a reason
POST/api/v1/tenants/{tid}/sourcesTake a zip, or download one from an https link, and tell what it holds (ADR 0025)