Skip to content

API: single-snapshot GET/DELETE endpoints and richer SnapshotInfo — wanted? #3720

Closed

Description

@AdaAibaby

Context

GET /snapshots lists snapshot templates but the API has no way to get or delete a single snapshot by ID/alias, and the list items are sparse. I'd previously drafted this in #3457 (closed as stale), where the maintainer noted that whether the API should grow this way is a maintainer call. Opening this to get that call before sending code.

Proposal (seeking direction)

  1. GET /snapshots/{snapshotID} — fetch one snapshot by ID or alias (404 if not found / not owned). Reuses alias resolution + ListTeamSnapshotTemplates (limit 1); no new query.
  2. DELETE /snapshots/{snapshotID} — soft-delete a snapshot template and release its aliases (204). Reuses the existing softDeleteTemplate path + cache invalidation.
  3. SnapshotInfo enrichment (cpuCount/memoryMB/diskSizeMB/createdAt) — already sent as a small standalone PR since it's low-risk and backward compatible.

Questions for maintainers

Happy to send a focused PR for whichever of the above you'd accept.

Activity

  1. ryan-sana commented on Oct 22, 2026

    @ryan-sana
    Contributor

    No plan to change here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions