沙箱
列出模板
列出可以用来创建沙箱的模板。
GET
/sandbox/v1/templates● 支持请求参数
teamIDstring可选query: Id of the team whose templates to list. Omit it to list the templates of your own team; a team you do not belong to answers 403.
nextTokenstring可选query: Cursor to start the list from
limitinteger可选query: Maximum number of items to return per page
返回
200
错误按 E2B 格式返回,参见 错误码
响应
HTTP 200
Successfully returned all templates
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| [].templateID | string | Identifier of the template |
| [].buildID | string | Identifier of the last successful build for given template |
| [].cpuCount | integer | CPU cores for the sandbox |
| [].memoryMB | integer | Memory for the sandbox in MiB |
| [].diskSizeMB | integer | Disk size for the sandbox in MiB |
| [].public | boolean | Whether the template is public or only accessible by the team |
| [].aliases | array<string> | Aliases of the template |
| [].names | array<string> | Names of the template (namespace/alias format when namespaced) |
| [].createdAt | string | Time when the template was created |
| [].updatedAt | string | Time when the template was last updated |
| [].createdBy | object | User who created the template; null for templates created by the platform. |
| [].createdBy.id | string | Identifier of the user |
| [].createdBy.email | string | Email of the user |
| [].lastSpawnedAt | string | Time when the template was last used |
| [].spawnCount | integer | Number of times the template was used |
| [].buildCount | integer | Number of times the template was built |
| [].envdVersion | string | Version of the envd running in the sandbox |
| [].buildStatus | string | Status of the template build |