Skip to content

Capsules

7 calls. Every request needs the Authorization header: see the overview.

GET /capsules

Every definition of the tenant, or of one namespace with { namespace }.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Response: Capsule[] (200)

curl -X GET "https://api.maitento.com/capsules" \
-H "Authorization: $MAITENTO_AUTH"
DELETE /capsules/by-id/{id}

Deletes the definition (refused with a 400 while something still uses it or a run of it is going).

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: no body (204)

curl -X DELETE "https://api.maitento.com/capsules/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH"
GET /capsules/by-id/{id}

The definition with this id. Throws NotFoundError when there is none.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Response: Capsule (200)

curl -X GET "https://api.maitento.com/capsules/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH"
PUT /capsules/by-id/{id}/versions/{versionNumber}/start

Starts a capsule (status New); by name the latest version, by { id, version? } as for apps. Never retried.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes
versionNumberintegeryes

Request body: CapsuleProcessStartRequest

FieldTypeRequiredDescription
virtualFileSystemMountsCapsuleVirtualFileSystemMountInput[]Virtual file system mounts for this run. Unless replaceMounts is true, a non-empty list replaces the capsule’s own mounts and an empty list keeps them.
secretMountsCapsuleSecretMountInput[]Secret mounts for this run. Unless replaceMounts is true, a non-empty list replaces the capsule’s own secret mounts and an empty list keeps them.
commandsCapsuleProcessCommandInput[]Shell commands to run, in order, after the capsule’s startup commands. Only each one’s command, arguments, runAsUser and maximumDuration are read.
replaceMountsboolean | nullTrue: virtualFileSystemMounts and secretMounts are this run’s complete mounts, so an empty list means none of that kind. Null or false: an empty list keeps the capsule’s own mounts of that kind.

Response: CapsuleProcess (200)

curl -X PUT "https://api.maitento.com/capsules/by-id/<id>/versions/<versionNumber>/start" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"virtualFileSystemMounts":[],"secretMounts":[],"commands":[],"replaceMounts":false}'
GET /namespaces/{namespaceName}/capsules

Every definition of the tenant, or of one namespace with { namespace }.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namespaceNamestringyes

Response: Capsule[] (200)

curl -X GET "https://api.maitento.com/namespaces/<namespaceName>/capsules" \
-H "Authorization: $MAITENTO_AUTH"
GET /namespaces/{namespaceName}/capsules/by-name/{name}

The definition with this name in the namespace. Throws NotFoundError when there is none.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namespaceNamestringyes
namestringyes

Response: Capsule (200)

curl -X GET "https://api.maitento.com/namespaces/<namespaceName>/capsules/by-name/<name>" \
-H "Authorization: $MAITENTO_AUTH"
PUT /namespaces/{namespaceName}/capsules/by-name/{name}/versions/latest/start

Starts a capsule (status New); by name the latest version, by { id, version? } as for apps. Never retried.

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
namespaceNamestringyes
namestringyes

Request body: CapsuleProcessStartRequest

FieldTypeRequiredDescription
virtualFileSystemMountsCapsuleVirtualFileSystemMountInput[]Virtual file system mounts for this run. Unless replaceMounts is true, a non-empty list replaces the capsule’s own mounts and an empty list keeps them.
secretMountsCapsuleSecretMountInput[]Secret mounts for this run. Unless replaceMounts is true, a non-empty list replaces the capsule’s own secret mounts and an empty list keeps them.
commandsCapsuleProcessCommandInput[]Shell commands to run, in order, after the capsule’s startup commands. Only each one’s command, arguments, runAsUser and maximumDuration are read.
replaceMountsboolean | nullTrue: virtualFileSystemMounts and secretMounts are this run’s complete mounts, so an empty list means none of that kind. Null or false: an empty list keeps the capsule’s own mounts of that kind.

Response: CapsuleProcess (200)

curl -X PUT "https://api.maitento.com/namespaces/<namespaceName>/capsules/by-name/<name>/versions/latest/start" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"virtualFileSystemMounts":[],"secretMounts":[],"commands":[],"replaceMounts":false}'