Skip to content

CapsuleVersion

A version of a capsule: the packages, users, mounts and startup commands a run starts with, and how long it may last.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
templatestringThe base image name recorded with the capsule (template). Every capsule runs on the same image, so it does not change what runs.
additionalPackagesstring[]Extra Debian packages installed with apt when a run starts.
usersCapsuleUserDefinition[]Linux users created when a run starts.
virtualFileSystemMountsCapsuleVirtualFileSystemMount[]Virtual file systems mounted when a run starts, unless the start request replaces them.
secretMountsCapsuleSecretMount[]Secrets mounted when a run starts, unless the start request replaces them.
startupCommandsCapsuleStartupCommand[]Commands run, in order, when a run starts.
autoTerminateAfterStartupCommandsbooleanWhether a run finishes as soon as its startup commands (and any commands sent with the start) are done.
maximumDurationtimespan | nullThe longest a run may last (maxDuration), counted from when it starts; null means ten minutes. A run still starting up then fails; a ready one finishes, and a command it is still running or has queued ends AbortedOnTermination.
versionintegerThe version number, from 1. Every change to a definition adds a new version with the next number.
datedatetimeWhen this version was created, in UTC.
isDisabledbooleanWhether this version is disabled. A disabled version is never used: new links and runs take the latest enabled version, and anything pinned to this one fails until it is re-enabled.
{
"template": "...",
"additionalPackages": [
"..."
],
"users": [
{
"name": "...",
"sudoAsUsers": []
}
],
"virtualFileSystemMounts": [
{
"vfsId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"vfsNamespaceId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"mountName": "..."
}
],
"secretMounts": [
{
"secretName": "...",
"mountName": "..."
}
],
"startupCommands": [
{
"command": "...",
"arguments": [],
"runAsUser": "...",
"maximumDuration": "00:05:00",
"waitToComplete": false
}
],
"autoTerminateAfterStartupCommands": false,
"maximumDuration": "00:05:00",
"version": 0,
"date": "2026-10-26T12:00:00.0000000Z",
"isDisabled": false
}