Skip to content

CapsuleProcessCommand

A command or operation sent to a capsule run, with its status and result. In a start request’s commands, only command, arguments, runAsUser and maximumDuration are read: each runs as a shell command once the capsule is ready.

Kind: an object, used in requests and responses. In a request it is called CapsuleProcessCommandInput.

FieldTypeRequiredDescription
iduuidThe command’s id.
operationTypeCapsuleOperationTypeWhat it does: Command runs a shell command; the others change the running capsule (mount, add a user, install a package, stop it and so on).
commandstringFor Command, the shell command that runs. For other operations, what they act on, such as the mount name, user name or package name.
argumentsstring[]For Command, the command’s arguments. For other operations, their parameters.
runAsUserstring | nullThe user the command runs as. Null: the default user.
maximumDurationtimespan | nullThe longest the command may run before it is stopped. Null: five minutes.
statusCapsuleProcessCommandStatusWhere the command is.
outputStandardstring | nullWhat the command wrote to standard output: at most the last 65,536 characters (see outputStandardFullLength). Null until it ends.
outputErrorstring | nullWhat the command wrote to standard error: at most the last 65,536 characters (see outputErrorFullLength). Null until it ends.
exitCodeinteger | nullThe command’s exit code. Null until it ends, and when it was stopped before it exited.
failureDetailsstring | nullWhy the command failed, when its status is Error or AbortedOnTermination. Null otherwise.
isAsyncbooleanWhether the command was started in the background: the capsule moves on to the next command without waiting for it, and records its result when it ends.
dateQueueddatetime | nullWhen the command was queued, in UTC. May be null on older runs.
dateStarteddatetime | nullWhen the command started executing, in UTC. Null while it waits its turn.
dateEndeddatetime | nullWhen the command reached its final status (Finished, Error or AbortedOnTermination), in UTC.
outputStandardFullLengthinteger | nullFor Command: the full length of the standard output, in characters, when it was longer than is kept, so outputStandard holds only its last part. Null when outputStandard is complete.
outputErrorFullLengthinteger | nullFor Command: the full length of the standard error, in characters, when it was longer than is kept, so outputError holds only its last part. Null when outputError is complete.
timedOutboolean | nullFor Command: true when it was stopped for its time limit. It then has no exit code, and failureDetails says so. Null otherwise.
{
"id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"operationType": "Command",
"command": "...",
"arguments": [
"..."
],
"runAsUser": "...",
"maximumDuration": "00:05:00",
"status": "Pending",
"outputStandard": "...",
"outputError": "...",
"exitCode": 0,
"failureDetails": "...",
"isAsync": false,
"dateQueued": "2026-10-26T12:00:00.0000000Z",
"dateStarted": "2026-10-26T12:00:00.0000000Z",
"dateEnded": "2026-10-26T12:00:00.0000000Z",
"outputStandardFullLength": 0,
"outputErrorFullLength": 0,
"timedOut": false
}

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

FieldTypeDescription
iduuidThe command’s id.
operationTypeCapsuleOperationTypeWhat it does: Command runs a shell command; the others change the running capsule (mount, add a user, install a package, stop it and so on).
commandstringFor Command, the shell command that runs. For other operations, what they act on, such as the mount name, user name or package name.
argumentsstring[]For Command, the command’s arguments. For other operations, their parameters.
runAsUserstring | nullThe user the command runs as. Null: the default user.
maximumDurationtimespan | nullThe longest the command may run before it is stopped. Null: five minutes.
statusCapsuleProcessCommandStatusWhere the command is.
outputStandardstring | nullWhat the command wrote to standard output: at most the last 65,536 characters (see outputStandardFullLength). Null until it ends.
outputErrorstring | nullWhat the command wrote to standard error: at most the last 65,536 characters (see outputErrorFullLength). Null until it ends.
exitCodeinteger | nullThe command’s exit code. Null until it ends, and when it was stopped before it exited.
failureDetailsstring | nullWhy the command failed, when its status is Error or AbortedOnTermination. Null otherwise.
isAsyncbooleanWhether the command was started in the background: the capsule moves on to the next command without waiting for it, and records its result when it ends.
dateQueueddatetime | nullWhen the command was queued, in UTC. May be null on older runs.
dateStarteddatetime | nullWhen the command started executing, in UTC. Null while it waits its turn.
dateEndeddatetime | nullWhen the command reached its final status (Finished, Error or AbortedOnTermination), in UTC.
outputStandardFullLengthinteger | nullFor Command: the full length of the standard output, in characters, when it was longer than is kept, so outputStandard holds only its last part. Null when outputStandard is complete.
outputErrorFullLengthinteger | nullFor Command: the full length of the standard error, in characters, when it was longer than is kept, so outputError holds only its last part. Null when outputError is complete.
timedOutboolean | nullFor Command: true when it was stopped for its time limit. It then has no exit code, and failureDetails says so. Null otherwise.
{
"id": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"operationType": "Command",
"command": "...",
"arguments": [
"..."
],
"runAsUser": "...",
"maximumDuration": "00:05:00",
"status": "Pending",
"outputStandard": "...",
"outputError": "...",
"exitCode": 0,
"failureDetails": "...",
"isAsync": false,
"dateQueued": "2026-10-26T12:00:00.0000000Z",
"dateStarted": "2026-10-26T12:00:00.0000000Z",
"dateEnded": "2026-10-26T12:00:00.0000000Z",
"outputStandardFullLength": 0,
"outputErrorFullLength": 0,
"timedOut": false
}