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 MarkdownPOST/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
| Field | Type | Description |
|---|---|---|
archive_bytesRequired | integer | |
build_options_hashRequired | string | |
context_hashRequired | string | |
display_name | string | |
dockerfile_hashRequired | string | |
gatedFeatures | object | |
mode | string | Mode 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. |
queue | boolean | Queue admits the build without checking future sandbox capacity. |
recipe_hashRequired | string | |
registry_host | string | RegistryHost, 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_password | string | |
registry_username | string | |
spec | thundertypes.SandboxResourceSpec | Spec 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_keyRequired | string | |
workspace_id | string | WorkspaceID lists the image in this workspace (default main); building requires developer access there. |
Responses
200 · OK
| Field | Type | Description |
|---|---|---|
attempt | integer | |
created_at | string | |
display_name | string | |
failure | string | |
failure_code | string | |
id | string | |
managed_digest | string | |
managed_reference | string | |
mode | thundertypes.SandboxMode | Mode is "vm" for an image built to boot as the whole VM, and omitted for container images. |
size_bytes | integer | |
source_type | string | |
state | thundertypes.SandboxImageState | |
updated_at | string | |
upload | thundertypes.SandboxImageUpload | |
workspace_id | string |
202 · Accepted
| Field | Type | Description |
|---|---|---|
attempt | integer | |
created_at | string | |
display_name | string | |
failure | string | |
failure_code | string | |
id | string | |
managed_digest | string | |
managed_reference | string | |
mode | thundertypes.SandboxMode | Mode is "vm" for an image built to boot as the whole VM, and omitted for container images. |
size_bytes | integer | |
source_type | string | |
state | thundertypes.SandboxImageState | |
updated_at | string | |
upload | thundertypes.SandboxImageUpload | |
workspace_id | string |
400 · Bad Request
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
401 · Unauthorized
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
403 · Forbidden
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
Operation specification
The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.