You need to enable JavaScript to run this app.
文档中心
AI 原生 BaaS 平台 Supabase 版

AI 原生 BaaS 平台 Supabase 版

复制全文
下载 pdf
沙箱服务
DescribeBaasSandboxTemplates
复制全文
下载 pdf
DescribeBaasSandboxTemplates
调用 DescribeBaasSandboxTemplates 接口查询沙箱模板。​
请求类型​
同步请求。​
注意事项​
该接口仅能用于操作使用 Supabase 引擎的 Workspace(工作区)。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
​
参数​
类型​
是否必选​
示例值​
描述​
TemplateName​
String​
否​
python​
按模板名称模糊匹配。​
TemplateId​
String​
否​
rmtavlez953qnv7r****​
按 TemplateId 精确匹配。​
TemplateSource​
String​
否​
User​
按模板来源精确匹配,取值为 System 或 User。​
Offset​
Integer​
否​
0​
分页查询起始,可取大于等于 0 的整数值,默认值为 0。​
Limit​
Integer​
否​
10​
分页查询时单页的返回数量,取值范围为 1~100,默认值为 10,传 0 按默认值处理。​
​
返回参数​
​
参数​
类型​
示例值​
描述​
Total​
Integer​
1​
符合查询条件的结果总数。​
Templates​
请参见返回示例。​
模版列表。​
​
BaasSandboxTemplate​
​
参数​
类型​
示例值​
描述​
TemplateDesc​
String​
​
Python 运行环境​
模板简介;未配置时不返回。​
TemplateId​
String​
​
77gbcsv20q8kxklidjhe​
模板 ID。​
TemplateName​
String​
​
base-python​
模板名称。​
TemplateSize​
String​
800​
模板大小。单位为 MB。​
Tools​
Array of String​
[​
"python",​
"node",​
"git",​
"opencode"​
]​
预装的主要工具;未配置时不返回。​
UpdateTime​
String​
​
2026-08-01T02:30:00Z​
最后更新时间(UTC 时间)。格式为 yyyy-MM-ddTHH:mm:ssZ。​
无记录时不返回。​
​
示例​
​
请求示例​
​
​
​
POST /?Action=DescribeBaasSandboxTemplates&Version=2025-10-01​
Content-Type: application/json​
Host: aidap.cn-beijing.volcengineapi.com​
X-Date: 20251001T101010Z​
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20251001/cn-beijing/aidap/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c6458****​
​
​
返回示例​
​
​
​
{​
"ResponseMetadata": {​
"RequestId": "202610261238568480E859D321E2D0F1BA-ff8dd7",​
"Action": "DescribeBaasSandboxTemplates",​
"Version": "2025-10-01",​
"Service": "aidap",​
"Region": "cn-beijing"​
},​
"Result": {​
"Templates": [​
{​
"TemplateDesc": "e2b sandbox opencode template",​
"TemplateId": "rmtavlez953qnv7rsrsm",​
"TemplateName": "opencode",​
"TemplateSize": "800",​
"Tools": [​
"python",​
"node",​
"git",​
"opencode"​
],​
"UpdateTime": "2026-08-25T12:43:38Z"​
},​
{​
"TemplateDesc": "e2b sandbox codex template",​
"TemplateId": "e7vtte6rsum0ch6ztol1",​
"TemplateName": "codex",​
"TemplateSize": "800",​
"Tools": [​
"python",​
"node",​
"git",​
"codex"​
],​
"UpdateTime": "2026-08-25T12:43:12Z"​
},​
{​
"TemplateDesc": "e2b sandbox code-interpreter template",​
"TemplateId": "yp2zp7p8kigoi6p85z97",​
"TemplateName": "code-interpreter",​
"TemplateSize": "1024",​
"Tools": [​
"python",​
"node",​
"git",​
"jupyter"​
],​
"UpdateTime": "2026-08-21T07:40:21Z"​
},​
{​
"TemplateDesc": "e2b sandbox base template",​
"TemplateId": "1pe3abjrt58t334kl283",​
"TemplateName": "base",​
"TemplateSize": "500",​
"Tools": [​
"python",​
"node",​
"git"​
],​
"UpdateTime": "2026-08-21T07:38:22Z"​
}​
],​
"Total": 4​
}​
}​
​
错误码​
更多详情,请参见错误码。​
最近更新时间:2026.10.29 12:20:37
这个页面对您有帮助吗?
有用
有用
无用
无用