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
/api/v1/tenants/{tid}/sites/{id}/settings-optionsWhat 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required |
Responses
200 Options
Content type: application/json
php.ini directives from a fixed list, extensions and FastCGI limits (ADR 0062). Any other field is refused.
memory_mbinteger required- minimum 32
- maximum 4096
upload_mbinteger required- minimum 1
- maximum 4096
post_mbinteger requiredAt least upload_mb
- minimum 1
- maximum 4096
max_execution_timeinteger required- minimum 1
- maximum 3600
max_input_varsinteger required- minimum 100
- maximum 100000
display_errorsboolean requirederror_reportingstring requiredAllowed values:"default""all""errors"timezonestring requiredIANA zone, Asia/Ho_Chi_Minh
opcacheboolean requiredopcache_revalidateboolean requiredopen_basedirboolean optionalKeep 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
extensionsarray<string> requiredfastcgiobject requiredOnly a user who manages the server may change these
- no other properties
instance_max_requestsinteger required- minimum 100
- maximum 1000000
activity_timeoutinteger required- minimum 10
- maximum 3600
request_timeoutinteger required- minimum 10
- maximum 3600
max_instancesinteger required0: the panel picks one per CPU, 2 to 8 (ADR 0124)
- minimum 0
- maximum 100
The site's own application pool (ADR 0062). Its identity is not a setting.
idle_minutesinteger required- minimum 1
- maximum 43200
recycle_minutesinteger required0 off, else 30-43200
recycle_atarray<string> required- max items 4
enable_32bitboolean requiredpipelinestring requiredAllowed values:"Integrated""Classic"clrstring requiredUsed while ASP.NET 4.x is off; on, the pool runs v4.0
Allowed values:"""v4.0"queue_lengthinteger requiredOnly a user who manages the server may change it
- minimum 10
- maximum 65535
extensionsarray<object> requirednamestring requiredshippedboolean | null requirednull: the server has not said
error_levelsarray<string> requirederror_statusesarray<integer> requiredmax_memory_mbinteger requiredThe plan's cap, 0 none
max_upload_mbinteger requiredserver_managedboolean requiredMay change FastCGI limits and the queue length
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.
frameworkobject required.NET Framework (system.web). Changing it needs ASP.NET 4.x on for the site.
- no other properties
debugboolean requiredcustom_errorsstring requiredAllowed values:"On""Off""RemoteOnly"session_modestring requiredAllowed values:"InProc""Off"session_timeoutinteger required- minimum 1
- maximum 1440
validationstring requiredKeys are always AutoGenerate,IsolateApps,IsolateByAppId
Allowed values:"HMACSHA256""HMACSHA512"
coreobject requiredASP.NET Core Module (aspNetCore section). Changing it needs ANCM on the server.
- no other properties
hosting_modelstring requiredAllowed values:"inprocess""outofprocess"environmentstring requiredASPNETCORE_ENVIRONMENT
- pattern
^[A-Za-z][A-Za-z0-9_.-]{0,31}$
- pattern
stdout_logboolean requiredstdout_max_mbinteger required- minimum 1
- maximum 1024
stdout_keep_filesinteger required- minimum 1
- maximum 50
ancmboolean requiredIIS has the ASP.NET Core Module
webdeploy_serverboolean requiredThe 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required