volcenginecc.vefaas.Sandbox
沙箱实例是云沙箱中实际执行沙箱镜像的安全且隔离的容器运行环境。
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:
- Function
Id string - 沙箱实例所属的沙箱应用 ID。
- Cpu
Milli int - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- Envs
List<Volcengine.
Sandbox Env> - Instance
Image Volcengine.Info Sandbox Instance Image Info - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- Instance
Tos Volcengine.Mount Config Sandbox Instance Tos Mount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- Max
Concurrency int - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- Memory
Mb int - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- Metadatas
List<Volcengine.
Sandbox Metadata> - Request
Timeout int - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- Timeout int
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- Function
Id string - 沙箱实例所属的沙箱应用 ID。
- Cpu
Milli int - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- Envs
[]Sandbox
Env Args - Instance
Image SandboxInfo Instance Image Info Args - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- Instance
Tos SandboxMount Config Instance Tos Mount Config Args - 沙箱实例级别对象存储(TOS)存储挂载配置。
- Max
Concurrency int - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- Memory
Mb int - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- Metadatas
[]Sandbox
Metadata Args - Request
Timeout int - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- Timeout int
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- function
Id String - 沙箱实例所属的沙箱应用 ID。
- cpu
Milli Integer - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- envs
List<Sandbox
Env> - instance
Image SandboxInfo Instance Image Info - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance
Tos SandboxMount Config Instance Tos Mount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- max
Concurrency Integer - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory
Mb Integer - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas
List<Sandbox
Metadata> - request
Timeout Integer - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- timeout Integer
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- function
Id string - 沙箱实例所属的沙箱应用 ID。
- cpu
Milli number - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- envs
Sandbox
Env[] - instance
Image SandboxInfo Instance Image Info - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance
Tos SandboxMount Config Instance Tos Mount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- max
Concurrency number - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory
Mb number - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas
Sandbox
Metadata[] - request
Timeout number - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- timeout number
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- function_
id str - 沙箱实例所属的沙箱应用 ID。
- cpu_
milli int - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- envs
Sequence[Sandbox
Env Args] - instance_
image_ Sandboxinfo Instance Image Info Args - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance_
tos_ Sandboxmount_ config Instance Tos Mount Config Args - 沙箱实例级别对象存储(TOS)存储挂载配置。
- max_
concurrency int - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory_
mb int - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas
Sequence[Sandbox
Metadata Args] - request_
timeout int - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- timeout int
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- function
Id String - 沙箱实例所属的沙箱应用 ID。
- cpu
Milli Number - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- envs List<Property Map>
- instance
Image Property MapInfo - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance
Tos Property MapMount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- max
Concurrency Number - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory
Mb Number - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas List<Property Map>
- request
Timeout 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:
- Availability
Zone string - 沙箱实例所在可用区 ID。
- Created
Time string - 沙箱实例创建时间。
- Error
Code string - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- Error
Message string - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- Expire
At string - 沙箱实例存活时长。
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Type string - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- Pending bool
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- Revision
Number int - 函数实例版本编号。
- Sandbox
Id string - 沙箱实例 ID。
- Status string
- 沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
- Availability
Zone string - 沙箱实例所在可用区 ID。
- Created
Time string - 沙箱实例创建时间。
- Error
Code string - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- Error
Message string - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- Expire
At string - 沙箱实例存活时长。
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Type string - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- Pending bool
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- Revision
Number int - 函数实例版本编号。
- Sandbox
Id string - 沙箱实例 ID。
- Status string
- 沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
- availability
Zone String - 沙箱实例所在可用区 ID。
- created
Time String - 沙箱实例创建时间。
- error
Code String - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- error
Message String - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- expire
At String - 沙箱实例存活时长。
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Type String - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- pending Boolean
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- revision
Number Integer - 函数实例版本编号。
- sandbox
Id String - 沙箱实例 ID。
- status String
- 沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
- availability
Zone string - 沙箱实例所在可用区 ID。
- created
Time string - 沙箱实例创建时间。
- error
Code string - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- error
Message string - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- expire
At string - 沙箱实例存活时长。
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Type string - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- pending boolean
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- revision
Number number - 函数实例版本编号。
- sandbox
Id 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:终止中。
- availability
Zone String - 沙箱实例所在可用区 ID。
- created
Time String - 沙箱实例创建时间。
- error
Code String - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- error
Message String - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- expire
At String - 沙箱实例存活时长。
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Type String - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- pending Boolean
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- revision
Number Number - 函数实例版本编号。
- sandbox
Id 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) -> 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: 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.
- Availability
Zone string - 沙箱实例所在可用区 ID。
- Cpu
Milli int - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- Created
Time string - 沙箱实例创建时间。
- Envs
List<Volcengine.
Sandbox Env> - Error
Code string - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- Error
Message string - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- Expire
At string - 沙箱实例存活时长。
- Function
Id string - 沙箱实例所属的沙箱应用 ID。
- Instance
Image Volcengine.Info Sandbox Instance Image Info - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- Instance
Tos Volcengine.Mount Config Sandbox Instance Tos Mount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- Instance
Type string - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- Max
Concurrency int - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- Memory
Mb int - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- Metadatas
List<Volcengine.
Sandbox Metadata> - Pending bool
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- Request
Timeout int - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- Revision
Number int - 函数实例版本编号。
- Sandbox
Id string - 沙箱实例 ID。
- Status string
- 沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
- Timeout int
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- Availability
Zone string - 沙箱实例所在可用区 ID。
- Cpu
Milli int - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- Created
Time string - 沙箱实例创建时间。
- Envs
[]Sandbox
Env Args - Error
Code string - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- Error
Message string - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- Expire
At string - 沙箱实例存活时长。
- Function
Id string - 沙箱实例所属的沙箱应用 ID。
- Instance
Image SandboxInfo Instance Image Info Args - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- Instance
Tos SandboxMount Config Instance Tos Mount Config Args - 沙箱实例级别对象存储(TOS)存储挂载配置。
- Instance
Type string - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- Max
Concurrency int - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- Memory
Mb int - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- Metadatas
[]Sandbox
Metadata Args - Pending bool
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- Request
Timeout int - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- Revision
Number int - 函数实例版本编号。
- Sandbox
Id string - 沙箱实例 ID。
- Status string
- 沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
- Timeout int
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- availability
Zone String - 沙箱实例所在可用区 ID。
- cpu
Milli Integer - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- created
Time String - 沙箱实例创建时间。
- envs
List<Sandbox
Env> - error
Code String - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- error
Message String - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- expire
At String - 沙箱实例存活时长。
- function
Id String - 沙箱实例所属的沙箱应用 ID。
- instance
Image SandboxInfo Instance Image Info - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance
Tos SandboxMount Config Instance Tos Mount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- instance
Type String - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- max
Concurrency Integer - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory
Mb Integer - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas
List<Sandbox
Metadata> - pending Boolean
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- request
Timeout Integer - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- revision
Number Integer - 函数实例版本编号。
- sandbox
Id String - 沙箱实例 ID。
- status String
- 沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
- timeout Integer
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
- availability
Zone string - 沙箱实例所在可用区 ID。
- cpu
Milli number - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- created
Time string - 沙箱实例创建时间。
- envs
Sandbox
Env[] - error
Code string - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- error
Message string - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- expire
At string - 沙箱实例存活时长。
- function
Id string - 沙箱实例所属的沙箱应用 ID。
- instance
Image SandboxInfo Instance Image Info - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance
Tos SandboxMount Config Instance Tos Mount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- instance
Type string - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- max
Concurrency number - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory
Mb number - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas
Sandbox
Metadata[] - pending boolean
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- request
Timeout number - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- revision
Number number - 函数实例版本编号。
- sandbox
Id 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[Sandbox
Env Args] - error_
code str - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- error_
message str - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- expire_
at str - 沙箱实例存活时长。
- function_
id str - 沙箱实例所属的沙箱应用 ID。
- instance_
image_ Sandboxinfo Instance Image Info Args - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance_
tos_ Sandboxmount_ config Instance Tos Mount Config Args - 沙箱实例级别对象存储(TOS)存储挂载配置。
- instance_
type str - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- max_
concurrency int - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory_
mb int - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas
Sequence[Sandbox
Metadata Args] - 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。
- availability
Zone String - 沙箱实例所在可用区 ID。
- cpu
Milli Number - 沙箱实例 CPU 规格:单位:milli cpu取值范围:250~16000,默认值:1000。
- created
Time String - 沙箱实例创建时间。
- envs List<Property Map>
- error
Code String - 沙箱实例启动失败错误码。参数值说明:internalloadrequesterror:系统内部错误,functioninitializefailed:业务进程初始化错误,functionhealthcheckfailed:健康检查错误,route_terminating:路由删除中,正常启动沙箱实例时,该字段为空。
- error
Message String - 沙箱实例启动失败的错误码详情。正常启动沙箱实例时,该字段为空。
- expire
At String - 沙箱实例存活时长。
- function
Id String - 沙箱实例所属的沙箱应用 ID。
- instance
Image Property MapInfo - 沙箱实例镜像信息,包括镜像地址、启动命令、监听端口。
- instance
Tos Property MapMount Config - 沙箱实例级别对象存储(TOS)存储挂载配置。
- instance
Type String - 沙箱实例类型 。参数值说明:elastic:弹性实例,frozen:冻结实例,activated:激活实例,reserved:预留实例。
- max
Concurrency Number - 单实例请求最大并发数:取值范围:10~1000,默认值:100。
- memory
Mb Number - 沙箱实例内存规格:单位:MiB,取值范围:512~131072,默认值:2048
- metadatas List<Property Map>
- pending Boolean
- 沙箱实例是否处于 Pending 状态。参数值说明:true:是,false:否。
- request
Timeout Number - 请求超时时间:单位:秒,取值范围:1~900,正整数。默认值:30。
- revision
Number Number - 函数实例版本编号。
- sandbox
Id String - 沙箱实例 ID。
- status String
- 沙箱实例状态。 参数值说明:Starting:开始启动,Ready:启动完成,Failed:启动失败,Terminating:终止中。
- timeout Number
- 沙箱实例存活时长:单位:分钟,取值范围:3~1440,默认值:60。
Supporting Types
SandboxEnv, SandboxEnvArgs
SandboxInstanceImageInfo, SandboxInstanceImageInfoArgs
SandboxInstanceTosMountConfig, SandboxInstanceTosMountConfigArgs
- Enable bool
- 沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
- Tos
Mount List<Volcengine.Points Sandbox Instance Tos Mount Config Tos Mount Point>
- Enable bool
- 沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
- Tos
Mount []SandboxPoints Instance Tos Mount Config Tos Mount Point
- enable Boolean
- 沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
- tos
Mount List<SandboxPoints Instance Tos Mount Config Tos Mount Point>
- enable boolean
- 沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
- tos
Mount SandboxPoints Instance Tos Mount Config Tos Mount Point[]
- enable bool
- 沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
- tos_
mount_ Sequence[Sandboxpoints Instance Tos Mount Config Tos Mount Point]
- enable Boolean
- 沙箱实例是否启用了实例级别的 TOS 挂载,参数值说明:true:是,false:否。
- tos
Mount List<Property Map>Points
SandboxInstanceTosMountConfigTosMountPoint, SandboxInstanceTosMountConfigTosMountPointArgs
- Bucket
Path string - 沙箱实例挂载的 TOS 远端目录。
- Local
Mount stringPath - 沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
- Bucket
Path string - 沙箱实例挂载的 TOS 远端目录。
- Local
Mount stringPath - 沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
- bucket
Path String - 沙箱实例挂载的 TOS 远端目录。
- local
Mount StringPath - 沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
- bucket
Path string - 沙箱实例挂载的 TOS 远端目录。
- local
Mount stringPath - 沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
- bucket_
path str - 沙箱实例挂载的 TOS 远端目录。
- local_
mount_ strpath - 沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
- bucket
Path String - 沙箱实例挂载的 TOS 远端目录。
- local
Mount StringPath - 沙箱实例挂载的 TOS 存储桶本地目录。该目录为沙箱应用已配置的 TOS 存储挂载的本地目录时,系统根据指定的本地目录,修改与之对应的 TOS BucketPath。
SandboxMetadata, SandboxMetadataArgs
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
volcengineccTerraform Provider.
