API referenceSections

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}/limits

The site's caps and where they come from (ADR 0091)

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Responses

200 Caps

Content type: application/json

  • cpu_percent integer required
  • memory_mb integer required
  • app boolean required
  • app_cpu_percent integer required
  • app_memory_mb integer required
  • source string required

    internal: the defaults of a site without a plan (ADR 0122)

    Allowed values: "plan" "internal" "custom" "none"
  • plan_cpu_percent integer required

    The plan's caps, or without a plan the internal defaults that inherit gives back

  • plan_memory_mb integer required
  • plan_app_cpu_percent integer required
  • plan_app_memory_mb integer required
  • auto_heal string required
  • has_plan boolean required
  • cpu_cores number required

    Cap in cores the percent came from on this server (ADR 0126); 0 when given in percent

  • app_cpu_cores number required
  • plan_cpu_cores number required
  • plan_app_cpu_cores number required
  • server_cpus integer required

    Logical 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

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