- Documentation
Volcano Engine Function as a Service
Best Practices
AI Application
Quickly deploying SandboxFusion code sandbox
AI Application
Quickly deploying SandboxFusion code sandbox
Quickly deploying SandboxFusion code sandbox
This article introduces the use of Volcano Engine Function as a Service (veFaaS) to quickly deploy code sandbox service based on the open-source SandboxFusion project, to meet the needs of running code in the sandbox.
SandboxFusion is an HTTP‑based code sandbox service that supports 23 programming languages. It leverages namespace resource isolation and cgroup resource control technologies to achieve lightweight security isolation. With flexible deployment adaptability for diverse devices, it meets multi‑scenario requirements ranging from edge nodes to cloud servers.
Relevant products with Volcano Engine activated
- In the top navigation bar, select the target region.
- In the left navigation bar, click Cloud sandbox > Sandbox app. Then, click Create sandbox app.
- On the Create sandbox application page, configure the parameters. The following parameters need special attention when deploying SandboxFusion. Other parameters can remain at their default values. For detailed parameter descriptions, see Sandbox application.
- After successful creation, click Release in the upper-right corner of the Sandbox Application page to complete the deployment of the SandboxFusion sandbox service.
After the release is completed, you can use the public endpoint of SandboxFusion to verify the application deployment result.
tip
Log in to the created application. The public address of the application can be found at Basic information > Gateway route settings > Configurations > the Internet.
Call the SandboxFusion service via API
The following code demonstrates how to call the API using the curl command to experience the SandboxFusion service.
tip
- Replace https://****.apigateway-cn-beijing.volceapi.com with the public address of the SandboxFusion service.
- Replace the values in the datafield based on your business requirements. For related parameter prescriptions and examples, refer to the open-source document Sandbox Fusion.
Access the SandboxFusion service via browser
- Enter the public address in the browser and press Enter.
- Click the Playground tab and select Sandbox.
- In the Code text box, enter the code segment to be run, and select the corresponding programming language, and click Submit to submit code run request.
- After the execution is completed, view the result output.
Request SandboxFusion service via veFaaS function.
- In the top navigation bar of the veFaaS console, select China (Beijing) region and create an event function with a Python runtime. For detailed description, refer to Event function.
- After the function is successfully created, on the Code tab of the function detail page, add the public address to the code.
- Conduct an online test. For detailed operations, refer to Test function.
- The sample request parameters are as follows:
- The sample codes are shown below. For calling parameters of run_code interfaces in different languages, refer to Run Code.
Last updated: 2026.08.19 14:06:06