Create snapshot API handlers
Goal
Implement a creating snapshot method for provisioning
TODO / How to implement
Wait for readiness the issue about refactoring the Retrieval service: #375 (closed)
TODO
-
Add new methods to API -
POST /snapshot/create- creates a new snapshot- use the
SnapshotDatamethod from theRetrievalservice - should support the ability to specify a data pool (use the current active pool by default)
- example of the request body
{ "poolName": "dblab_pool" } - use the
-
POST /snapshot/delete- deletes the snapshot by name- use
DestroySnapshot(string) errorfrom theSnapshotterinterface (FSManager) - example of the request body:
{ "snapshotID": "dblab_pool@snapshot_20220525010741" } - use
-
-
CLI commands for new API handlers -
dblab snapshot create/dblab snapshot create --pool dblab_pool dblab snapshot delete dblab_pool@snapshot_20220525010741
-
-
Add tests -
Describe changes (API, CLI, How-To) in the docs
Acceptance criteria
The user has the ability to create and delete a snapshot via API
Edited by Artyom Kartasov