API reference

Prepare a sandbox image from a Dockerfile

Builds the recipe, or reuses the organization's build of the same recipe, and lists the image in workspace_id (default main). Requires developer access to the workspace.

View Markdown

POST/sandbox-images/from-dockerfile

Builds the recipe, or reuses the organization's build of the same recipe, and lists the image in workspace_id (default main). Requires developer access to the workspace.

Request body

application/json

FieldTypeDescription
archive_bytesRequiredinteger
build_options_hashRequiredstring
context_hashRequiredstring
display_namestring
dockerfile_hashRequiredstring
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.
queuebooleanQueue admits the build without checking future sandbox capacity.
recipe_hashRequiredstring
registry_hoststringRegistryHost, RegistryUsername and RegistryPassword optionally authenticate the build's base-image pulls (the Dockerfile's FROM). Username and password come together, with the host of the registry they are for; the build offers them to no other registry.
registry_passwordstring
registry_usernamestring
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.
ssh_public_keyRequiredstring
workspace_idstringWorkspaceID lists the image in this workspace (default main); building 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.