You need to enable JavaScript to run this app.
Volcano Engine Function as a Service

Volcano Engine Function as a Service

Copy page
Download PDF
Sandbox instances
SetSandboxTimeout
Copy page
Download PDF
SetSandboxTimeout
Modify the lifetime of sandbox instances.​
Request description​
  • Request method: POST​
  • Request URL: http://open.volcengineapi.com/?Action=SetSandboxTimeout&Version=2024-06-06​
Debugging​
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
​
Request parameters​
​
Parameter​
Type​
Required​
Sample value​
Description​
Action​
String​
Yes​
SetSandboxTimeout​
Interface name. The name of the current API is SetSandboxTimeout.​
Version​
String​
Yes​
2024-06-06​
Interface version. The current version of the API is 2024-06-06 .​
FunctionId​
String​
Yes​
e8m6****​
The ID of the sandbox application to which sandbox instances belong.​
To obtain sandbox application IDs, you can go to veFaaS console > Cloud sandbox > Sandbox application page.​
SandboxId​
String​
Yes​
vefaas-e8m6xarn-p2zamuv2fr-****​
Sandbox instance ID/name.​
To obtain sandbox instance IDs, you can go to Volcano Engine Function as a Service (veFaaS) console > Cloud sandbox > Sandbox application page, click the target sandbox application, and switch to Sandbox example tab.​
Timeout​
Integer​
Yes​
60​
Sandbox instance lifetime:​
  • Unit: minutes​
  • Value range: 3 to 1440​
  • Default value: 60​
​
Sample requests​
​
POST http://open.volcengineapi.com/?Action=SetSandboxTimeout&Version=2024-06-06 HTTP/1.1​
Content-Type: application/json​
{​
"FunctionId": "e8m6****",​
"SandboxId": "vefaas-e8m6xarn-p2zamuv2fr-****",​
"Timeout": 60​
}
​
Response parameters​
​
Parameter​
Type​
Sample value​
Description​
FunctionId​
String​
e8m6****​
Sandbox application ID.​
SandboxId​
String​
vefaas-e8m6xarn-p2zamuv2fr-****​
Sandbox instance ID/name.​
ExpireAt​
String​
2025-04-25 11:31:29.376 +0000 UTC​
Sandbox instance lifetime.​
​
Sample responses​
​
HTTP/1.1 200 OK​
Content-Type: application/json​
{​
"ResponseMetadata": {​
"RequestId": "20230604110420****100232280022D31",​
"Action": "SetSandboxTimeout",​
"Version": "2024-06-06",​
"Service": "vefaas",​
"Region": "cn-beijing"​
},​
"Result": {​
"FunctionId": "e8m6****",​
"SandboxId": "vefaas-e8m6xarn-p2zamuv2fr-****",​
"ExpireAt": "2025-04-25 11:31:29.376 +0000 UTC"​
}​
}
​
Error codes​
There is no error code dedicated to this interface currently. If you encounter an exception when calling the interface, you can refer to Public error codes for troubleshooting.​
Last updated: 2025.09.22 15:28:02