published on Monday, Jul 27, 2026 by Byteplus
published on Monday, Jul 27, 2026 by Byteplus
A sandbox instance is a secure and isolated container runtime environment that actually runs the sandbox image in the cloud sandbox
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const vefaasSandboxDemo = new bytepluscc.vefaas.Sandbox("VefaasSandboxDemo", {
functionId: "n5hcs3y5****",
timeout: 50,
memoryMb: 2048,
cpuMilli: 1000,
requestTimeout: 30,
maxConcurrency: 100,
metadatas: [{
key: "env",
value: "test",
}],
instanceImageInfo: {
image: "enterprise-public-cn-beijing.cr.volces.com/xxxxxx/all-in-one-sandbox:xxxxxx",
command: "/opt/gem/run.sh",
port: 8080,
image_id: "3ewzg8x5h1***",
},
instanceTosMountConfig: {
enable: true,
tos_mount_points: [{
bucketPath: "/mnt/tos",
localMountPath: "/mnt/tos",
}],
},
envs: [{
key: "env",
value: "test",
}],
});
import pulumi
import pulumi_bytepluscc as bytepluscc
vefaas_sandbox_demo = bytepluscc.vefaas.Sandbox("VefaasSandboxDemo",
function_id="n5hcs3y5****",
timeout=50,
memory_mb=2048,
cpu_milli=1000,
request_timeout=30,
max_concurrency=100,
metadatas=[{
"key": "env",
"value": "test",
}],
instance_image_info={
"image": "enterprise-public-cn-beijing.cr.volces.com/xxxxxx/all-in-one-sandbox:xxxxxx",
"command": "/opt/gem/run.sh",
"port": 8080,
"image_id": "3ewzg8x5h1***",
},
instance_tos_mount_config={
"enable": True,
"tos_mount_points": [{
"bucketPath": "/mnt/tos",
"localMountPath": "/mnt/tos",
}],
},
envs=[{
"key": "env",
"value": "test",
}])
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/vefaas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vefaas.NewSandbox(ctx, "VefaasSandboxDemo", &vefaas.SandboxArgs{
FunctionId: pulumi.String("n5hcs3y5****"),
Timeout: pulumi.Int(50),
MemoryMb: pulumi.Int(2048),
CpuMilli: pulumi.Int(1000),
RequestTimeout: pulumi.Int(30),
MaxConcurrency: pulumi.Int(100),
Metadatas: vefaas.SandboxMetadataArray{
&vefaas.SandboxMetadataArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
InstanceImageInfo: &vefaas.SandboxInstanceImageInfoArgs{
Image: pulumi.String("enterprise-public-cn-beijing.cr.volces.com/xxxxxx/all-in-one-sandbox:xxxxxx"),
Command: pulumi.String("/opt/gem/run.sh"),
Port: pulumi.Int(8080),
Image_id: "3ewzg8x5h1***",
},
InstanceTosMountConfig: &vefaas.SandboxInstanceTosMountConfigArgs{
Enable: pulumi.Bool(true),
Tos_mount_points: []map[string]interface{}{
map[string]interface{}{
"bucketPath": "/mnt/tos",
"localMountPath": "/mnt/tos",
},
},
},
Envs: vefaas.SandboxEnvArray{
&vefaas.SandboxEnvArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var vefaasSandboxDemo = new Bytepluscc.Vefaas.Sandbox("VefaasSandboxDemo", new()
{
FunctionId = "n5hcs3y5****",
Timeout = 50,
MemoryMb = 2048,
CpuMilli = 1000,
RequestTimeout = 30,
MaxConcurrency = 100,
Metadatas = new[]
{
new Bytepluscc.Vefaas.Inputs.SandboxMetadataArgs
{
Key = "env",
Value = "test",
},
},
InstanceImageInfo = new Bytepluscc.Vefaas.Inputs.SandboxInstanceImageInfoArgs
{
Image = "enterprise-public-cn-beijing.cr.volces.com/xxxxxx/all-in-one-sandbox:xxxxxx",
Command = "/opt/gem/run.sh",
Port = 8080,
Image_id = "3ewzg8x5h1***",
},
InstanceTosMountConfig = new Bytepluscc.Vefaas.Inputs.SandboxInstanceTosMountConfigArgs
{
Enable = true,
Tos_mount_points = new[]
{
{
{ "bucketPath", "/mnt/tos" },
{ "localMountPath", "/mnt/tos" },
},
},
},
Envs = new[]
{
new Bytepluscc.Vefaas.Inputs.SandboxEnvArgs
{
Key = "env",
Value = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.vefaas.Sandbox;
import com.byteplus.bytepluscc.vefaas.SandboxArgs;
import com.pulumi.bytepluscc.vefaas.inputs.SandboxMetadataArgs;
import com.pulumi.bytepluscc.vefaas.inputs.SandboxInstanceImageInfoArgs;
import com.pulumi.bytepluscc.vefaas.inputs.SandboxInstanceTosMountConfigArgs;
import com.pulumi.bytepluscc.vefaas.inputs.SandboxEnvArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var vefaasSandboxDemo = new Sandbox("vefaasSandboxDemo", SandboxArgs.builder()
.functionId("n5hcs3y5****")
.timeout(50)
.memoryMb(2048)
.cpuMilli(1000)
.requestTimeout(30)
.maxConcurrency(100)
.metadatas(SandboxMetadataArgs.builder()
.key("env")
.value("test")
.build())
.instanceImageInfo(SandboxInstanceImageInfoArgs.builder()
.image("enterprise-public-cn-beijing.cr.volces.com/xxxxxx/all-in-one-sandbox:xxxxxx")
.command("/opt/gem/run.sh")
.port(8080)
.image_id("3ewzg8x5h1***")
.build())
.instanceTosMountConfig(SandboxInstanceTosMountConfigArgs.builder()
.enable(true)
.tos_mount_points(Arrays.asList(Map.ofEntries(
Map.entry("bucketPath", "/mnt/tos"),
Map.entry("localMountPath", "/mnt/tos")
)))
.build())
.envs(SandboxEnvArgs.builder()
.key("env")
.value("test")
.build())
.build());
}
}
resources:
vefaasSandboxDemo:
type: bytepluscc:vefaas:Sandbox
name: VefaasSandboxDemo
properties:
functionId: n5hcs3y5****
timeout: 50
memoryMb: 2048
cpuMilli: 1000
requestTimeout: 30
maxConcurrency: 100
metadatas:
- key: env
value: test
instanceImageInfo:
image: enterprise-public-cn-beijing.cr.volces.com/xxxxxx/all-in-one-sandbox:xxxxxx
command: /opt/gem/run.sh
port: 8080
image_id: 3ewzg8x5h1***
instanceTosMountConfig:
enable: true
tos_mount_points:
- bucketPath: /mnt/tos
localMountPath: /mnt/tos
envs:
- key: env
value: test
pulumi {
required_providers {
bytepluscc = {
source = "pulumi/bytepluscc"
}
}
}
resource "bytepluscc_vefaas_sandbox" "VefaasSandboxDemo" {
function_id = "n5hcs3y5****"
timeout = 50
memory_mb = 2048
cpu_milli = 1000
request_timeout = 30
max_concurrency = 100
metadatas {
key = "env"
value = "test"
}
instance_image_info = {
image = "enterprise-public-cn-beijing.cr.volces.com/xxxxxx/all-in-one-sandbox:xxxxxx"
command = "/opt/gem/run.sh"
port = 8080
image_id = "3ewzg8x5h1***"
}
instance_tos_mount_config = {
enable = true
tos_mount_points = [{
"bucketPath" = "/mnt/tos"
"localMountPath" = "/mnt/tos"
}]
}
envs {
key = "env"
value = "test"
}
}
Create Sandbox Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Sandbox(name: string, args: SandboxArgs, opts?: CustomResourceOptions);@overload
def Sandbox(resource_name: str,
args: SandboxArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Sandbox(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_id: Optional[str] = None,
cpu_milli: Optional[int] = None,
envs: Optional[Sequence[SandboxEnvArgs]] = None,
instance_image_info: Optional[SandboxInstanceImageInfoArgs] = None,
instance_tos_mount_config: Optional[SandboxInstanceTosMountConfigArgs] = None,
max_concurrency: Optional[int] = None,
memory_mb: Optional[int] = None,
metadatas: Optional[Sequence[SandboxMetadataArgs]] = None,
request_timeout: Optional[int] = None,
timeout: Optional[int] = None)func NewSandbox(ctx *Context, name string, args SandboxArgs, opts ...ResourceOption) (*Sandbox, error)public Sandbox(string name, SandboxArgs args, CustomResourceOptions? opts = null)
public Sandbox(String name, SandboxArgs args)
public Sandbox(String name, SandboxArgs args, CustomResourceOptions options)
type: bytepluscc:vefaas:Sandbox
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_vefaas_sandbox" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SandboxArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SandboxArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SandboxArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SandboxArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SandboxArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sandboxResource = new Bytepluscc.Vefaas.Sandbox("sandboxResource", new()
{
FunctionId = "string",
CpuMilli = 0,
Envs = new[]
{
new Bytepluscc.Vefaas.Inputs.SandboxEnvArgs
{
Key = "string",
Value = "string",
},
},
InstanceImageInfo = new Bytepluscc.Vefaas.Inputs.SandboxInstanceImageInfoArgs
{
Command = "string",
Image = "string",
ImageId = "string",
Port = 0,
},
InstanceTosMountConfig = new Bytepluscc.Vefaas.Inputs.SandboxInstanceTosMountConfigArgs
{
Enable = false,
TosMountPoints = new[]
{
new Bytepluscc.Vefaas.Inputs.SandboxInstanceTosMountConfigTosMountPointArgs
{
BucketPath = "string",
LocalMountPath = "string",
},
},
},
MaxConcurrency = 0,
MemoryMb = 0,
Metadatas = new[]
{
new Bytepluscc.Vefaas.Inputs.SandboxMetadataArgs
{
Key = "string",
Value = "string",
},
},
RequestTimeout = 0,
Timeout = 0,
});
example, err := vefaas.NewSandbox(ctx, "sandboxResource", &vefaas.SandboxArgs{
FunctionId: pulumi.String("string"),
CpuMilli: pulumi.Int(0),
Envs: vefaas.SandboxEnvArray{
&vefaas.SandboxEnvArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
InstanceImageInfo: &vefaas.SandboxInstanceImageInfoArgs{
Command: pulumi.String("string"),
Image: pulumi.String("string"),
ImageId: pulumi.String("string"),
Port: pulumi.Int(0),
},
InstanceTosMountConfig: &vefaas.SandboxInstanceTosMountConfigArgs{
Enable: pulumi.Bool(false),
TosMountPoints: vefaas.SandboxInstanceTosMountConfigTosMountPointArray{
&vefaas.SandboxInstanceTosMountConfigTosMountPointArgs{
BucketPath: pulumi.String("string"),
LocalMountPath: pulumi.String("string"),
},
},
},
MaxConcurrency: pulumi.Int(0),
MemoryMb: pulumi.Int(0),
Metadatas: vefaas.SandboxMetadataArray{
&vefaas.SandboxMetadataArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
RequestTimeout: pulumi.Int(0),
Timeout: pulumi.Int(0),
})
resource "bytepluscc_vefaas_sandbox" "sandboxResource" {
lifecycle {
create_before_destroy = true
}
function_id = "string"
cpu_milli = 0
envs {
key = "string"
value = "string"
}
instance_image_info = {
command = "string"
image = "string"
image_id = "string"
port = 0
}
instance_tos_mount_config = {
enable = false
tos_mount_points = [{
bucket_path = "string"
local_mount_path = "string"
}]
}
max_concurrency = 0
memory_mb = 0
metadatas {
key = "string"
value = "string"
}
request_timeout = 0
timeout = 0
}
var sandboxResource = new Sandbox("sandboxResource", SandboxArgs.builder()
.functionId("string")
.cpuMilli(0)
.envs(SandboxEnvArgs.builder()
.key("string")
.value("string")
.build())
.instanceImageInfo(SandboxInstanceImageInfoArgs.builder()
.command("string")
.image("string")
.imageId("string")
.port(0)
.build())
.instanceTosMountConfig(SandboxInstanceTosMountConfigArgs.builder()
.enable(false)
.tosMountPoints(SandboxInstanceTosMountConfigTosMountPointArgs.builder()
.bucketPath("string")
.localMountPath("string")
.build())
.build())
.maxConcurrency(0)
.memoryMb(0)
.metadatas(SandboxMetadataArgs.builder()
.key("string")
.value("string")
.build())
.requestTimeout(0)
.timeout(0)
.build());
sandbox_resource = bytepluscc.vefaas.Sandbox("sandboxResource",
function_id="string",
cpu_milli=0,
envs=[{
"key": "string",
"value": "string",
}],
instance_image_info={
"command": "string",
"image": "string",
"image_id": "string",
"port": 0,
},
instance_tos_mount_config={
"enable": False,
"tos_mount_points": [{
"bucket_path": "string",
"local_mount_path": "string",
}],
},
max_concurrency=0,
memory_mb=0,
metadatas=[{
"key": "string",
"value": "string",
}],
request_timeout=0,
timeout=0)
const sandboxResource = new bytepluscc.vefaas.Sandbox("sandboxResource", {
functionId: "string",
cpuMilli: 0,
envs: [{
key: "string",
value: "string",
}],
instanceImageInfo: {
command: "string",
image: "string",
imageId: "string",
port: 0,
},
instanceTosMountConfig: {
enable: false,
tosMountPoints: [{
bucketPath: "string",
localMountPath: "string",
}],
},
maxConcurrency: 0,
memoryMb: 0,
metadatas: [{
key: "string",
value: "string",
}],
requestTimeout: 0,
timeout: 0,
});
type: bytepluscc:vefaas:Sandbox
properties:
cpuMilli: 0
envs:
- key: string
value: string
functionId: string
instanceImageInfo:
command: string
image: string
imageId: string
port: 0
instanceTosMountConfig:
enable: false
tosMountPoints:
- bucketPath: string
localMountPath: string
maxConcurrency: 0
memoryMb: 0
metadatas:
- key: string
value: string
requestTimeout: 0
timeout: 0
Sandbox Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Sandbox resource accepts the following input properties:
- Function
Id string - Sandbox application ID to which the sandbox instance belongs
- Cpu
Milli int - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- Envs
List<Byteplus.
Sandbox Env> - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Instance
Image Byteplus.Info Sandbox Instance Image Info - Sandbox instance image information, including image address, startup command, and listening port.
- Instance
Tos Byteplus.Mount Config Sandbox Instance Tos Mount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- Max
Concurrency int - Maximum concurrent requests per instance: range: 10~1000, default: 100
- Memory
Mb int - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- Metadatas
List<Byteplus.
Sandbox Metadata> - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Request
Timeout int - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- Timeout int
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- Function
Id string - Sandbox application ID to which the sandbox instance belongs
- Cpu
Milli int - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- Envs
[]Sandbox
Env Args - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Instance
Image SandboxInfo Instance Image Info Args - Sandbox instance image information, including image address, startup command, and listening port.
- Instance
Tos SandboxMount Config Instance Tos Mount Config Args - Instance-level object storage (TOS) mount configuration for the sandbox instance
- Max
Concurrency int - Maximum concurrent requests per instance: range: 10~1000, default: 100
- Memory
Mb int - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- Metadatas
[]Sandbox
Metadata Args - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Request
Timeout int - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- Timeout int
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- function_
id string - Sandbox application ID to which the sandbox instance belongs
- cpu_
milli number - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- envs list(object)
- Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- instance_
image_ objectinfo - Sandbox instance image information, including image address, startup command, and listening port.
- instance_
tos_ objectmount_ config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- max_
concurrency number - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory_
mb number - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas list(object)
- Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- request_
timeout number - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- timeout number
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- function
Id String - Sandbox application ID to which the sandbox instance belongs
- cpu
Milli Integer - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- envs
List<Sandbox
Env> - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- instance
Image SandboxInfo Instance Image Info - Sandbox instance image information, including image address, startup command, and listening port.
- instance
Tos SandboxMount Config Instance Tos Mount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- max
Concurrency Integer - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory
Mb Integer - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas
List<Sandbox
Metadata> - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- request
Timeout Integer - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- timeout Integer
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- function
Id string - Sandbox application ID to which the sandbox instance belongs
- cpu
Milli number - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- envs
Sandbox
Env[] - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- instance
Image SandboxInfo Instance Image Info - Sandbox instance image information, including image address, startup command, and listening port.
- instance
Tos SandboxMount Config Instance Tos Mount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- max
Concurrency number - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory
Mb number - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas
Sandbox
Metadata[] - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- request
Timeout number - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- timeout number
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- function_
id str - Sandbox application ID to which the sandbox instance belongs
- cpu_
milli int - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- envs
Sequence[Sandbox
Env Args] - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- instance_
image_ Sandboxinfo Instance Image Info Args - Sandbox instance image information, including image address, startup command, and listening port.
- instance_
tos_ Sandboxmount_ config Instance Tos Mount Config Args - Instance-level object storage (TOS) mount configuration for the sandbox instance
- max_
concurrency int - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory_
mb int - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas
Sequence[Sandbox
Metadata Args] - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- request_
timeout int - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- timeout int
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- function
Id String - Sandbox application ID to which the sandbox instance belongs
- cpu
Milli Number - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- envs List<Property Map>
- Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- instance
Image Property MapInfo - Sandbox instance image information, including image address, startup command, and listening port.
- instance
Tos Property MapMount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- max
Concurrency Number - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory
Mb Number - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas List<Property Map>
- Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- request
Timeout Number - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- timeout Number
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
Outputs
All input properties are implicitly available as output properties. Additionally, the Sandbox resource produces the following output properties:
- Availability
Zone string - Availability zone ID of the sandbox instance
- Created
Time string - Sandbox instance creation time.
- Error
Code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- Error
Message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- Expire
At string - Sandbox instance uptime.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- Pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- Revision
Number int - Function instance version number
- Sandbox
Id string - Sandbox instance ID
- Status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- Availability
Zone string - Availability zone ID of the sandbox instance
- Created
Time string - Sandbox instance creation time.
- Error
Code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- Error
Message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- Expire
At string - Sandbox instance uptime.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- Pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- Revision
Number int - Function instance version number
- Sandbox
Id string - Sandbox instance ID
- Status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- availability_
zone string - Availability zone ID of the sandbox instance
- created_
time string - Sandbox instance creation time.
- error_
code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error_
message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire_
at string - Sandbox instance uptime.
- id string
- The provider-assigned unique ID for this managed resource.
- instance_
type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- revision_
number number - Function instance version number
- sandbox_
id string - Sandbox instance ID
- status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- availability
Zone String - Availability zone ID of the sandbox instance
- created
Time String - Sandbox instance creation time.
- error
Code String - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error
Message String - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire
At String - Sandbox instance uptime.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Type String - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- pending Boolean
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- revision
Number Integer - Function instance version number
- sandbox
Id String - Sandbox instance ID
- status String
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- availability
Zone string - Availability zone ID of the sandbox instance
- created
Time string - Sandbox instance creation time.
- error
Code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error
Message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire
At string - Sandbox instance uptime.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- pending boolean
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- revision
Number number - Function instance version number
- sandbox
Id string - Sandbox instance ID
- status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- availability_
zone str - Availability zone ID of the sandbox instance
- created_
time str - Sandbox instance creation time.
- error_
code str - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error_
message str - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire_
at str - Sandbox instance uptime.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
type str - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- revision_
number int - Function instance version number
- sandbox_
id str - Sandbox instance ID
- status str
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- availability
Zone String - Availability zone ID of the sandbox instance
- created
Time String - Sandbox instance creation time.
- error
Code String - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error
Message String - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire
At String - Sandbox instance uptime.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Type String - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- pending Boolean
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- revision
Number Number - Function instance version number
- sandbox
Id String - Sandbox instance ID
- status String
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
Look up Existing Sandbox Resource
Get an existing Sandbox resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SandboxState, opts?: CustomResourceOptions): Sandbox@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
cpu_milli: Optional[int] = None,
created_time: Optional[str] = None,
envs: Optional[Sequence[SandboxEnvArgs]] = None,
error_code: Optional[str] = None,
error_message: Optional[str] = None,
expire_at: Optional[str] = None,
function_id: Optional[str] = None,
instance_image_info: Optional[SandboxInstanceImageInfoArgs] = None,
instance_tos_mount_config: Optional[SandboxInstanceTosMountConfigArgs] = None,
instance_type: Optional[str] = None,
max_concurrency: Optional[int] = None,
memory_mb: Optional[int] = None,
metadatas: Optional[Sequence[SandboxMetadataArgs]] = None,
pending: Optional[bool] = None,
request_timeout: Optional[int] = None,
revision_number: Optional[int] = None,
sandbox_id: Optional[str] = None,
status: Optional[str] = None,
timeout: Optional[int] = None) -> Sandboxfunc GetSandbox(ctx *Context, name string, id IDInput, state *SandboxState, opts ...ResourceOption) (*Sandbox, error)public static Sandbox Get(string name, Input<string> id, SandboxState? state, CustomResourceOptions? opts = null)public static Sandbox get(String name, Output<String> id, SandboxState state, CustomResourceOptions options)resources: _: type: bytepluscc:vefaas:Sandbox get: id: ${id}import {
to = bytepluscc_vefaas_sandbox.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Zone string - Availability zone ID of the sandbox instance
- Cpu
Milli int - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- Created
Time string - Sandbox instance creation time.
- Envs
List<Byteplus.
Sandbox Env> - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Error
Code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- Error
Message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- Expire
At string - Sandbox instance uptime.
- Function
Id string - Sandbox application ID to which the sandbox instance belongs
- Instance
Image Byteplus.Info Sandbox Instance Image Info - Sandbox instance image information, including image address, startup command, and listening port.
- Instance
Tos Byteplus.Mount Config Sandbox Instance Tos Mount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- Instance
Type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- Max
Concurrency int - Maximum concurrent requests per instance: range: 10~1000, default: 100
- Memory
Mb int - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- Metadatas
List<Byteplus.
Sandbox Metadata> - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- Request
Timeout int - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- Revision
Number int - Function instance version number
- Sandbox
Id string - Sandbox instance ID
- Status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- Timeout int
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- Availability
Zone string - Availability zone ID of the sandbox instance
- Cpu
Milli int - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- Created
Time string - Sandbox instance creation time.
- Envs
[]Sandbox
Env Args - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Error
Code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- Error
Message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- Expire
At string - Sandbox instance uptime.
- Function
Id string - Sandbox application ID to which the sandbox instance belongs
- Instance
Image SandboxInfo Instance Image Info Args - Sandbox instance image information, including image address, startup command, and listening port.
- Instance
Tos SandboxMount Config Instance Tos Mount Config Args - Instance-level object storage (TOS) mount configuration for the sandbox instance
- Instance
Type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- Max
Concurrency int - Maximum concurrent requests per instance: range: 10~1000, default: 100
- Memory
Mb int - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- Metadatas
[]Sandbox
Metadata Args - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- Request
Timeout int - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- Revision
Number int - Function instance version number
- Sandbox
Id string - Sandbox instance ID
- Status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- Timeout int
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- availability_
zone string - Availability zone ID of the sandbox instance
- cpu_
milli number - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- created_
time string - Sandbox instance creation time.
- envs list(object)
- Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- error_
code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error_
message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire_
at string - Sandbox instance uptime.
- function_
id string - Sandbox application ID to which the sandbox instance belongs
- instance_
image_ objectinfo - Sandbox instance image information, including image address, startup command, and listening port.
- instance_
tos_ objectmount_ config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- instance_
type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- max_
concurrency number - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory_
mb number - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas list(object)
- Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- request_
timeout number - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- revision_
number number - Function instance version number
- sandbox_
id string - Sandbox instance ID
- status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- timeout number
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- availability
Zone String - Availability zone ID of the sandbox instance
- cpu
Milli Integer - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- created
Time String - Sandbox instance creation time.
- envs
List<Sandbox
Env> - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- error
Code String - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error
Message String - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire
At String - Sandbox instance uptime.
- function
Id String - Sandbox application ID to which the sandbox instance belongs
- instance
Image SandboxInfo Instance Image Info - Sandbox instance image information, including image address, startup command, and listening port.
- instance
Tos SandboxMount Config Instance Tos Mount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- instance
Type String - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- max
Concurrency Integer - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory
Mb Integer - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas
List<Sandbox
Metadata> - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- pending Boolean
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- request
Timeout Integer - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- revision
Number Integer - Function instance version number
- sandbox
Id String - Sandbox instance ID
- status String
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- timeout Integer
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- availability
Zone string - Availability zone ID of the sandbox instance
- cpu
Milli number - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- created
Time string - Sandbox instance creation time.
- envs
Sandbox
Env[] - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- error
Code string - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error
Message string - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire
At string - Sandbox instance uptime.
- function
Id string - Sandbox application ID to which the sandbox instance belongs
- instance
Image SandboxInfo Instance Image Info - Sandbox instance image information, including image address, startup command, and listening port.
- instance
Tos SandboxMount Config Instance Tos Mount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- instance
Type string - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- max
Concurrency number - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory
Mb number - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas
Sandbox
Metadata[] - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- pending boolean
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- request
Timeout number - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- revision
Number number - Function instance version number
- sandbox
Id string - Sandbox instance ID
- status string
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- timeout number
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- availability_
zone str - Availability zone ID of the sandbox instance
- cpu_
milli int - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- created_
time str - Sandbox instance creation time.
- envs
Sequence[Sandbox
Env Args] - Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- error_
code str - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error_
message str - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire_
at str - Sandbox instance uptime.
- function_
id str - Sandbox application ID to which the sandbox instance belongs
- instance_
image_ Sandboxinfo Instance Image Info Args - Sandbox instance image information, including image address, startup command, and listening port.
- instance_
tos_ Sandboxmount_ config Instance Tos Mount Config Args - Instance-level object storage (TOS) mount configuration for the sandbox instance
- instance_
type str - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- max_
concurrency int - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory_
mb int - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas
Sequence[Sandbox
Metadata Args] - Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- pending bool
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- request_
timeout int - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- revision_
number int - Function instance version number
- sandbox_
id str - Sandbox instance ID
- status str
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- timeout int
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
- availability
Zone String - Availability zone ID of the sandbox instance
- cpu
Milli Number - Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000
- created
Time String - Sandbox instance creation time.
- envs List<Property Map>
- Sandbox instance environment variables Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- error
Code String - Sandbox instance startup failure error code. Parameter description: internalloadrequesterror: internal system error, functioninitializefailed: business process initialization error, functionhealthcheckfailed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally
- error
Message String - Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally.
- expire
At String - Sandbox instance uptime.
- function
Id String - Sandbox application ID to which the sandbox instance belongs
- instance
Image Property MapInfo - Sandbox instance image information, including image address, startup command, and listening port.
- instance
Tos Property MapMount Config - Instance-level object storage (TOS) mount configuration for the sandbox instance
- instance
Type String - Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance
- max
Concurrency Number - Maximum concurrent requests per instance: range: 10~1000, default: 100
- memory
Mb Number - Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048
- metadatas List<Property Map>
- Sandbox instance label metadata used to tag and filter instances. Format: <"key":"value"> Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- pending Boolean
- Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no
- request
Timeout Number - Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30
- revision
Number Number - Function instance version number
- sandbox
Id String - Sandbox instance ID
- status String
- Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating
- timeout Number
- Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60
Supporting Types
SandboxEnv, SandboxEnvArgs
SandboxInstanceImageInfo, SandboxInstanceImageInfoArgs
- Command string
- Startup command for the sandbox instance program. To specify a script file, use an absolute path and ensure the script has executable permissions
- Image string
- Preheated image address used by the sandbox instance
- Image
Id string - Pre-warmed image ID used by the sandbox instance.
- Port int
- Listening port of the sandbox instance image.
- Command string
- Startup command for the sandbox instance program. To specify a script file, use an absolute path and ensure the script has executable permissions
- Image string
- Preheated image address used by the sandbox instance
- Image
Id string - Pre-warmed image ID used by the sandbox instance.
- Port int
- Listening port of the sandbox instance image.
- command string
- Startup command for the sandbox instance program. To specify a script file, use an absolute path and ensure the script has executable permissions
- image string
- Preheated image address used by the sandbox instance
- image_
id string - Pre-warmed image ID used by the sandbox instance.
- port number
- Listening port of the sandbox instance image.
- command String
- Startup command for the sandbox instance program. To specify a script file, use an absolute path and ensure the script has executable permissions
- image String
- Preheated image address used by the sandbox instance
- image
Id String - Pre-warmed image ID used by the sandbox instance.
- port Integer
- Listening port of the sandbox instance image.
- command string
- Startup command for the sandbox instance program. To specify a script file, use an absolute path and ensure the script has executable permissions
- image string
- Preheated image address used by the sandbox instance
- image
Id string - Pre-warmed image ID used by the sandbox instance.
- port number
- Listening port of the sandbox instance image.
- command str
- Startup command for the sandbox instance program. To specify a script file, use an absolute path and ensure the script has executable permissions
- image str
- Preheated image address used by the sandbox instance
- image_
id str - Pre-warmed image ID used by the sandbox instance.
- port int
- Listening port of the sandbox instance image.
- command String
- Startup command for the sandbox instance program. To specify a script file, use an absolute path and ensure the script has executable permissions
- image String
- Preheated image address used by the sandbox instance
- image
Id String - Pre-warmed image ID used by the sandbox instance.
- port Number
- Listening port of the sandbox instance image.
SandboxInstanceTosMountConfig, SandboxInstanceTosMountConfigArgs
- Enable bool
- Whether instance-level TOS mount is enabled for the sandbox instance. Parameter description: true: yes, false: no
- Tos
Mount List<Byteplus.Points Sandbox Instance Tos Mount Config Tos Mount Point> - Detailed TOS mount directory information for sandbox instances with instance-level TOS mount enabled Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Enable bool
- Whether instance-level TOS mount is enabled for the sandbox instance. Parameter description: true: yes, false: no
- Tos
Mount []SandboxPoints Instance Tos Mount Config Tos Mount Point - Detailed TOS mount directory information for sandbox instances with instance-level TOS mount enabled Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- enable bool
- Whether instance-level TOS mount is enabled for the sandbox instance. Parameter description: true: yes, false: no
- tos_
mount_ list(object)points - Detailed TOS mount directory information for sandbox instances with instance-level TOS mount enabled Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- enable Boolean
- Whether instance-level TOS mount is enabled for the sandbox instance. Parameter description: true: yes, false: no
- tos
Mount List<SandboxPoints Instance Tos Mount Config Tos Mount Point> - Detailed TOS mount directory information for sandbox instances with instance-level TOS mount enabled Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- enable boolean
- Whether instance-level TOS mount is enabled for the sandbox instance. Parameter description: true: yes, false: no
- tos
Mount SandboxPoints Instance Tos Mount Config Tos Mount Point[] - Detailed TOS mount directory information for sandbox instances with instance-level TOS mount enabled Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- enable bool
- Whether instance-level TOS mount is enabled for the sandbox instance. Parameter description: true: yes, false: no
- tos_
mount_ Sequence[Sandboxpoints Instance Tos Mount Config Tos Mount Point] - Detailed TOS mount directory information for sandbox instances with instance-level TOS mount enabled Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- enable Boolean
- Whether instance-level TOS mount is enabled for the sandbox instance. Parameter description: true: yes, false: no
- tos
Mount List<Property Map>Points - Detailed TOS mount directory information for sandbox instances with instance-level TOS mount enabled Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
SandboxInstanceTosMountConfigTosMountPoint, SandboxInstanceTosMountConfigTosMountPointArgs
- Bucket
Path string - TOS remote directory mounted by the sandbox instance
- Local
Mount stringPath - Local directory of the TOS bucket mounted by the sandbox instance. If this directory is the local directory configured for TOS storage mount in the sandbox application, the system modifies the corresponding TOS BucketPath based on the specified local directory
- Bucket
Path string - TOS remote directory mounted by the sandbox instance
- Local
Mount stringPath - Local directory of the TOS bucket mounted by the sandbox instance. If this directory is the local directory configured for TOS storage mount in the sandbox application, the system modifies the corresponding TOS BucketPath based on the specified local directory
- bucket_
path string - TOS remote directory mounted by the sandbox instance
- local_
mount_ stringpath - Local directory of the TOS bucket mounted by the sandbox instance. If this directory is the local directory configured for TOS storage mount in the sandbox application, the system modifies the corresponding TOS BucketPath based on the specified local directory
- bucket
Path String - TOS remote directory mounted by the sandbox instance
- local
Mount StringPath - Local directory of the TOS bucket mounted by the sandbox instance. If this directory is the local directory configured for TOS storage mount in the sandbox application, the system modifies the corresponding TOS BucketPath based on the specified local directory
- bucket
Path string - TOS remote directory mounted by the sandbox instance
- local
Mount stringPath - Local directory of the TOS bucket mounted by the sandbox instance. If this directory is the local directory configured for TOS storage mount in the sandbox application, the system modifies the corresponding TOS BucketPath based on the specified local directory
- bucket_
path str - TOS remote directory mounted by the sandbox instance
- local_
mount_ strpath - Local directory of the TOS bucket mounted by the sandbox instance. If this directory is the local directory configured for TOS storage mount in the sandbox application, the system modifies the corresponding TOS BucketPath based on the specified local directory
- bucket
Path String - TOS remote directory mounted by the sandbox instance
- local
Mount StringPath - Local directory of the TOS bucket mounted by the sandbox instance. If this directory is the local directory configured for TOS storage mount in the sandbox application, the system modifies the corresponding TOS BucketPath based on the specified local directory
SandboxMetadata, SandboxMetadataArgs
Import
$ pulumi import bytepluscc:vefaas/sandbox:Sandbox example "function_id|sandbox_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Jul 27, 2026 by Byteplus