API referenceSections

Site runtimes and application pools

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

MethodPathSummary
GET/api/v1/tenants/{tid}/sites/{id}/appsJoomla, Drupal, PrestaShop and OpenCart for this site, and the one installed (ADR 0178)
POST/api/v1/tenants/{tid}/sites/{id}/apps 202Install 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 202Remove the application, its files, its database and account; the placeholder page comes back
PUT/api/v1/tenants/{tid}/sites/{id}/aspnet 202Turn ASP.NET 4.x on or off for the site
PUT/api/v1/tenants/{tid}/sites/{id}/aspnet-settings 202Apply the site's ASP.NET settings (ADR 0090)
PUT/api/v1/tenants/{tid}/sites/{id}/classic-asp 202Turn Classic ASP on or off for the site
GET/api/v1/tenants/{tid}/sites/{id}/containerThe site's Windows container, or what the server and plan offer for one (ADR 0162)
PUT/api/v1/tenants/{tid}/sites/{id}/container 202Create 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}/containerRemove the site's container; the data folders stay in the site's folder
POST/api/v1/tenants/{tid}/sites/{id}/container/compose 202Translate 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 202Deploy another version of the same image (a tag or a digest) as a new release
GET/api/v1/tenants/{tid}/sites/{id}/container/logsThe end of the container's output (2000 lines)
GET/api/v1/tenants/{tid}/sites/{id}/container/releasesThe container's releases, newest first
POST/api/v1/tenants/{tid}/sites/{id}/container/releases/{rid}/activate 202Go back to a release; its exact digest runs again. Data folders are not changed
POST/api/v1/tenants/{tid}/sites/{id}/container/start 202Start the container; refused while the account is suspended
POST/api/v1/tenants/{tid}/sites/{id}/container/stop 202Stop the container
POST/api/v1/tenants/{tid}/sites/{id}/node 202Prepare a site to run a Node.js or ASP.NET Core application behind IIS
GET/api/v1/tenants/{tid}/sites/{id}/node/envThe application's environment variables, without secret values
PUT/api/v1/tenants/{tid}/sites/{id}/node/envReplace the application's environment variables
GET/api/v1/tenants/{tid}/sites/{id}/node/logsThe end of the application's log
GET/api/v1/tenants/{tid}/sites/{id}/node/releasesReleases of the site's application, newest first
POST/api/v1/tenants/{tid}/sites/{id}/node/releases 202Upload 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 202Run a release that is already on the server. Application data is not changed
PUT/api/v1/tenants/{tid}/sites/{id}/performance 202Apply the site's speed settings (ADR 0032)
PUT/api/v1/tenants/{tid}/sites/{id}/php 202Choose the site's PHP branch; an empty version turns PHP off
GET/api/v1/tenants/{tid}/sites/{id}/php-appThe site's PHP application recipe (Laravel, Symfony, Composer app) and its last jobs (ADR 0099)
PUT/api/v1/tenants/{tid}/sites/{id}/php-appChoose 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/envThe app's .env variables, without secret values
PUT/api/v1/tenants/{tid}/sites/{id}/php-app/envReplace 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 202Run 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 202Apply the site's php.ini directives, extensions and FastCGI limits (ADR 0062)
PUT/api/v1/tenants/{tid}/sites/{id}/pool 202Apply the settings of the site's application pool (ADR 0062)
POST/api/v1/tenants/{tid}/sites/{id}/recycle 202Give the site a fresh worker; requests in flight finish first
GET/api/v1/tenants/{tid}/sites/{id}/tuneThe site's automatic tuning, its profile and history (ADR 0116)
POST/api/v1/tenants/{tid}/sites/{id}/tune/applyProbe the site and apply its profile now, checked and rolled back if the site answers differently
PUT/api/v1/tenants/{tid}/sites/{id}/tune/policyFollow the plan's tuning policy, or opt this site out (off reverts)
POST/api/v1/tenants/{tid}/sites/{id}/tune/revertTake back what the tuner applied
PUT/api/v1/tenants/{tid}/sites/{id}/web 202Apply the site's IIS settings (ADR 0061)
GET/api/v1/tenants/{tid}/sites/{id}/workersA website's workers, long-running background processes such as Laravel queue workers (ADR 0177)
POST/api/v1/tenants/{tid}/sites/{id}/workersAdd a worker; it runs as the website's own identity, supervised, within its caps
POST/api/v1/tenants/{tid}/sites/{id}/workers/restart 202Start 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}/logThe end of a worker's log, read from the server
POST/api/v1/tenants/{tid}/sites/{id}/workers/{worker}/restart 202Start one worker's processes again