Stop the container
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}/container/stop may answer 202Stop the container
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. |
Responses
202 Queued
Content type: application/json
A site's Windows container (ADR 0162). Experimental: not yet run on Windows.
configuredboolean requiredimagestring requiredtagstring requireddigeststring requiredportinteger requiredrestartstring requiredhealth_pathstring requiredisolationstring requireduserstring requirednamestring requiredA folder under the site's app\data; never a path
targetstring requiredFolder inside the container, such as C:\app\data; not C:\ itself or the system folders
desiredstring requiredrunning or stopped: what the owner asked for
statestring requiredrunning, stopped, failed, or empty before the first deployment
workingboolean requiredlast_errorstring requiredregistry_userstring requiredhas_registry_passwordboolean requiredrestartingboolean requiredSaving started the running release again to apply the variables
revisioninteger required0 until the variables are first saved
updated_atstring (date-time) | null requiredvarsarray<object> requirednamestring requiredvaluestring optionalLeft out for a secret: secrets are write-only
secretboolean requiredhas_valueboolean required
cpu_coresnumber requiredmemory_mbinteger requiredmax_image_mbinteger requiredidstring requiredimagestring requiredtagstring requiredwantedstring requiredThe digest pinned when deployed, or empty
digeststring requiredThe digest the server ran, known once deployed
statestring requiredAllowed values:"deploying""active""standby""failed"error_codestring requiredimage_bytesinteger (int64) requiredcreated_atstring (date-time) required
hostobject requiredengineboolean requiredengine_versionstring requiredhypervboolean requiredengine_kindstring requiredThe server's container engine (ADR 0193); containerd runs trusted containers only
Allowed values:"docker""containerd"hyperv_isolationboolean requiredThe server can run Hyper-V isolated containers now (ADR 0190): false on a VM without nested virtualization, and when unknown
os_buildinteger requiredimage_tagstring requiredThe Microsoft base image tag that matches the server (ltsc2019, ltsc2022, ltsc2025)
linuxstring requiredAllowed values:"not_supported"
allowedboolean requiredisolation_requiredstring requiredtruststring requiredThe container's trust profile (ADR 0190); before it has one, the plan's
Allowed values:"trusted""standard""hostile"trust_requiredstring requiredThe weakest profile the plan allows
Allowed values:"trusted""standard""hostile"trust_choicesarray<string> requiredThe profiles the owner may choose, weakest first
Allowed values:"trusted""standard""hostile"registriesarray<string> requiredrequire_digestboolean requiredupdated_atstring (date-time) | null requiredMulti-service manifest (ADR 0192); null for one container
webstring requiredweb_commandarray<string> requiredweb_entrypointarray<string> requiredweb_depends_onarray<string> requiredtypestring requiredtcp: the broker connects to port; cmd: the engine runs cmd inside the container; none: running is enough. The web service is always checked over HTTP too
Allowed values:"""tcp""cmd""none"portinteger optional- minimum 0
- maximum 65535
cmdstring optionalOne line, run inside the container by its shell (never on the server)
interval_sinteger optional- minimum 0
- maximum 3600
timeout_sinteger optional- minimum 0
- maximum 600
retriesinteger optional- minimum 0
- maximum 100
start_period_sinteger optional- minimum 0
- maximum 3600
web_cpu_coresnumber requiredweb_memory_mbinteger requirednamestring requiredimagestring requiredtagstring requireddigeststring requiredrunning_digeststring requiredThe digest the active release runs
commandarray<string> requiredentrypointarray<string> requiredenvarray<object> requirednamestring requiredvaluestring optionalLeft out for a secret
secretboolean requiredhas_valueboolean required
Fields of ContainerVolume are shown above.
cpu_coresnumber requiredmemory_mbinteger requiredshared_limitsboolean requiredrestartstring requireduserstring requiredFields of ContainerHealth are shown above.
depends_onarray<string> required
orderarray<string> requiredStart order, the web service last
sourcestring required
Example
{
"configured": true,
"image": "string",
"tag": "string",
"digest": "string",
"port": 0,
"restart": "string",
"health_path": "string",
"isolation": "string",
"user": "string",
"volumes": [
{
"name": "string",
"target": "string"
}
],
"desired": "string",
"state": "string",
"working": true,
"last_error": "string",
"registry_user": "string",
"has_registry_password": true,
"env": {
"restarting": true,
"revision": 0,
"updated_at": "2026-01-01T00:00:00Z",
"vars": [
{
"name": "string",
"value": "string",
"secret": true,
"has_value": true
}
]
},
"cpu_cores": 0,
"memory_mb": 0,
"max_image_mb": 0,
"active": {
"id": "string",
"image": "string",
"tag": "string",
"wanted": "string",
"digest": "string",
"state": "deploying",
"error_code": "string",
"image_bytes": 0,
"created_at": "2026-01-01T00:00:00Z"
},
"host": {
"engine": true,
"engine_version": "string",
"hyperv": true,
"engine_kind": "docker",
"hyperv_isolation": true,
"os_build": 0,
"image_tag": "string",
"linux": "not_supported"
},
"allowed": true,
"isolation_required": "string",
"trust": "trusted",
"trust_required": "trusted",
"trust_choices": [
"trusted"
],
"registries": [
"string"
],
"require_digest": true,
"updated_at": "2026-01-01T00:00:00Z",
"stack": {
"web": "string",
"web_command": [
"string"
],
"web_entrypoint": [
"string"
],
"web_depends_on": [
"string"
],
"web_health": {
"type": "",
"port": 0,
"cmd": "string",
"interval_s": 0,
"timeout_s": 0,
"retries": 0,
"start_period_s": 0
},
"web_cpu_cores": 0,
"web_memory_mb": 0,
"services": [
{
"name": "string",
"image": "string",
"tag": "string",
"digest": "string",
"running_digest": "string",
"command": [
"string"
],
"entrypoint": [
"string"
],
"env": [
{
"name": null,
"value": null,
"secret": null,
"has_value": null
}
],
"volumes": [
{
"name": null,
"target": null
}
],
"cpu_cores": 0,
"memory_mb": 0,
"shared_limits": true,
"restart": "string",
"user": "string",
"health": {
"type": "",
"port": 0,
"cmd": "string",
"interval_s": 0,
"timeout_s": 0,
"retries": 0,
"start_period_s": 0
},
"depends_on": [
"string"
]
}
],
"order": [
"string"
],
"source": "string"
}
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required