Resume a paused instance, which continues from the file system and memory state captured when it was paused. Compatible with the E2B resume protocol.
Prerequisites
Configure the endpoint and authentication first. See API overview and authentication.
Endpoint
POST /sandboxes/{sandboxID}/resume
Resume a paused instance, which continues from the file system and memory state captured when it was paused. Compatible with the E2B resume protocol.
Path parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
sandboxID | Yes | string | Unique instance ID. |
Request body
The request body is optional.
| Field | Required | Type | Description |
|---|---|---|---|
timeout | No | integer | Instance timeout after resuming, in seconds. Valid range: [300,604800]. |
Request example
BASE_URL is https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/sandbox, and BAILIAN_API_KEY is your Alibaba Cloud Model Studio API key.
Response example
Returns 200 with the full connection information on success.
Response fields
| Field | Type | Description |
|---|---|---|
sandboxID | string | Unique instance ID. |
templateID | string | Template ID. |
envdVersion | string | envd version. |
domain | string | Data-plane access domain. |
envdAccessToken | string | envd access token. |
trafficAccessToken | string | Traffic access token. |
envdUrl | string | envd access URL. |
state | string | Instance state, for example running. |