E2B

列出模板

列出可以用来创建沙箱的模板。

GET /e2b/templates● 支持

E2B 官方文档 ↗

请求参数

  • teamIDstring可选

    query: Identifier of the team

返回

200

已弃用:最新官方 SDK 走 v2。

错误按 E2B 格式返回,参见 错误码

响应

HTTP 200

Successfully returned all templates

application/json

名称类型说明
[].templateIDstringIdentifier of the template
[].buildIDstringIdentifier of the last successful build for given template
[].cpuCountintegerCPU cores for the sandbox
[].memoryMBintegerMemory for the sandbox in MiB
[].diskSizeMBintegerDisk size for the sandbox in MiB
[].publicbooleanWhether the template is public or only accessible by the team
[].aliasesarray<string>Aliases of the template
[].namesarray<string>Names of the template (namespace/alias format when namespaced)
[].createdAtstringTime when the template was created
[].updatedAtstringTime when the template was last updated
[].createdByobject
[].createdBy.idstringIdentifier of the user
[].createdBy.emailstringEmail of the user
[].lastSpawnedAtstringTime when the template was last used
[].spawnCountintegerNumber of times the template was used
[].buildCountintegerNumber of times the template was built
[].envdVersionstringVersion of the envd running in the sandbox
[].buildStatusstringStatus of the template build