API reference

Import a sandbox image from a registry

Imports the image, or reuses the organization's import of the same digest, and lists it in workspace_id (default main). Requires developer access to the workspace.

View Markdown

POST/sandbox-images/from-registry

Imports the image, or reuses the organization's import of the same digest, and lists it in workspace_id (default main). Requires developer access to the workspace.

Request body

application/json

FieldTypeDescription
display_namestring
gatedFeaturesobject
modestringMode is "container" (the default) or "vm", which builds the image to boot as the whole VM. Images of one mode only start sandboxes of that mode.
passwordstring
queuebooleanQueue admits the import without checking future sandbox capacity.
referenceRequiredstring
specthundertypes.SandboxResourceSpecSpec optionally describes the intended sandbox for a best-effort capacity check. New builds without it do not receive the automatic first-sandbox queue allowance.
usernamestring
workspace_idstringWorkspaceID lists the image in this workspace (default main); importing requires developer access there.

Responses

200 · OK
FieldTypeDescription
attemptinteger
created_atstring
display_namestring
failurestring
failure_codestring
idstring
managed_digeststring
managed_referencestring
modethundertypes.SandboxModeMode is "vm" for an image built to boot as the whole VM, and omitted for container images.
size_bytesinteger
source_typestring
statethundertypes.SandboxImageState
updated_atstring
uploadthundertypes.SandboxImageUpload
workspace_idstring
202 · Accepted
FieldTypeDescription
attemptinteger
created_atstring
display_namestring
failurestring
failure_codestring
idstring
managed_digeststring
managed_referencestring
modethundertypes.SandboxModeMode is "vm" for an image built to boot as the whole VM, and omitted for container images.
size_bytesinteger
source_typestring
statethundertypes.SandboxImageState
updated_atstring
uploadthundertypes.SandboxImageUpload
workspace_idstring
400 · Bad Request
FieldTypeDescription
codeinteger
errorstring
messagestring
401 · Unauthorized
FieldTypeDescription
codeinteger
errorstring
messagestring
403 · Forbidden
FieldTypeDescription
codeinteger
errorstring
messagestring

Operation specification

The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.