API referenceSections

What the IIS, PHP and pool settings offer for this site and user

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

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)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Responses

200 Options

Content type: application/json

  • php_defaults SitePHPSettings required

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

    • memory_mb integer required
      • minimum 32
      • maximum 4096
    • upload_mb integer required
      • minimum 1
      • maximum 4096
    • post_mb integer required

      At least upload_mb

      • minimum 1
      • maximum 4096
    • max_execution_time integer required
      • minimum 1
      • maximum 3600
    • max_input_vars integer required
      • minimum 100
      • maximum 100000
    • display_errors boolean required
    • error_reporting string required
      Allowed values: "default" "all" "errors"
    • timezone string required

      IANA zone, Asia/Ho_Chi_Minh

    • opcache boolean required
    • opcache_revalidate boolean required
    • open_basedir boolean optional

      Keep PHP inside the site's public and tmp folders (ADR 0120). Absent on a site made before the switch, which keeps it on; left out of a change, the site's value stays. Not the boundary between sites: the pool's own identity and ACLs are

    • extensions array<string> required
    • fastcgi object required

      Only a user who manages the server may change these

      • no other properties
      • instance_max_requests integer required
        • minimum 100
        • maximum 1000000
      • activity_timeout integer required
        • minimum 10
        • maximum 3600
      • request_timeout integer required
        • minimum 10
        • maximum 3600
      • max_instances integer required

        0: the panel picks one per CPU, 2 to 8 (ADR 0124)

        • minimum 0
        • maximum 100
  • pool_defaults SitePool required

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

    • idle_minutes integer required
      • minimum 1
      • maximum 43200
    • recycle_minutes integer required

      0 off, else 30-43200

    • recycle_at array<string> required
      • max items 4
    • enable_32bit boolean required
    • pipeline string required
      Allowed values: "Integrated" "Classic"
    • clr string required

      Used while ASP.NET 4.x is off; on, the pool runs v4.0

      Allowed values: "" "v4.0"
    • queue_length integer required

      Only a user who manages the server may change it

      • minimum 10
      • maximum 65535
  • extensions array<object> required
    • name string required
    • shipped boolean | null required

      null: the server has not said

  • error_levels array<string> required
  • error_statuses array<integer> required
  • max_memory_mb integer required

    The plan's cap, 0 none

  • max_upload_mb integer required
  • server_managed boolean required

    May change FastCGI limits and the queue length

  • aspnet_defaults 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.

    • framework object required

      .NET Framework (system.web). Changing it needs ASP.NET 4.x on for the site.

      • no other properties
      • debug boolean required
      • custom_errors string required
        Allowed values: "On" "Off" "RemoteOnly"
      • session_mode string required
        Allowed values: "InProc" "Off"
      • session_timeout integer required
        • minimum 1
        • maximum 1440
      • validation string required

        Keys are always AutoGenerate,IsolateApps,IsolateByAppId

        Allowed values: "HMACSHA256" "HMACSHA512"
    • core object required

      ASP.NET Core Module (aspNetCore section). Changing it needs ANCM on the server.

      • no other properties
      • hosting_model string required
        Allowed values: "inprocess" "outofprocess"
      • environment string required

        ASPNETCORE_ENVIRONMENT

        • pattern ^[A-Za-z][A-Za-z0-9_.-]{0,31}$
      • stdout_log boolean required
      • stdout_max_mb integer required
        • minimum 1
        • maximum 1024
      • stdout_keep_files integer required
        • minimum 1
        • maximum 50
  • ancm boolean required

    IIS has the ASP.NET Core Module

  • webdeploy_server boolean required

    The server publishes with Web Deploy

Example
{
  "php_defaults": {
    "memory_mb": 32,
    "upload_mb": 1,
    "post_mb": 1,
    "max_execution_time": 1,
    "max_input_vars": 100,
    "display_errors": true,
    "error_reporting": "default",
    "timezone": "string",
    "opcache": true,
    "opcache_revalidate": true,
    "open_basedir": true,
    "extensions": [
      "string"
    ],
    "fastcgi": {
      "instance_max_requests": 100,
      "activity_timeout": 10,
      "request_timeout": 10,
      "max_instances": 0
    }
  },
  "pool_defaults": {
    "idle_minutes": 1,
    "recycle_minutes": 0,
    "recycle_at": [
      "string"
    ],
    "enable_32bit": true,
    "pipeline": "Integrated",
    "clr": "",
    "queue_length": 10
  },
  "extensions": [
    {
      "name": "string",
      "shipped": true
    }
  ],
  "error_levels": [
    "string"
  ],
  "error_statuses": [
    0
  ],
  "max_memory_mb": 0,
  "max_upload_mb": 0,
  "server_managed": true,
  "aspnet_defaults": {
    "framework": {
      "debug": true,
      "custom_errors": "On",
      "session_mode": "InProc",
      "session_timeout": 1,
      "validation": "HMACSHA256"
    },
    "core": {
      "hosting_model": "inprocess",
      "environment": "string",
      "stdout_log": true,
      "stdout_max_mb": 1,
      "stdout_keep_files": 1
    }
  },
  "ancm": true,
  "webdeploy_server": true
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required