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 MarkdownPOST/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
| Field | Type | Description |
|---|---|---|
display_name | 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. |
password | string | |
queue | boolean | Queue admits the import without checking future sandbox capacity. |
referenceRequired | 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. |
username | string | |
workspace_id | string | WorkspaceID lists the image in this workspace (default main); importing 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.