Site runtimes and application pools
45 operations. Open one for its parameters, request body, responses and examples.
| Method | Path | Summary |
|---|---|---|
| GET | /api/v1/tenants/{tid}/sites/{id}/apps | Joomla, Drupal, PrestaShop and OpenCart for this site, and the one installed (ADR 0178) |
| POST | /api/v1/tenants/{tid}/sites/{id}/apps 202 | Install an application into an empty PHP site with its own database; the admin password is shown once |
| DELETE | /api/v1/tenants/{tid}/sites/{id}/apps 202 | Remove the application, its files, its database and account; the placeholder page comes back |
| PUT | /api/v1/tenants/{tid}/sites/{id}/aspnet 202 | Turn ASP.NET 4.x on or off for the site |
| PUT | /api/v1/tenants/{tid}/sites/{id}/aspnet-settings 202 | Apply the site's ASP.NET settings (ADR 0090) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/classic-asp 202 | Turn Classic ASP on or off for the site |
| GET | /api/v1/tenants/{tid}/sites/{id}/container | The site's Windows container, or what the server and plan offer for one (ADR 0162) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/container 202 | Create or change the site's container and deploy it as a new release; the running version stays until the new one answers its health check |
| DELETE | /api/v1/tenants/{tid}/sites/{id}/container | Remove the site's container; the data folders stay in the site's folder |
| POST | /api/v1/tenants/{tid}/sites/{id}/container/compose 202 | Translate a docker-compose.yml for the site (ADR 0191); with apply, make it the site's manifest and deploy it (ADR 0192). Unsafe or unsupported keys are refused with their path (COMPOSE_UNSAFE, COMPOSE_UNSUPPORTED, COMPOSE_BUILD_UNSUPPORTED, COMPOSE_PORTS, COMPOSE_VARIABLE_UNSET, COMPOSE_LINUX_IMAGE, COMPOSE_INVALID) |
| POST | /api/v1/tenants/{tid}/sites/{id}/container/deploy 202 | Deploy another version of the same image (a tag or a digest) as a new release |
| GET | /api/v1/tenants/{tid}/sites/{id}/container/logs | The end of the container's output (2000 lines) |
| GET | /api/v1/tenants/{tid}/sites/{id}/container/releases | The container's releases, newest first |
| POST | /api/v1/tenants/{tid}/sites/{id}/container/releases/{rid}/activate 202 | Go back to a release; its exact digest runs again. Data folders are not changed |
| POST | /api/v1/tenants/{tid}/sites/{id}/container/start 202 | Start the container; refused while the account is suspended |
| POST | /api/v1/tenants/{tid}/sites/{id}/container/stop 202 | Stop the container |
| POST | /api/v1/tenants/{tid}/sites/{id}/node 202 | Prepare a site to run a Node.js or ASP.NET Core application behind IIS |
| GET | /api/v1/tenants/{tid}/sites/{id}/node/env | The application's environment variables, without secret values |
| PUT | /api/v1/tenants/{tid}/sites/{id}/node/env | Replace the application's environment variables |
| GET | /api/v1/tenants/{tid}/sites/{id}/node/logs | The end of the application's log |
| GET | /api/v1/tenants/{tid}/sites/{id}/node/releases | Releases of the site's application, newest first |
| POST | /api/v1/tenants/{tid}/sites/{id}/node/releases 202 | Upload a zip of the built application and run it; the current version stays if it does not start |
| POST | /api/v1/tenants/{tid}/sites/{id}/node/releases/{rid}/activate 202 | Run a release that is already on the server. Application data is not changed |
| PUT | /api/v1/tenants/{tid}/sites/{id}/performance 202 | Apply the site's speed settings (ADR 0032) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/php 202 | Choose the site's PHP branch; an empty version turns PHP off |
| GET | /api/v1/tenants/{tid}/sites/{id}/php-app | The site's PHP application recipe (Laravel, Symfony, Composer app) and its last jobs (ADR 0099) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/php-app | Choose a recipe (empty removes it), the steps run after a Git deploy, and Laravel's scheduler |
| GET | /api/v1/tenants/{tid}/sites/{id}/php-app/env | The app's .env variables, without secret values |
| PUT | /api/v1/tenants/{tid}/sites/{id}/php-app/env | Replace the app's variables (sealed) and write them to .env; only for a recipe served from public/ |
| POST | /api/v1/tenants/{tid}/sites/{id}/php-app/run 202 | Run steps as the site, in order, stopping at the first failure; composer:install or the recipe's allowed commands |
| PUT | /api/v1/tenants/{tid}/sites/{id}/php-settings 202 | Apply the site's php.ini directives, extensions and FastCGI limits (ADR 0062) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/pool 202 | Apply the settings of the site's application pool (ADR 0062) |
| POST | /api/v1/tenants/{tid}/sites/{id}/recycle 202 | Give the site a fresh worker; requests in flight finish first |
| GET | /api/v1/tenants/{tid}/sites/{id}/tune | The site's automatic tuning, its profile and history (ADR 0116) |
| POST | /api/v1/tenants/{tid}/sites/{id}/tune/apply | Probe the site and apply its profile now, checked and rolled back if the site answers differently |
| PUT | /api/v1/tenants/{tid}/sites/{id}/tune/policy | Follow the plan's tuning policy, or opt this site out (off reverts) |
| POST | /api/v1/tenants/{tid}/sites/{id}/tune/revert | Take back what the tuner applied |
| PUT | /api/v1/tenants/{tid}/sites/{id}/web 202 | Apply the site's IIS settings (ADR 0061) |
| GET | /api/v1/tenants/{tid}/sites/{id}/workers | A website's workers, long-running background processes such as Laravel queue workers (ADR 0177) |
| POST | /api/v1/tenants/{tid}/sites/{id}/workers | Add a worker; it runs as the website's own identity, supervised, within its caps |
| POST | /api/v1/tenants/{tid}/sites/{id}/workers/restart 202 | Start every worker's processes again, each after the job it holds |
| PUT | /api/v1/tenants/{tid}/sites/{id}/workers/{worker} | Change a worker; its processes start again |
| DELETE | /api/v1/tenants/{tid}/sites/{id}/workers/{worker} | Remove a worker; its processes stop after the job they hold |
| GET | /api/v1/tenants/{tid}/sites/{id}/workers/{worker}/log | The end of a worker's log, read from the server |
| POST | /api/v1/tenants/{tid}/sites/{id}/workers/{worker}/restart 202 | Start one worker's processes again |