| 名称 | 类型 | 描述 | 示例值 |
|---|---|---|---|
| object | 创建模板所需的输入参数 | ||
| templateName | string | 模板名称(要求账号唯一的) | browser-1766687911567 |
| templateType | string | 模板类型 | Browser |
| description | string | 模板描述 | 模板描述 |
| cpu | float | CPU 资源配置(单位:核心) | 2 |
| memory | integer | 内存资源配置(单位:MB) | 2048 |
| diskSize | integer | 磁盘大小 | 10240 |
| containerConfiguration | ContainerConfiguration | 容器配置,只允许基于 Browser/Code Interpreter 基础镜像的 image | |
| networkConfiguration | NetworkConfiguration | 网络配置 | |
| credentialConfiguration | CredentialConfiguration | 凭证配置 | |
| logConfiguration | LogConfiguration | 日志配置 | |
| executionRoleArn | string | 执行角色 ARN | acs:ram::123456789:role/aliyunfcdefaultrole |
| sandboxIdleTimeoutInSeconds | integer | 沙箱空闲超时时间(秒) | 1800 |
sandboxTTLInSecondsdeprecated | integer | 沙箱存活时间(秒)(已弃用) | 26000 |
| armsConfiguration | ArmsConfiguration | ARMS 配置 | |
| allowAnonymousManage | boolean | 是否允许数据链路调用创建/停止/删除沙箱接口 | true |
| ossConfiguration | array | OSS 配置 | |
| OssConfiguration | OSS 配置项 | ||
| environmentVariables | object | 环境变量 | |
| string | 环境变量 map | {'FCTEST_IDE_ENV': 'IDE'} | |
| templateConfiguration | object | 模板配置(灵活的对象结构,根据 templateType 不同而不同) | |
| any | 模板配置(灵活的对象结构,根据 templateType 不同而不同) | {"example":"value"} |
该文章对您有帮助吗?