Sites
31 operations. Open one for its parameters, request body, responses and examples.
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/tenants/{tid}/deleted-sites | Deleted websites still kept (ADR 0127) |
| DELETE | /api/v1/tenants/{tid}/deleted-sites/{id} 202 | Remove a deleted website for good now (server.manage), typing its name |
| POST | /api/v1/tenants/{tid}/deleted-sites/{id}/restore 202 | Bring 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-moves | Site 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} 202 | switch (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-retention | How many days the provider keeps deleted websites (server.manage) |
| PUT | /api/v1/tenants/{tid}/site-retention | Change it (server.manage); websites already deleted keep their date |
| GET | /api/v1/tenants/{tid}/sites | The tenant's sites by hostname; all of them, or a page when limit is given (ADR 0189) |
| POST | /api/v1/tenants/{tid}/sites | Queue 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}/aliases | The site's other names (ADR 0031) |
| POST | /api/v1/tenants/{tid}/sites/{id}/aliases | Add 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}/verify | Check 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}/analytics | Visits summarized from the site's IIS logs on its server (ADR 0023) |
| GET | /api/v1/tenants/{tid}/sites/{id}/limits | The site's caps and where they come from (ADR 0091) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/limits 202 | Cap the CPU share and memory of the site's pool (ADR 0036) |
| GET | /api/v1/tenants/{tid}/sites/{id}/logs | A 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 202 | Move 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-usage | The 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-options | What the IIS, PHP and pool settings offer for this site and user (ADR 0061, 0062) |
| POST | /api/v1/tenants/{tid}/sites/{id}/verify | Check the site's TXT record to prove the hostname belongs to this tenant |
| POST | /api/v1/tenants/{tid}/sites/{id}/verify-override | Record ownership without DNS; needs a separate permission and a reason |
| POST | /api/v1/tenants/{tid}/sources | Take a zip, or download one from an https link, and tell what it holds (ADR 0025) |