1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. vefaas
  5. Sandbox
volcenginecc v0.0.4 published on Monday, Nov 3, 2025 by Volcengine

volcenginecc.vefaas.Sandbox

Get Started
volcenginecc logo
volcenginecc v0.0.4 published on Monday, Nov 3, 2025 by Volcengine

    沙箱实例是云沙箱中实际执行沙箱镜像的安全且隔离的容器运行环境。

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      vefaasSandboxDemo:
        type: volcenginecc: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
    

    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: volcenginecc:vefaas:Sandbox
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    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 Volcenginecc.Vefaas.Sandbox("sandboxResource", new()
    {
        FunctionId = "string",
        CpuMilli = 0,
        Envs = new[]
        {
            new Volcenginecc.Vefaas.Inputs.SandboxEnvArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        InstanceImageInfo = new Volcenginecc.Vefaas.Inputs.SandboxInstanceImageInfoArgs
        {
            Command = "string",
            Image = "string",
            ImageId = "string",
            Port = 0,
        },
        InstanceTosMountConfig = new Volcenginecc.Vefaas.Inputs.SandboxInstanceTosMountConfigArgs
        {
            Enable = false,
            TosMountPoints = new[]
            {
                new Volcenginecc.Vefaas.Inputs.SandboxInstanceTosMountConfigTosMountPointArgs
                {
                    BucketPath = "string",
                    LocalMountPath = "string",
                },
            },
        },
        MaxConcurrency = 0,
        MemoryMb = 0,
        Metadatas = new[]
        {
            new Volcenginecc.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),
    })
    
    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 = volcenginecc.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 volcenginecc.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: volcenginecc: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:

    FunctionId string
    沙箱实例所属的沙箱应用 ID。
    CpuMilli int
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    Envs List<Volcengine.SandboxEnv>
    InstanceImageInfo Volcengine.SandboxInstanceImageInfo
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    InstanceTosMountConfig Volcengine.SandboxInstanceTosMountConfig
    沙箱实例级别对象存储(TOS)存储挂载配置。
    MaxConcurrency int
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    MemoryMb int
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    Metadatas List<Volcengine.SandboxMetadata>
    RequestTimeout int
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    Timeout int
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    FunctionId string
    沙箱实例所属的沙箱应用 ID。
    CpuMilli int
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    Envs []SandboxEnvArgs
    InstanceImageInfo SandboxInstanceImageInfoArgs
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    InstanceTosMountConfig SandboxInstanceTosMountConfigArgs
    沙箱实例级别对象存储(TOS)存储挂载配置。
    MaxConcurrency int
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    MemoryMb int
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    Metadatas []SandboxMetadataArgs
    RequestTimeout int
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    Timeout int
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    functionId String
    沙箱实例所属的沙箱应用 ID。
    cpuMilli Integer
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    envs List<SandboxEnv>
    instanceImageInfo SandboxInstanceImageInfo
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instanceTosMountConfig SandboxInstanceTosMountConfig
    沙箱实例级别对象存储(TOS)存储挂载配置。
    maxConcurrency Integer
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memoryMb Integer
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas List<SandboxMetadata>
    requestTimeout Integer
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    timeout Integer
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    functionId string
    沙箱实例所属的沙箱应用 ID。
    cpuMilli number
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    envs SandboxEnv[]
    instanceImageInfo SandboxInstanceImageInfo
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instanceTosMountConfig SandboxInstanceTosMountConfig
    沙箱实例级别对象存储(TOS)存储挂载配置。
    maxConcurrency number
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memoryMb number
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas SandboxMetadata[]
    requestTimeout number
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    timeout number
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    function_id str
    沙箱实例所属的沙箱应用 ID。
    cpu_milli int
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    envs Sequence[SandboxEnvArgs]
    instance_image_info SandboxInstanceImageInfoArgs
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instance_tos_mount_config SandboxInstanceTosMountConfigArgs
    沙箱实例级别对象存储(TOS)存储挂载配置。
    max_concurrency int
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memory_mb int
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas Sequence[SandboxMetadataArgs]
    request_timeout int
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    timeout int
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    functionId String
    沙箱实例所属的沙箱应用 ID。
    cpuMilli Number
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    envs List<Property Map>
    instanceImageInfo Property Map
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instanceTosMountConfig Property Map
    沙箱实例级别对象存储(TOS)存储挂载配置。
    maxConcurrency Number
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memoryMb Number
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas List<Property Map>
    requestTimeout Number
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    timeout Number
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Sandbox resource produces the following output properties:

    AvailabilityZone string
    沙箱实例所在可用区 ID。
    CreatedTime string
    沙箱实例创建时间。
    ErrorCode string
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    ErrorMessage string
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    ExpireAt string
    沙箱实例存活时长。
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceType string
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    Pending bool
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    RevisionNumber int
    函数实例版本编号。
    SandboxId string
    沙箱实例 ID。
    Status string
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    AvailabilityZone string
    沙箱实例所在可用区 ID。
    CreatedTime string
    沙箱实例创建时间。
    ErrorCode string
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    ErrorMessage string
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    ExpireAt string
    沙箱实例存活时长。
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceType string
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    Pending bool
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    RevisionNumber int
    函数实例版本编号。
    SandboxId string
    沙箱实例 ID。
    Status string
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    availabilityZone String
    沙箱实例所在可用区 ID。
    createdTime String
    沙箱实例创建时间。
    errorCode String
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    errorMessage String
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expireAt String
    沙箱实例存活时长。
    id String
    The provider-assigned unique ID for this managed resource.
    instanceType String
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    pending Boolean
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    revisionNumber Integer
    函数实例版本编号。
    sandboxId String
    沙箱实例 ID。
    status String
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    availabilityZone string
    沙箱实例所在可用区 ID。
    createdTime string
    沙箱实例创建时间。
    errorCode string
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    errorMessage string
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expireAt string
    沙箱实例存活时长。
    id string
    The provider-assigned unique ID for this managed resource.
    instanceType string
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    pending boolean
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    revisionNumber number
    函数实例版本编号。
    sandboxId string
    沙箱实例 ID。
    status string
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    availability_zone str
    沙箱实例所在可用区 ID。
    created_time str
    沙箱实例创建时间。
    error_code str
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    error_message str
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expire_at str
    沙箱实例存活时长。
    id str
    The provider-assigned unique ID for this managed resource.
    instance_type str
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    pending bool
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    revision_number int
    函数实例版本编号。
    sandbox_id str
    沙箱实例 ID。
    status str
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    availabilityZone String
    沙箱实例所在可用区 ID。
    createdTime String
    沙箱实例创建时间。
    errorCode String
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    errorMessage String
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expireAt String
    沙箱实例存活时长。
    id String
    The provider-assigned unique ID for this managed resource.
    instanceType String
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    pending Boolean
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    revisionNumber Number
    函数实例版本编号。
    sandboxId String
    沙箱实例 ID。
    status String
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,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) -> Sandbox
    func 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: volcenginecc:vefaas:Sandbox    get:      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.
    The following state arguments are supported:
    AvailabilityZone string
    沙箱实例所在可用区 ID。
    CpuMilli int
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    CreatedTime string
    沙箱实例创建时间。
    Envs List<Volcengine.SandboxEnv>
    ErrorCode string
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    ErrorMessage string
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    ExpireAt string
    沙箱实例存活时长。
    FunctionId string
    沙箱实例所属的沙箱应用 ID。
    InstanceImageInfo Volcengine.SandboxInstanceImageInfo
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    InstanceTosMountConfig Volcengine.SandboxInstanceTosMountConfig
    沙箱实例级别对象存储(TOS)存储挂载配置。
    InstanceType string
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    MaxConcurrency int
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    MemoryMb int
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    Metadatas List<Volcengine.SandboxMetadata>
    Pending bool
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    RequestTimeout int
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    RevisionNumber int
    函数实例版本编号。
    SandboxId string
    沙箱实例 ID。
    Status string
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    Timeout int
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    AvailabilityZone string
    沙箱实例所在可用区 ID。
    CpuMilli int
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    CreatedTime string
    沙箱实例创建时间。
    Envs []SandboxEnvArgs
    ErrorCode string
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    ErrorMessage string
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    ExpireAt string
    沙箱实例存活时长。
    FunctionId string
    沙箱实例所属的沙箱应用 ID。
    InstanceImageInfo SandboxInstanceImageInfoArgs
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    InstanceTosMountConfig SandboxInstanceTosMountConfigArgs
    沙箱实例级别对象存储(TOS)存储挂载配置。
    InstanceType string
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    MaxConcurrency int
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    MemoryMb int
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    Metadatas []SandboxMetadataArgs
    Pending bool
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    RequestTimeout int
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    RevisionNumber int
    函数实例版本编号。
    SandboxId string
    沙箱实例 ID。
    Status string
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    Timeout int
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    availabilityZone String
    沙箱实例所在可用区 ID。
    cpuMilli Integer
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    createdTime String
    沙箱实例创建时间。
    envs List<SandboxEnv>
    errorCode String
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    errorMessage String
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expireAt String
    沙箱实例存活时长。
    functionId String
    沙箱实例所属的沙箱应用 ID。
    instanceImageInfo SandboxInstanceImageInfo
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instanceTosMountConfig SandboxInstanceTosMountConfig
    沙箱实例级别对象存储(TOS)存储挂载配置。
    instanceType String
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    maxConcurrency Integer
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memoryMb Integer
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas List<SandboxMetadata>
    pending Boolean
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    requestTimeout Integer
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    revisionNumber Integer
    函数实例版本编号。
    sandboxId String
    沙箱实例 ID。
    status String
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    timeout Integer
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    availabilityZone string
    沙箱实例所在可用区 ID。
    cpuMilli number
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    createdTime string
    沙箱实例创建时间。
    envs SandboxEnv[]
    errorCode string
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    errorMessage string
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expireAt string
    沙箱实例存活时长。
    functionId string
    沙箱实例所属的沙箱应用 ID。
    instanceImageInfo SandboxInstanceImageInfo
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instanceTosMountConfig SandboxInstanceTosMountConfig
    沙箱实例级别对象存储(TOS)存储挂载配置。
    instanceType string
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    maxConcurrency number
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memoryMb number
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas SandboxMetadata[]
    pending boolean
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    requestTimeout number
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    revisionNumber number
    函数实例版本编号。
    sandboxId string
    沙箱实例 ID。
    status string
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    timeout number
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    availability_zone str
    沙箱实例所在可用区 ID。
    cpu_milli int
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    created_time str
    沙箱实例创建时间。
    envs Sequence[SandboxEnvArgs]
    error_code str
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    error_message str
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expire_at str
    沙箱实例存活时长。
    function_id str
    沙箱实例所属的沙箱应用 ID。
    instance_image_info SandboxInstanceImageInfoArgs
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instance_tos_mount_config SandboxInstanceTosMountConfigArgs
    沙箱实例级别对象存储(TOS)存储挂载配置。
    instance_type str
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    max_concurrency int
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memory_mb int
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas Sequence[SandboxMetadataArgs]
    pending bool
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    request_timeout int
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    revision_number int
    函数实例版本编号。
    sandbox_id str
    沙箱实例 ID。
    status str
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    timeout int
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
    availabilityZone String
    沙箱实例所在可用区 ID。
    cpuMilli Number
    沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
    createdTime String
    沙箱实例创建时间。
    envs List<Property Map>
    errorCode String
    沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
    errorMessage String
    沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
    expireAt String
    沙箱实例存活时长。
    functionId String
    沙箱实例所属的沙箱应用 ID。
    instanceImageInfo Property Map
    沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
    instanceTosMountConfig Property Map
    沙箱实例级别对象存储(TOS)存储挂载配置。
    instanceType String
    沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
    maxConcurrency Number
    单实例请求最大并发数:取值范围:10~1000,默认值:100。
    memoryMb Number
    沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
    metadatas List<Property Map>
    pending Boolean
    沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
    requestTimeout Number
    请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
    revisionNumber Number
    函数实例版本编号。
    sandboxId String
    沙箱实例 ID。
    status String
    沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
    timeout Number
    沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。

    Supporting Types

    SandboxEnv, SandboxEnvArgs

    Key string
    环境变量键。
    Value string
    环境变量值。
    Key string
    环境变量键。
    Value string
    环境变量值。
    key String
    环境变量键。
    value String
    环境变量值。
    key string
    环境变量键。
    value string
    环境变量值。
    key str
    环境变量键。
    value str
    环境变量值。
    key String
    环境变量键。
    value String
    环境变量值。

    SandboxInstanceImageInfo, SandboxInstanceImageInfoArgs

    Command string
    沙箱实例程序的启动命令。如需指定脚本文件,请使用绝对路径,并确保脚本具有相应的可执行权限。
    Image string
    沙箱实例使用的已预热镜像地址。
    ImageId string
    沙箱实例使用的已预热镜像 ID。
    Port int
    沙箱实例镜像监听端口。
    Command string
    沙箱实例程序的启动命令。如需指定脚本文件,请使用绝对路径,并确保脚本具有相应的可执行权限。
    Image string
    沙箱实例使用的已预热镜像地址。
    ImageId string
    沙箱实例使用的已预热镜像 ID。
    Port int
    沙箱实例镜像监听端口。
    command String
    沙箱实例程序的启动命令。如需指定脚本文件,请使用绝对路径,并确保脚本具有相应的可执行权限。
    image String
    沙箱实例使用的已预热镜像地址。
    imageId String
    沙箱实例使用的已预热镜像 ID。
    port Integer
    沙箱实例镜像监听端口。
    command string
    沙箱实例程序的启动命令。如需指定脚本文件,请使用绝对路径,并确保脚本具有相应的可执行权限。
    image string
    沙箱实例使用的已预热镜像地址。
    imageId string
    沙箱实例使用的已预热镜像 ID。
    port number
    沙箱实例镜像监听端口。
    command str
    沙箱实例程序的启动命令。如需指定脚本文件,请使用绝对路径,并确保脚本具有相应的可执行权限。
    image str
    沙箱实例使用的已预热镜像地址。
    image_id str
    沙箱实例使用的已预热镜像 ID。
    port int
    沙箱实例镜像监听端口。
    command String
    沙箱实例程序的启动命令。如需指定脚本文件,请使用绝对路径,并确保脚本具有相应的可执行权限。
    image String
    沙箱实例使用的已预热镜像地址。
    imageId String
    沙箱实例使用的已预热镜像 ID。
    port Number
    沙箱实例镜像监听端口。

    SandboxInstanceTosMountConfig, SandboxInstanceTosMountConfigArgs

    Enable bool
    沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
    TosMountPoints List<Volcengine.SandboxInstanceTosMountConfigTosMountPoint>
    Enable bool
    沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
    TosMountPoints []SandboxInstanceTosMountConfigTosMountPoint
    enable Boolean
    沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
    tosMountPoints List<SandboxInstanceTosMountConfigTosMountPoint>
    enable boolean
    沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
    tosMountPoints SandboxInstanceTosMountConfigTosMountPoint[]
    enable bool
    沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
    tos_mount_points Sequence[SandboxInstanceTosMountConfigTosMountPoint]
    enable Boolean
    沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
    tosMountPoints List<Property Map>

    SandboxInstanceTosMountConfigTosMountPoint, SandboxInstanceTosMountConfigTosMountPointArgs

    BucketPath string
    沙箱实例挂载的 TOS 远端目录。
    LocalMountPath string
    沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
    BucketPath string
    沙箱实例挂载的 TOS 远端目录。
    LocalMountPath string
    沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
    bucketPath String
    沙箱实例挂载的 TOS 远端目录。
    localMountPath String
    沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
    bucketPath string
    沙箱实例挂载的 TOS 远端目录。
    localMountPath string
    沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
    bucket_path str
    沙箱实例挂载的 TOS 远端目录。
    local_mount_path str
    沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
    bucketPath String
    沙箱实例挂载的 TOS 远端目录。
    localMountPath String
    沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。

    SandboxMetadata, SandboxMetadataArgs

    Key string
    标签键。
    Value string
    标签值。
    Key string
    标签键。
    Value string
    标签值。
    key String
    标签键。
    value String
    标签值。
    key string
    标签键。
    value string
    标签值。
    key str
    标签键。
    value str
    标签值。
    key String
    标签键。
    value String
    标签值。

    Import

    $ pulumi import volcenginecc:vefaas/sandbox:Sandbox example "function_id|sandbox_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    volcenginecc v0.0.4 published on Monday, Nov 3, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate