Cap the CPU share and memory of the site's pool
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}/limits may answer 202Cap the CPU share and memory of the site's pool (ADR 0036)
Authentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
cpu_percentinteger optional5-100, 0 off
memory_mbinteger optional128-65536, 0 off
app_cpu_percentinteger optionalThe application's cap (ADR 0091); absent keeps it
app_memory_mbinteger optionalThe application's memory; absent keeps it
inheritboolean optionalBack to the plan's caps; the others are ignored
Example
{
"cpu_percent": 0,
"memory_mb": 0,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"inherit": true
}Responses
200 Applied on the server
Content type: application/json
tlsobject 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)
static_cacheboolean requiredBrowsers keep static files for 7 days
static_max_age_hoursinteger optionalHow long browsers keep static files when set by the tuner (ADR 0116); 0 is 7 days
compressionboolean requiredAlso compress responses made by code; needs the IIS performance features
always_onboolean requiredKeep the pool running and warm it up; needs the IIS performance features
cpu_limitinteger optionalPool's CPU cap, % of the machine, 0 off; set with /limits (ADR 0036)
cpu_coresnumber optionalThe plan's cap in cores cpu_limit was worked out from on this server (ADR 0126); absent when in percent
app_cpu_coresnumber optionalSame for the application's cap
memory_mbinteger optionalRecycle the pool past this private memory, 0 off; set with /limits
shieldboolean optionalBlock an address that sends too many requests (IIS Dynamic IP Restrictions, ADR 0052); not a WAF
app_cpu_limitinteger optionalThe site's application's CPU cap (ADR 0091), 0 off
app_memory_mbinteger optionalThe site's application's memory cap, 0 off
limits_customboolean optionalCaps set by the provider by hand; otherwise they follow the plan
A site's IIS settings (ADR 0061). Lists replace what was there.
default_docsarray<string> requiredIn order; empty keeps the server's list
- max items 10
directory_browsingboolean requirederror_pagesarray<object> required- max items 20
statusinteger requiredAllowed values:400403404405406410412413414415429500501502503modestring requiredpage: a path of the site, served with the original status; redirect: a full http(s) URL
Allowed values:"page""redirect"targetstring required
mime_typesarray<object> required- max items 50
extstring required.webp
typestring requiredEmpty stops serving the extension
virtual_dirsarray<object> required- max items 20
pathstring requiredURL path, /media
folderstring requiredInside the site's public folder, assets/media; must exist
appboolean requiredAn IIS application
own_poolboolean requiredThe application gets its own pool (zp-<site>-<path>)
redirectsarray<object> required- max items 50
fromstring requiredmatchstring requiredprefix / is the whole site
Allowed values:"exact""prefix"tostring requiredA path of the site or a full http(s) URL
codeinteger requiredAllowed values:301302307keep_pathboolean requiredprefix only: append the rest of the path
canonicalstring requiredPreferred name; the other must be a verified alias
Allowed values:"""www""bare"hotlinkobject required- no other properties
enabledboolean requiredextensionsarray<string> requiredjpg, png
allowedarray<string> requiredOther sites allowed; the site's own names always are
allow_emptyboolean requiredAllow requests without a Referer
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
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
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"
Example
{
"tls": {
"state": "none",
"not_after": "2026-01-01T00:00:00Z",
"error_code": "string"
},
"force_https": true,
"staging_of": "string",
"preview_of": "string",
"node": {
"runtime": "node",
"major": "string",
"entry": "string"
},
"php_version": "string",
"aspnet": true,
"classic_asp": true,
"blocked_ips": [
"string"
],
"stopped": true,
"perf": {
"static_cache": true,
"static_max_age_hours": 0,
"compression": true,
"always_on": true,
"cpu_limit": 0,
"cpu_cores": 0,
"app_cpu_cores": 0,
"memory_mb": 0,
"shield": true,
"app_cpu_limit": 0,
"app_memory_mb": 0,
"limits_custom": true
},
"web": {
"default_docs": [
"string"
],
"directory_browsing": true,
"error_pages": [
{
"status": 400,
"mode": "page",
"target": "string"
}
],
"mime_types": [
{
"ext": "string",
"type": "string"
}
],
"virtual_dirs": [
{
"path": "string",
"folder": "string",
"app": true,
"own_pool": true
}
],
"redirects": [
{
"from": "string",
"match": "exact",
"to": "string",
"code": 301,
"keep_path": true
}
],
"canonical": "",
"hotlink": {
"enabled": true,
"extensions": [
"string"
],
"allowed": [
"string"
],
"allow_empty": true
}
},
"php_settings": {
"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": {
"idle_minutes": 1,
"recycle_minutes": 0,
"recycle_at": [
"string"
],
"enable_32bit": true,
"pipeline": "Integrated",
"clr": "",
"queue_length": 10
},
"aspnet_settings": {
"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
}
},
"webdeploy": true,
"app": {
"name": "wordpress",
"state": "installing",
"error_code": "string",
"admin_user": "string"
},
"verify_name": "string",
"verify_value": "string",
"verified_at": "2026-01-01T00:00:00Z",
"verified_via": "",
"id": "string",
"tenant_id": "string",
"server_id": "string",
"hostname": "string",
"job_id": "string",
"error_code": "string",
"created_at": "2026-01-01T00:00:00Z",
"status": "provisioning"
}202 Accepted but not applied yet (ADR 0128): the server's queue is busy (site creations, WordPress installs) and the change was still queued or running when the request's wait (about 50 s) ended. The body is the site as it will be once applied, the same as a 200 body, plus pending_job; Location is the job. The change is applied and recorded when the job succeeds, even if nobody is waiting; if the job fails or is not run within its deadline (10 minutes), nothing is changed. Follow GET Location (needs job.read) or read the site again. While it is pending, another settings change to the same site answers 409 SITE_SETTINGS_PENDING (retryable).
| Header | Type | Description |
|---|---|---|
Location | string | The job to follow |
Content type: application/json
tlsobject 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)
Fields of SitePerf are shown above.
A site's IIS settings (ADR 0061). Lists replace what was there.
Fields of SiteWeb are shown above.
php.ini directives from a fixed list, extensions and FastCGI limits (ADR 0062). Any other field is refused.
Fields of SitePHPSettings are shown above.
The site's own application pool (ADR 0062). Its identity is not a setting.
Fields of SitePool are shown above.
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.
Fields of SiteASPNETSettings are shown above.
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"A job the panel accepted a change with and has not finished (ADR 0128).
idstring requiredkindstring requiredurlstring requiredGET it for the job's state: queued, leased, succeeded or failed (error_code).
Example
{
"tls": {
"state": "none",
"not_after": "2026-01-01T00:00:00Z",
"error_code": "string"
},
"force_https": true,
"staging_of": "string",
"preview_of": "string",
"node": {
"runtime": "node",
"major": "string",
"entry": "string"
},
"php_version": "string",
"aspnet": true,
"classic_asp": true,
"blocked_ips": [
"string"
],
"stopped": true,
"perf": {
"static_cache": true,
"static_max_age_hours": 0,
"compression": true,
"always_on": true,
"cpu_limit": 0,
"cpu_cores": 0,
"app_cpu_cores": 0,
"memory_mb": 0,
"shield": true,
"app_cpu_limit": 0,
"app_memory_mb": 0,
"limits_custom": true
},
"web": {
"default_docs": [
"string"
],
"directory_browsing": true,
"error_pages": [
{
"status": 400,
"mode": "page",
"target": "string"
}
],
"mime_types": [
{
"ext": "string",
"type": "string"
}
],
"virtual_dirs": [
{
"path": "string",
"folder": "string",
"app": true,
"own_pool": true
}
],
"redirects": [
{
"from": "string",
"match": "exact",
"to": "string",
"code": 301,
"keep_path": true
}
],
"canonical": "",
"hotlink": {
"enabled": true,
"extensions": [
"string"
],
"allowed": [
"string"
],
"allow_empty": true
}
},
"php_settings": {
"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": {
"idle_minutes": 1,
"recycle_minutes": 0,
"recycle_at": [
"string"
],
"enable_32bit": true,
"pipeline": "Integrated",
"clr": "",
"queue_length": 10
},
"aspnet_settings": {
"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
}
},
"webdeploy": true,
"app": {
"name": "wordpress",
"state": "installing",
"error_code": "string",
"admin_user": "string"
},
"verify_name": "string",
"verify_value": "string",
"verified_at": "2026-01-01T00:00:00Z",
"verified_via": "",
"id": "string",
"tenant_id": "string",
"server_id": "string",
"hostname": "string",
"job_id": "string",
"error_code": "string",
"created_at": "2026-01-01T00:00:00Z",
"status": "provisioning",
"pending_job": {
"id": "string",
"kind": "string",
"url": "string"
}
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required