E2B

列出快照

列出当前主体的快照,可按原始别名或本平台快照 ID 筛选。

GET /e2b/snapshots● 支持

E2B 官方文档 ↗

请求参数

  • sandboxIDstring可选

    query: 按来源沙箱 ID 筛选。

  • namestring可选

    query: 按原始别名或本平台 snap_ 快照 ID 筛选。

  • limitinteger可选
    默认 100

    query: 每页返回的快照数量上限。

  • nextTokenstring可选

    query: 上一页响应头 X-Next-Token 返回的游标。

返回

200

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

响应

HTTP 200

Successfully returned snapshots

application/json

名称类型说明
[].snapshotIDstringIdentifier of the snapshot template including the tag. Uses namespace/alias when a name was provided (e.g. team-slug/my-snapshot:default), otherwise falls back to the raw template ID (e.g. abc123:default).
[].namesarray<string>Full names of the snapshot template including team namespace and tag (e.g. team-slug/my-snapshot:v2)