Skip to content

feat(cli): added call apiV2 for cloud storage#212

Open
duboolivier wants to merge 1 commit into
mainfrom
dev/olivierdubo/cloud-storage-file-v2
Open

feat(cli): added call apiV2 for cloud storage#212
duboolivier wants to merge 1 commit into
mainfrom
dev/olivierdubo/cloud-storage-file-v2

Conversation

@duboolivier

@duboolivier duboolivier commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Description

Migrates the cloud storage file commands (share, snapshot, network) from the v1
region-based API to the Cloud API v2 (/v2/publicCloud/project/{id}/storage/file/...).

  • share / snapshot: list, get, create, edit, delete
  • network (share networks): new sub-tree — list, get, create, delete
  • Adds --wait (async provisioning) via waitForCloudResourceReady
  • Drops the v1 --region discovery flow and acl subcommands (no v2 equivalent; region is now location.region, access via accessRules)

Tested end-to-end against the real v2 API (create → get → edit → snapshot → delete).
Fixes #xx (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (improvement of existing commands)
  • Breaking change (fix or feature that can break a current behavior)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code
  • I ran go mod tidy
  • I have added tests that prove my fix is effective or that my feature works

Signed-off-by: olivier dubo <olivier.dubo@ovhcloud.com>
@duboolivier duboolivier requested a review from a team as a code owner July 9, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant