{ "type": "object", "properties": { "id": { "type": "string" }, "organizationId": { "type": "string" }, "general": { "type": "boolean" }, "name": { "type": "string" }, "imageName": { "type": "string" }, "state": { "allOf": [ { "type": "string", "enum": [ "building", "pending", "pulling", "active", "inactive", "error", "build_failed", "removing" ] } ] }, "size": { "type": "number", "nullable": true }, "entrypoint": { "nullable": true, "type": "array", "items": { "type": "string" } }, "cpu": { "type": "number" }, "gpu": { "type": "number" }, "mem": { "type": "number" }, "disk": { "type": "number" }, "errorReason": { "type": "string", "nullable": true }, "createdAt": { "format": "date-time", "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" }, "lastUsedAt": { "format": "date-time", "type": "string", "nullable": true }, "buildInfo": { "description": "Build information for the snapshot", "allOf": [ { "type": "object", "properties": { "dockerfileContent": { "type": "string", "description": "The Dockerfile content used for the build", "example": "FROM node:14\nWORKDIR /app\nCOPY . .\nRUN npm install\nCMD [\"npm\", \"start\"]" }, "contextHashes": { "description": "The context hashes used for the build", "example": [ "hash1", "hash2" ], "type": "array", "items": { "type": "string" } }, "createdAt": { "format": "date-time", "type": "string", "description": "The creation timestamp" }, "updatedAt": { "format": "date-time", "type": "string", "description": "The last update timestamp" }, "snapshotRef": { "type": "string", "description": "The snapshot reference", "example": "daytonaio/sandbox:latest" } }, "required": [ "createdAt", "updatedAt", "snapshotRef" ] } ] }, "regionIds": { "description": "IDs of regions where the snapshot is available", "type": "array", "items": { "type": "string" } }, "initialRunnerId": { "type": "string", "description": "The initial runner ID of the snapshot", "example": "runner123" }, "ref": { "type": "string", "description": "The snapshot reference", "example": "daytonaio/sandbox:latest" } }, "required": [ "id", "general", "name", "state", "size", "entrypoint", "cpu", "gpu", "mem", "disk", "errorReason", "createdAt", "updatedAt", "lastUsedAt" ], "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/daytona-io/refs/heads/main/json-schema/daytona-snapshot-schema.json", "title": "SnapshotDto" }