Experimental
StopSandbox stops a running sandbox; a backend advertising memory preservation hibernates it.
/v1/sandboxes/{sandbox}/stop Connection and access
API connection and authentication guidance
https://connect.docker.com/sandboxes
—
The API base URL. Append the /v1 paths while preserving this URL's path prefix.
Use one of these alternatives. Requirements within an alternative apply together.
bearer
Parameters
sandbox
path
Required
Type:
string
All schema constraints and annotations
{
"type": "string"
}Idempotency-Key
header
Type:
string
All schema constraints and annotations
{
"description": "Idempotency key. A replay returns the first result; the same key with a different payload fails with FAILED_PRECONDITION; retained at least 24 hours.",
"title": "Idempotency-Key",
"type": "string"
}If-Match
header
Required
Type:
string
All schema constraints and annotations
{
"description": "etag is the required precondition, the value the target's last read returned.\nAn absent one refuses etag_required and a stale one etag_mismatch.",
"title": "If-Match",
"type": "string"
}Request and responses
Request
application/json
Type:
object
All schema constraints and annotations
{
"additionalProperties": false,
"description": "StopSandboxRequest stops a sandbox; a backend advertising memory preservation hibernates it.",
"properties": {},
"title": "StopSandboxRequest",
"type": "object"
}Response
200
application/json
Headers
ETagThe etag of the resource this response carries, which the next mutation of it sends as If-Match.
{
"description": "The etag of the resource this response carries, which the next mutation of it sends as If-Match.",
"schema": {
"type": "string"
}
}All constraints apply
Schema:
Sandbox
All schema constraints and annotations
{
"not": {
"properties": {
"core": {
"properties": {
"status": {
"enum": [
"stopping"
]
}
},
"required": [
"status"
]
}
},
"required": [
"core"
]
}
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/Sandbox"
},
{
"not": {
"properties": {
"core": {
"properties": {
"status": {
"enum": [
"stopping"
]
}
},
"required": [
"status"
]
}
},
"required": [
"core"
]
}
}
]
}Response
202
application/json
Headers
ETagThe etag of the resource this response carries, which the next mutation of it sends as If-Match.
{
"description": "The etag of the resource this response carries, which the next mutation of it sends as If-Match.",
"schema": {
"type": "string"
}
}All constraints apply
Schema:
Sandbox
core
· required
status
· required
All schema constraints and annotations
{
"enum": [
"stopping"
]
}All schema constraints and annotations
{
"properties": {
"status": {
"enum": [
"stopping"
]
}
},
"required": [
"status"
]
}All schema constraints and annotations
{
"properties": {
"core": {
"properties": {
"status": {
"enum": [
"stopping"
]
}
},
"required": [
"status"
]
}
},
"required": [
"core"
]
}All schema constraints and annotations
{
"allOf": [
{
"$ref": "#/components/schemas/Sandbox"
},
{
"properties": {
"core": {
"properties": {
"status": {
"enum": [
"stopping"
]
}
},
"required": [
"status"
]
}
},
"required": [
"core"
]
}
]
}Response
409
application/json
Schema:
Error
failedPrecondition
{
"code": "failedPrecondition",
"message": "The Idempotency-Key was already used with a different payload."
}Response
412
application/json
Schema:
Error
etag_mismatch
{
"code": "failedPrecondition",
"details": [
{
"@type": "type.googleapis.com/docker.sandboxes.v1.EtagMismatch",
"currentEtag": "v2"
}
],
"message": "etag_mismatch: The precondition is not the resource's current etag. The body carries failedPrecondition naming etag_mismatch and an EtagMismatch detail with the current value."
}Response
428
application/json
Schema:
Error
etag_required
{
"code": "failedPrecondition",
"message": "etag_required: No precondition was sent. The body carries failedPrecondition naming etag_required."
}Response
default
application/json
Schema:
Error
Schema example
{
"code": "notFound",
"details": [],
"message": "sandbox not found"
}Referenced schemas
Complete operation contract
{
"description": "StopSandbox stops a running sandbox; a backend advertising memory preservation hibernates it.\nAction: a lifecycle transition is not a representation a caller can PUT.",
"operationId": "stopSandbox",
"parameters": [
{
"description": "The sandbox id.",
"in": "path",
"name": "sandbox",
"required": true,
"schema": {
"type": "string"
}
},
{
"description": "Replay key. Reusing it with a different payload fails with failedPrecondition; accepted keys are retained for at least 24 hours.",
"in": "header",
"name": "Idempotency-Key",
"schema": {
"description": "Idempotency key. A replay returns the first result; the same key with a different payload fails with FAILED_PRECONDITION; retained at least 24 hours.",
"title": "Idempotency-Key",
"type": "string"
}
},
{
"description": "The complete quoted strong entity-tag observed on the resource, including its quotes. Every mutation of an existing resource requires it: an absent value answers 428 and a stale one 412, each carrying failedPrecondition in the body.",
"in": "header",
"name": "If-Match",
"required": true,
"schema": {
"description": "etag is the required precondition, the value the target's last read returned.\nAn absent one refuses etag_required and a stale one etag_mismatch.",
"title": "If-Match",
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"description": "StopSandboxRequest stops a sandbox; a backend advertising memory preservation hibernates it.",
"properties": {},
"title": "StopSandboxRequest",
"type": "object"
}
}
},
"required": false
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/Sandbox"
},
{
"not": {
"properties": {
"core": {
"properties": {
"status": {
"enum": [
"stopping"
]
}
},
"required": [
"status"
]
}
},
"required": [
"core"
]
}
}
]
}
}
},
"description": "Success",
"headers": {
"ETag": {
"description": "The etag of the resource this response carries, which the next mutation of it sends as If-Match.",
"schema": {
"type": "string"
}
}
}
},
"202": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/Sandbox"
},
{
"properties": {
"core": {
"properties": {
"status": {
"enum": [
"stopping"
]
}
},
"required": [
"status"
]
}
},
"required": [
"core"
]
}
]
}
}
},
"description": "Accepted. The resource is still progressing; read it or follow its events until completion.",
"headers": {
"ETag": {
"description": "The etag of the resource this response carries, which the next mutation of it sends as If-Match.",
"schema": {
"type": "string"
}
}
}
},
"409": {
"content": {
"application/json": {
"examples": {
"failedPrecondition": {
"summary": "The Idempotency-Key was already used with a different payload.",
"value": {
"code": "failedPrecondition",
"message": "The Idempotency-Key was already used with a different payload."
}
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The Idempotency-Key was already used with a different payload."
},
"412": {
"content": {
"application/json": {
"examples": {
"etag_mismatch": {
"summary": "The precondition is not the resource's current etag. The body carries failedPrecondition naming etag_mismatch and an EtagMismatch detail with the current value.",
"value": {
"code": "failedPrecondition",
"details": [
{
"@type": "type.googleapis.com/docker.sandboxes.v1.EtagMismatch",
"currentEtag": "v2"
}
],
"message": "etag_mismatch: The precondition is not the resource's current etag. The body carries failedPrecondition naming etag_mismatch and an EtagMismatch detail with the current value."
}
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The precondition is not the resource's current etag. The body carries failedPrecondition naming etag_mismatch and an EtagMismatch detail with the current value."
},
"428": {
"content": {
"application/json": {
"examples": {
"etag_required": {
"summary": "No precondition was sent. The body carries failedPrecondition naming etag_required.",
"value": {
"code": "failedPrecondition",
"message": "etag_required: No precondition was sent. The body carries failedPrecondition naming etag_required."
}
}
},
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "No precondition was sent. The body carries failedPrecondition naming etag_required."
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "The structured Error body identifies the failure with a stable code and optional typed details."
}
},
"security": [
{
"bearer": []
}
],
"summary": "StopSandbox stops a running sandbox; a backend advertising memory preservation hibernates it.",
"tags": [
"Sandboxes"
],
"x-sbx-authenticated-only": false,
"x-sbx-conditional-permissions": [],
"x-sbx-error-responses": [
{
"code": "FAILED_PRECONDITION",
"description": "The Idempotency-Key was already used with a different payload."
}
],
"x-sbx-plane": "control",
"x-sbx-required-permissions": [
"sandboxesLifecycle"
],
"x-sbx-resource-response": {
"$ref": "#/components/schemas/Sandbox"
},
"x-sbx-serving-surface": "management"
}