-
Notifications
You must be signed in to change notification settings - Fork 17
feat(cli): onboard iaas volume backup api #773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Benjosh95
wants to merge
31
commits into
main
Choose a base branch
from
feat/onboard-iaas-backup-api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,696
−0
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubenhoenle
reviewed
Jun 2, 2025
rubenhoenle
reviewed
Jun 2, 2025
rubenhoenle
reviewed
Jun 2, 2025
rubenhoenle
reviewed
Jun 2, 2025
rubenhoenle
reviewed
Jun 2, 2025
rubenhoenle
reviewed
Jun 2, 2025
@Benjosh95 please check the failing CI pipeline |
CI pipeline fails due to missing/undefined waiters that will be merged with this PR: stackitcloud/stackit-sdk-go#2669 |
rubenhoenle
reviewed
Jun 6, 2025
rubenhoenle
reviewed
Jun 6, 2025
rubenhoenle
reviewed
Jun 6, 2025
rubenhoenle
reviewed
Jun 6, 2025
rubenhoenle
reviewed
Jun 6, 2025
rubenhoenle
reviewed
Jun 6, 2025
marceljk
reviewed
Jun 6, 2025
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Onboarding the volume backup API https://docs.api.stackit.cloud/documentation/iaas/version/v1#tag/Backups to manage the backup resources via the cli.
Checklist
make fmt
make generate-docs
(will be checked by CI)make test
(will be checked by CI)make lint
(will be checked by CI)Testing-Instructions
Create a test volume to have something to backup
stackit volume create --name backup-test-vol --size 10 --performance-class storage_premium_perf0 --availability-zone eu01-1 --labels initial=true,purpose=backup-testing
Create backup of the volume with name and labels
stackit volume backup create --source-id <VOLUME_ID> --source-type volume --name first-backup --labels state=original,test=true
List backups with limit and label selector
stackit volume backup list --limit 5 --label-selector state=original
Update backup with new name and labels
stackit volume backup update <BACKUP_ID> --name updated-backup --labels state=modified,test=true
Describe backup to verify changes
stackit volume backup describe <BACKUP_ID>
Restore backup
stackit volume backup restore <BACKUP_ID>
Clean up by deleting backup
stackit volume backup delete <BACKUP_ID>
Clean up by deleting volume
stackit volume delete <VOLUME_ID>