aptly
aptly copied to clipboard
snapshot filter missing in API
In the CLI, I can create a filtered snapshot like this:
aptly snapshot filter -with-deps=false snap-all-20250618-01 snap-shared-20250623 'Name (= filter)'
But there’s no equivalent API endpoint (e.g. /api/snapshots/
Tried using PUT /api/snapshots/
Would be great to have full CLI parity here.
Thanks!
Yes, would be nice convenience function. Have a look at https://www.aptly.info/doc/api/snapshots/ As an alternative you could
- get the packages of the source snapshot with "Show Packages/Search"
- Remove the packages from output of 1. to your needs
- create a new snapshot with "Create Snapshot from Package Refs" with output of 2.
Hope that helps while waiting