List snapshots
List snapshots for the authenticated organization. Results can be filtered by snapshot name and sorted by creation time or template ID.
List snapshots for the authenticated organization. Results can be filtered by snapshot name and sorted by creation time or template ID.
Authorization
BearerAuth API key passed as a Bearer token in the Authorization header.
Alternatively, use the leap0-authorization header.
In: header
Query Parameters
Filter results by snapshot name.
length <= 64Field used to sort results.
"created_at""created_at" | "template_id"Sort direction.
"desc""asc" | "desc"1-based results page.
11 <= valueNumber of items per page.
201 <= value <= 100Response Body
application/json
application/json
application/json
curl -X GET "https://api.leap0.dev/v1/snapshots"{ "items": [ { "id": "snap-abc123", "name": "workspace-warm", "template_id": "string", "vcpu": 1, "memory": 1, "disk": 1, "network_policy": { "mode": "allow-all", "allow_domains": [ "string" ], "allow_cidrs": [ "string" ], "transforms": [ { "domain": "string", "inject_headers": { "property1": "string", "property2": "string" }, "strip_headers": [ "string" ] } ] }, "created_at": "2019-08-24T14:15:22Z" } ], "total_items": 0}{ "message": "string", "errors": [ { "field": "string", "error": "string" } ]}{ "message": "string"}Delete a snapshot DELETE
Delete a stored snapshot and its artifacts. Deletion fails if the snapshot is still referenced by an active sandbox.
Upload a template POST
Upload a container image as a template. The image is pulled, converted to a rootfs, and stored for later use when creating sandboxes. A maximum of 25 templates per organization is enforced.

