Volcengine Kubernetes Engine
Category | API | Description | Compatibility | Compatibility remarks |
Category | API | Description | Compatibility | Compatibility remarks |
Sandbox lifecycle | create | Creates a VCI Agent Sandbox. | Partially compatible | The following capabilities are not supported: network access control, in-place configuration change, and automatic pause. |
Sandbox lifecycle | get_info | Queries VCI Agent Sandbox instance information. | Fully compatible | None |
Sandbox lifecycle | list | Lists all VCI Agent Sandbox information. | Fully compatible | None |
Sandbox lifecycle | delete | Deletes the specified VCI Agent Sandbox instance. | Fully compatible | None |
Sandbox lifecycle | connect | Connects to the specified VCI Agent Sandbox instance. | Fully compatible | None |
Sandbox lifecycle | pause | Pauses the specified VCI Agent Sandbox instance. This interface is asynchronous. When the interface call is successful, the underlying Pod for the Sandbox is reclaimed while the snapshot is still being created. | Fully compatible | None |
Sandbox lifecycle | resume | Resumes the VCI Agent Sandbox instance. Data will be automatically restored from the writable layer snapshot generated during the last pause. | Fully compatible | None |
File system | write | The e2b-code-interpreter component needs to run in the primary container. You can view the definition of the e2b-code-interpreter component in the initcontainer of the template. | Fully compatible | In addition to defining relevant settings in the initcontainer field in the template, you can also use the annotation agent.sandbox.io/enable-envd-injection: "true" to allow VCI to automatically inject the envd program. |
File operations | read | | Fully compatible | |
Code execution | run_code | | Fully compatible | |
Command execution | commands.run | | Fully compatible | |
API Key management | - | Because the E2B code interpreter SDK does not include API Key management functionality, relevant operations are typically performed via the E2B web console, E2B CLI, or HTTP requests. VCI Agent Sandbox primarily supports HTTP request methods, including POST, DELETE, and GET. | N/A | None |
Template management | post_templates | Creates the template based on the complete SandboxTemplate structure constructed. | Fully compatible | None |
| requests.delete | Deletes the specified template. This interface is not available in the native E2B SDK. We recommend using the API to operate on templates. | N/A | None |
| requests.patch | Updates the specified template. This interface is not available in the native E2B SDK. We recommend using the API to operate on templates. | N/A | None |
| requests.get | Queries the details of a single template. This interface is not available in the native E2B SDK. We recommend using the API to operate on templates. | N/A | None |
Snapshot management | create_snapshot | Creates a snapshot. | Fully compatible | None |
| requests.delete | Deletes a snapshot. | No compatibility | None |
| list_snapshot | Queries a list of snapshots. It returns only snapshots that have been created and are available. | Fully compatible | None |
Monitoring | get_metrics | Queries Sandbox monitoring data. | Partially compatible | You cannot specify a start or end time. |
Parameter Name | Type | Required | Description |
Parameter Name | Type | Required | Description |
template | string | Yes | The template ID used for Sandbox creation. |
timeout | int | No | Sandbox lifetime:
|
metadata | Dict[str, str] | No | Additional annotations that need to be added to the Sandbox. |
secure | bool | No | Specifies whether to enable envd authentication for the Sandbox:
|
Parameter Name | Type | Description |
Parameter Name | Type | Description |
SandboxInfo | Class | The class containing basic sandbox information. For sub-parameter descriptions, see the SandboxInfo section of this topic. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
template_id | string | The template ID used for Sandbox creation. |
sandbox_id | string | The ID of the Sandbox instance. |
envd_version | string | The envd version used. |
_envd_access_token | string | envd authentication information. |
domain | string | The domain name for accessing the E2B API. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
SandboxInfo | Class | The class containing basic sandbox information. For sub-parameter descriptions, see the SandboxInfo section of this topic. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
template_id | string | The template ID used for Sandbox creation. |
sandbox_id | string | The ID of the Sandbox instance. |
envd_version | string | The envd version used. |
_envd_access_token | string | envd authentication information. |
domain | string | The domain name for accessing the E2B API. |
Parameter Name | Type | Required | Description |
Parameter Name | Type | Required | Description |
sandboxId | string | Yes | The ID of the Sandbox instance. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
SandboxInfo | Class | The class containing basic sandbox information. For sub-parameter descriptions, see the SandboxInfo section of this topic. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
template_id | string | The template ID used for Sandbox creation. |
sandbox_id | string | The ID of the Sandbox instance. |
envd_version | string | The envd version used. |
_envd_access_token | string | envd authentication information. |
domain | string | The domain name for accessing the E2B API. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
SandboxInfo | Class | The class containing basic sandbox information. For sub-parameter descriptions, see the SandboxInfo section of this topic. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
snapshotId | string | The snapshot ID. |
Parameter Name | Type | Required | Description |
Parameter Name | Type | Required | Description |
sandboxId | string | Yes | The ID of the Sandbox instance. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
List[SandboxMetrics] | List | The list containing basic sandbox information. For sub-parameter descriptions, see the SandboxMetrics section of this topic. |
Parameter Name | Type | Description |
Parameter Name | Type | Description |
cpu_count | Integer | The total CPU cores of the sandbox. |
cpu_used_pct | Float | The CPU utilization of the sandbox. |
disk_total | Integer | The total disk size of the sandbox. |
disk_used | Integer | The disk size used by the sandbox. |
mem_total | Integer | The total memory of the sandbox. |
mem_used | Integer | The memory size used by the sandbox. |
timestamp | DataTime | The metric timestamp. |