跳转到主要内容
GET
/
v2
/
enterprise
/
snapshots
/
{snapshot_id}
Get Snapshot
curl --request GET \
  --url https://api.devin.ai/v2/enterprise/snapshots/{snapshot_id} \
  --header 'Authorization: Bearer <token>'
{
  "created_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "is_default": true,
  "org": {
    "created_at": "2023-11-07T05:31:56Z",
    "display_name": "<string>",
    "org_id": "<string>"
  },
  "snapshot_id": "<string>",
  "snapshot_name": "<string>",
  "status": "<string>",
  "pending_scripts": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "script_id": "<string>",
      "script_name": "<string>",
      "status": "<string>"
    }
  ]
}
需要企业管理员的个人 API key。 此 endpoint 用于获取你所在 Enterprise 中某个特定机器快照的详细信息。

授权

Authorization
string
header
必填

Personal API Key (apk_user_*) for Enterprise Admins only

路径参数

snapshot_id
string
必填

响应

Successful Response

created_at
string<date-time>
必填
description
string | null
必填
is_default
boolean
必填
org
EnterpriseOrganizationResponse · object
必填
snapshot_id
string
必填
snapshot_name
string
必填
status
string
必填
pending_scripts
EnterpriseSnapshotScriptResponse · object[] | null