跳转到主要内容
GET
/
v2
/
enterprise
/
snapshots
/
{snapshot_id}
curl -X GET "https://api.devin.ai/v2/enterprise/snapshots/snapshot-0768f" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
    "created_at": "2025-11-03T20:00:35.979306Z",
    "description": "This machine has the repositories set up",
    "is_default": true,
    "org": {
        "created_at": "2025-08-27T00:38:26.600708",
        "display_name": "Test Org Updated",
        "org_id": "org-0aaa"
    },
    "pending_scripts": [],
    "snapshot_id": "snapshot-0768f",
    "snapshot_name": "Dev Environment 2025-11-03 17:00:33",
    "status": "available"
}
此端点用于检索企业中某个特定机器快照的详细信息。

路径参数

snapshot_id
string
required
Snapshot 的唯一标识符(例如:“snapshot-abc123”)

响应

snapshot_id
string
快照的唯一标识符
snapshot_name
string
快照的描述性名称
description
string
快照的描述
status
string
快照的当前状态
created_at
string
快照创建时的时间戳
is_default
boolean
如果这是其所在组织的默认快照,则为 True。
pending_scripts
array
针对此快照的待处理脚本列表
org
object
企业内该快照所属的组织
curl -X GET "https://api.devin.ai/v2/enterprise/snapshots/snapshot-0768f" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
    "created_at": "2025-11-03T20:00:35.979306Z",
    "description": "This machine has the repositories set up",
    "is_default": true,
    "org": {
        "created_at": "2025-08-27T00:38:26.600708",
        "display_name": "Test Org Updated",
        "org_id": "org-0aaa"
    },
    "pending_scripts": [],
    "snapshot_id": "snapshot-0768f",
    "snapshot_name": "Dev Environment 2025-11-03 17:00:33",
    "status": "available"
}