@@ -10,22 +10,27 @@ This directory contains OpenAPI specification documents for the OpenSandbox proj
1010
1111** Sandbox Lifecycle Management API**
1212
13- Defines the complete lifecycle interfaces for creating, managing, and destroying sandbox environments directly from container images.
13+ Defines the complete lifecycle interfaces for creating, managing, and destroying sandbox environments from container images or snapshots .
1414
1515** Core Features:**
1616- ** Sandbox Management** : Create, list, query, and delete sandbox instances with metadata filters and pagination
1717- ** State Control** : Pause and resume sandbox execution
1818- ** Lifecycle States** : Supports transitions across Pending → Running → Pausing → Paused → Stopping → Terminated, and error handling with ` Failed `
19- - ** Resource & Runtime Configuration** : Specify CPU/memory/GPU resource limits, required ` entrypoint ` , environment variables, and opaque ` extensions `
19+ - ** Resource & Runtime Configuration** : Specify CPU/memory/GPU resource limits, image startup ` entrypoint ` , environment variables, and opaque ` extensions `
2020- ** Image Support** : Create sandboxes from public or private registries, including registry auth
2121- ** Timeout Management** : Mandatory ` timeout ` on creation with explicit renewal via API
2222- ** Endpoint Access** : Retrieve public access endpoints for services running inside sandboxes
23+ - ** Snapshot Management** : Create snapshots from sandboxes, list snapshots, and delete snapshots
2324
2425** Main Endpoints (base path ` /v1 ` ):**
25- - ` POST /sandboxes ` - Create a sandbox from an image with timeout and resource limits
26+ - ` POST /sandboxes ` - Create a sandbox from an image or snapshot with timeout and resource limits
2627- ` GET /sandboxes ` - List sandboxes with state/metadata filters and pagination
27- - ` GET /sandboxes/{sandboxId} ` - Get full sandbox details (including image and entrypoint)
28+ - ` GET /sandboxes/{sandboxId} ` - Get full sandbox details (including startup source and entrypoint)
2829- ` DELETE /sandboxes/{sandboxId} ` - Delete a sandbox
30+ - ` POST /sandboxes/{sandboxId}/snapshots ` - Create a snapshot from a sandbox
31+ - ` GET /snapshots ` - List snapshots with optional sandbox filtering and pagination
32+ - ` GET /snapshots/{snapshotId} ` - Get snapshot state and metadata
33+ - ` DELETE /snapshots/{snapshotId} ` - Delete a snapshot
2934- ` POST /sandboxes/{sandboxId}/pause ` - Pause a sandbox (asynchronous)
3035- ` POST /sandboxes/{sandboxId}/resume ` - Resume a paused sandbox
3136- ` POST /sandboxes/{sandboxId}/renew-expiration ` - Renew sandbox expiration (TTL)
0 commit comments