What You’ll Learn
- Creating a new sandbox
- Setting labels and metadata
- Starting and stopping sandboxes
- Retrieving sandbox information
- Listing all sandboxes
- Deleting sandboxes
Complete Example
- Python
- TypeScript
- Go
Expected Output
Key Concepts
Creating a Sandbox
The simplest way to create a sandbox is callingcreate() with no parameters. This creates a sandbox with default settings:
- Language: Python (default)
- State: Running
- Auto-archive: Enabled (after inactivity)
Setting Labels
Labels are key-value pairs that help organize and identify sandboxes:Sandbox States
Sandboxes can be in different states:running- Sandbox is active and ready to usestopped- Sandbox is paused and not consuming compute resourcesarchived- Sandbox is archived to save storage costs
Listing Sandboxes
Thelist() method returns paginated results:
Best Practices
Next Steps
File Operations
Learn how to upload and download files
Code Execution
Execute code in your sandboxes