| Name | Type |
|---|---|
| name | str |
| dataplane_url | Optional[str] |
| id | Optional[str] |
| status | str |
| status_message | Optional[str] |
| created_at | Optional[str] |
| updated_at | Optional[str] |
| idle_ttl_seconds | Optional[int] |
| delete_after_stop_seconds | Optional[int] |
| stopped_at | Optional[str] |
| snapshot_id | Optional[str] |
| vcpus | Optional[int] |
| mem_bytes | Optional[int] |
| fs_capacity_bytes | Optional[int] |
| _client | SandboxClient |
| _auto_delete | bool |
Represents an active sandbox for running commands and file operations.
This class is typically obtained from SandboxClient.sandbox() and supports the context manager protocol for automatic cleanup.
Example:
with client.sandbox(snapshot_id="