scaleway-cli
scaleway-cli copied to clipboard
Command for restoring an instance using a snapshot
Description
In the restore instance part, one solution I wanted to apply was
- Creating a snapshot first.
- Power off the instance in order to detach the volume
- Attach the volume of the snapshot to the instance.
How this functionality would be exposed
I thought I could use this command
scw instance server attach-volume server-id=your-server-id volume-id=your-volume-id replacing the volume-id with the snapshot id to attach the volume. Can you make it work?
Another option would be to have a restore verb inside the server resource.
References
Version
Version 2.3.0 BuildDate unknown GoVersion go1.16 GitBranch unknown GitCommit unknown GoArch amd64 GoOS darwin