Site
Site objecttlsobject requiredstatestring requiredAllowed values:"none""issuing""renewing""active""failed"not_afterstring (date-time) | null requirederror_codestring required
force_httpsboolean requiredstaging_ofstring optionalpreview_ofstring optionalThe live site this one is a Git preview of (ADR 0160)
nodeobject | null optionalThe application the site runs as a service, Node.js or .NET
runtimestring requiredAllowed values:"node""dotnet""python""java""go"majorstring requiredentrystring required
php_versionstring requiredaspnetboolean requiredASP.NET 4.x runs in the site's own pool (ADR 0019)
classic_aspboolean requiredClassic ASP runs in the site's own pool (ADR 0020)
blocked_ipsarray<string> requiredRefused with 403 by the site's own rule (ADR 0024)
stoppedboolean requiredStopped because its account is suspended (ADR 0030)
A site's IIS settings (ADR 0061). Lists replace what was there.
php.ini directives from a fixed list, extensions and FastCGI limits (ADR 0062). Any other field is refused.
The site's own application pool (ADR 0062). Its identity is not a setting.
A site's ASP.NET settings (ADR 0090), written at the server's level for the site; an application's own web.config may override them.
webdeployboolean requiredThe site's IIS Manager user can publish with Web Deploy (ADR 0089)
appobject | null requirednamestring requiredAllowed values:"wordpress""node""dotnet""python""java""go""container"statestring requiredAllowed values:"installing""active""failed"error_codestring requiredadmin_userstring required
verify_namestring requiredverify_valuestring requiredverified_atstring (date-time) | null requiredverified_viastring requiredAllowed values:"""dns""override"idstring requiredtenant_idstring requiredserver_idstring requiredhostnamestring requiredjob_idstring requirederror_codestring requiredcreated_atstring (date-time) requiredstatusstring requiredAllowed values:"provisioning""active""failed""deleting""delete_failed"
Used by
| 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) |
| POST | /api/v1/tenants/{tid}/deleted-sites/{id}/restore 202 | Bring a deleted website back with its names and settings (ADR 0127) |
| POST | /api/v1/tenants/{tid}/sites/{id}/verify | Check the site's TXT record to prove the hostname belongs to this tenant |
| PUT | /api/v1/tenants/{tid}/sites/{id}/force-https 202 | Redirect plain HTTP to HTTPS; needs an active certificate and URL Rewrite |
| POST | /api/v1/tenants/{tid}/sites/{id}/node 202 | Prepare a site to run a Node.js or ASP.NET Core application behind IIS |
| POST | /api/v1/tenants/{tid}/sites/{id}/wordpress/staging 202 | Copy a live WordPress site to a new hostname for testing |
| PUT | /api/v1/tenants/{tid}/sites/{id}/classic-asp 202 | Turn Classic ASP on or off for the site |
| 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}/webdeploy | Turn Web Deploy publishing on (again, with a new password) or off for the site (ADR 0089) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/blocked-ips 202 | Replace the addresses the site refuses with 403 (ADR 0024) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/performance 202 | Apply the site's speed settings (ADR 0032) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/limits 202 | Cap the CPU share and memory of the site's pool (ADR 0036) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/web 202 | Apply the site's IIS settings (ADR 0061) |
| 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) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/php 202 | Choose the site's PHP branch; an empty version turns PHP off |
| POST | /api/v1/tenants/{tid}/sites/{id}/certificate 202 | Start issuing a certificate; needs a verified hostname on a live site |
| POST | /api/v1/tenants/{tid}/sites/{id}/verify-override | Record ownership without DNS; needs a separate permission and a reason |