The site's caps and where they come from
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}/limitsThe site's caps and where they come from (ADR 0091)
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 Caps
Content type: application/json
cpu_percentinteger requiredmemory_mbinteger requiredappboolean requiredapp_cpu_percentinteger requiredapp_memory_mbinteger requiredsourcestring requiredinternal: the defaults of a site without a plan (ADR 0122)
Allowed values:"plan""internal""custom""none"plan_cpu_percentinteger requiredThe plan's caps, or without a plan the internal defaults that inherit gives back
plan_memory_mbinteger requiredplan_app_cpu_percentinteger requiredplan_app_memory_mbinteger requiredauto_healstring requiredhas_planboolean requiredcpu_coresnumber requiredCap in cores the percent came from on this server (ADR 0126); 0 when given in percent
app_cpu_coresnumber requiredplan_cpu_coresnumber requiredplan_app_cpu_coresnumber requiredserver_cpusinteger requiredLogical processors the server reported; 0 not yet
Example
{
"cpu_percent": 0,
"memory_mb": 0,
"app": true,
"app_cpu_percent": 0,
"app_memory_mb": 0,
"source": "plan",
"plan_cpu_percent": 0,
"plan_memory_mb": 0,
"plan_app_cpu_percent": 0,
"plan_app_memory_mb": 0,
"auto_heal": "string",
"has_plan": true,
"cpu_cores": 0,
"app_cpu_cores": 0,
"plan_cpu_cores": 0,
"plan_app_cpu_cores": 0,
"server_cpus": 0
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required