Mount A Volume
/workspace/.nullspace.
Mount A Subpath
Expose only one directory from the volume:subpath is resolved inside the volume and exposes only that subtree at the
sandbox mount path.
Read-Only Mounts
read_only=True prevents writes through the sandbox mount. Callers with API
access can still modify the volume through direct volume.files or
nullspace volume ... operations.
Dictionary Mounts
SDK calls also accept dictionaries, which is useful when mount configuration is loaded from JSON:ref can be a volume name or volume ID.
Runtime Attach And Detach
Attach a volume to a running sandbox with the same mount descriptor shape used at create time:GET /v1/sandboxes/{id}/volumes and
GET /v1/volumes/{id}/attachments.
Detach one runtime attachment by ID:
VolumeMount, or dictionary
for sandbox.attach_volume(...). If read_only is omitted, the runtime API
defaults it to false.
Health And Remount
Use health and remount operations when a mounted volume is degraded or after an operator asks you to refresh the live mount:requested, mounting, mounted, paused,
remounting, unmounted, releasing, released, and failed.
Destroy the sandbox to release all remaining volume attachments. Hibernating or
pausing a sandbox releases the live mount lease while the VM is stopped, but it
preserves the attachment intent; resume remounts the same volumes. Fork and
snapshot restore also remount the stored attachments in the new sandbox.
The CLI currently supports create-time --volume entries. Use the SDK or HTTP
API for runtime attach, detach, health, and remount operations.