List snapshots
Every snapshot on the account that you can act on. Snapshots outlive the computers they came from, so this list routinely contains rows whose computer_id resolves to nothing — those carry orphaned: true, and clone is the operation that still works on them.
Uncertain fleet computer presence can require allow_partial=true even when snapshot rows were read; those rows carry computer_unreachable instead of a confirmed orphan status.
CAPTURES IN PROGRESS ARE LISTED TOO, and they are not snapshots yet. Such a row reads state: "capturing": restore, clone and delete all answer 404 on it until it lands. It carries the id the finished snapshot will have, which is what makes this endpoint the one you poll after POST /computers/:id/snapshots — the row you were handed there is this row, and it stops reading capturing in place rather than being replaced by something under another id. A capture appears exactly once: while it runs you get the placeholder, and from the moment the snapshot is stored you get the snapshot, never both.
CHECK state ON EVERY ROW, not on the newest one. This listing is a concatenation of one answer per host your computers are on, in a fixed host order that has nothing to do with time, so it carries no account-wide ordering to read anything from: a capture running on one host can appear after finished snapshots from another, and will do so consistently rather than intermittently.
Requires the viewer role or higher.
Request
- Base URL: https://app.mandala.computer/api/v1
- URL: https://app.mandala.computer/api/v1/snapshots
- Auth: HTTP bearer
Query parameters
Accept a listing known to be short. Without it this endpoint answers 503 when a hypervisor holding some of your things cannot be reached, because a short list is not a smaller truth — it reads exactly like the missing ones were deleted, and the obvious next thing a script does with something that has disappeared is tidy it up. A snapshot on a host that cannot be reached is listed as its id and unreachable: true, and nothing else; a key scoped to a workspace gets no such rows, only the short answer. A row whose source computer cannot be found for certain carries computer_unreachable: true and no orphaned.
Widen the listing to snapshots whose deletion began and has not finished — their state reads deleting. Left out by default because a half-deleted snapshot is not one you can restore or clone, so a bare listing is the set you can actually act on. Poll with it to learn when a deletion has finished: the row goes then.
Response
Your snapshots — every one you can act on, plus unfinished deletions if you asked for them.
Changes
No recorded changes to this operation across all 1 revision of this API.