API referenceSections

Site

Site object
  • tls object required
    • state string required
      Allowed values: "none" "issuing" "renewing" "active" "failed"
    • not_after string (date-time) | null required
    • error_code string required
  • force_https boolean required
  • staging_of string optional
  • preview_of string optional

    The live site this one is a Git preview of (ADR 0160)

  • node object | null optional

    The application the site runs as a service, Node.js or .NET

    • runtime string required
      Allowed values: "node" "dotnet" "python" "java" "go"
    • major string required
    • entry string required
  • php_version string required
  • aspnet boolean required

    ASP.NET 4.x runs in the site's own pool (ADR 0019)

  • classic_asp boolean required

    Classic ASP runs in the site's own pool (ADR 0020)

  • blocked_ips array<string> required

    Refused with 403 by the site's own rule (ADR 0024)

  • stopped boolean required

    Stopped because its account is suspended (ADR 0030)

  • perf SitePerf required
  • web SiteWeb required

    A site's IIS settings (ADR 0061). Lists replace what was there.

  • php_settings SitePHPSettings required

    php.ini directives from a fixed list, extensions and FastCGI limits (ADR 0062). Any other field is refused.

  • pool SitePool required

    The site's own application pool (ADR 0062). Its identity is not a setting.

  • aspnet_settings SiteASPNETSettings required

    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.

  • webdeploy boolean required

    The site's IIS Manager user can publish with Web Deploy (ADR 0089)

  • app object | null required
    • name string required
      Allowed values: "wordpress" "node" "dotnet" "python" "java" "go" "container"
    • state string required
      Allowed values: "installing" "active" "failed"
    • error_code string required
    • admin_user string required
  • verify_name string required
  • verify_value string required
  • verified_at string (date-time) | null required
  • verified_via string required
    Allowed values: "" "dns" "override"
  • id string required
  • tenant_id string required
  • server_id string required
  • hostname string required
  • job_id string required
  • error_code string required
  • created_at string (date-time) required
  • status string required
    Allowed values: "provisioning" "active" "failed" "deleting" "delete_failed"

Used by

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)
POST/api/v1/tenants/{tid}/deleted-sites/{id}/restore 202Bring a deleted website back with its names and settings (ADR 0127)
POST/api/v1/tenants/{tid}/sites/{id}/verifyCheck the site's TXT record to prove the hostname belongs to this tenant
PUT/api/v1/tenants/{tid}/sites/{id}/force-https 202Redirect plain HTTP to HTTPS; needs an active certificate and URL Rewrite
POST/api/v1/tenants/{tid}/sites/{id}/node 202Prepare a site to run a Node.js or ASP.NET Core application behind IIS
POST/api/v1/tenants/{tid}/sites/{id}/wordpress/staging 202Copy a live WordPress site to a new hostname for testing
PUT/api/v1/tenants/{tid}/sites/{id}/classic-asp 202Turn Classic ASP on or off for the site
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}/webdeployTurn 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 202Replace the addresses the site refuses with 403 (ADR 0024)
PUT/api/v1/tenants/{tid}/sites/{id}/performance 202Apply the site's speed settings (ADR 0032)
PUT/api/v1/tenants/{tid}/sites/{id}/limits 202Cap the CPU share and memory of the site's pool (ADR 0036)
PUT/api/v1/tenants/{tid}/sites/{id}/web 202Apply the site's IIS settings (ADR 0061)
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)
PUT/api/v1/tenants/{tid}/sites/{id}/php 202Choose the site's PHP branch; an empty version turns PHP off
POST/api/v1/tenants/{tid}/sites/{id}/certificate 202Start issuing a certificate; needs a verified hostname on a live site
POST/api/v1/tenants/{tid}/sites/{id}/verify-overrideRecord ownership without DNS; needs a separate permission and a reason