Preview. Give a running sandbox a new end, timeout seconds from now. It can be sooner or later than the last.
AuthorizationBearer <token>Your Munito API key.
sandbox_id*stringThe id of the sandbox.
application/json- body
timeout*integerSeconds from now until the sandbox stops, or pauses when it is persistent: from 10 to 86400.
The sandbox, with its new end.
application/json- response
id*stringobject?string"sandbox"status*SandboxStatuspending until it runs, then running, then stopped. failed when it did not start. A persistent sandbox is paused between a pause and a resume, and pending while it resumes.
"pending""running""paused""stopped""failed"template*stringsize*stringThe preset, or custom.
vcpus*integermemory_mib*integerdisk_gib*integerThe root disk in GiB.
internet*booleanpersistent*booleanThe sandbox keeps its files and its processes across a pause.
metadata*created_at*integerUnix seconds.
started_at*|Unix seconds, or null before the sandbox runs.
expires_at*integerUnix seconds. The sandbox stops then, or pauses when it is persistent.
ended_at*|Unix seconds, or null while the sandbox runs.
end_reason*|deleted, timeout or error, or null while the sandbox runs.
public_ports?array<integer>The ports that open without the sandbox's token.
ssh_keys?array<string>The public keys that open SSH to the sandbox.
hostname?|The name of the sandbox in its networks, or null for its id.
networks?array<>The networks that the sandbox is a member of.
curl -X POST 'https://api.munito.ai/sandboxes/v1/sandboxes/string/timeout' \
-H 'Content-Type: application/json' \
-d '{
"timeout": 0
}'{
"id": "string",
"object": "sandbox",
"status": "pending",
"template": "string",
"size": "string",
"vcpus": 0,
"memory_mib": 0,
"disk_gib": 0,
"internet": true,
"persistent": true,
"metadata": {
"property1": "string",
"property2": "string"
},
"created_at": 0,
"started_at": 0,
"expires_at": 0,
"ended_at": 0,
"end_reason": "deleted",
"public_ports": [
0
],
"ssh_keys": [
"string"
],
"hostname": "string",
"networks": [
{
"id": "string",
"name": "string",
"dns_name": "string",
"address": "string"
}
]
}