Skip to content

Commit b556dbb

Browse files
feat(instance): remove unwanted required field on CreateSnapshot (#2493)
It is now possible to create a snapshot from an object storage bucket Co-authored-by: Rémy Léone <rleone@scaleway.com>
1 parent 2a340a6 commit b556dbb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/scw/testdata/test-all-usage-instance-snapshot-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ EXAMPLES:
2020

2121
ARGS:
2222
[name=<generated>] Name of the snapshot
23-
volume-id UUID of the volume
23+
[volume-id] UUID of the volume
2424
[unified] Whether a snapshot is unified or not.
2525
[tags.{index}] The tags of the snapshot
2626
[project-id] Project ID to use. If none is passed the default project ID will be used

docs/commands/instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ scw instance snapshot create [arg=value ...]
19281928
| Name | | Description |
19291929
|------|---|-------------|
19301930
| name | Default: `<generated>` | Name of the snapshot |
1931-
| volume-id | Required | UUID of the volume |
1931+
| volume-id | | UUID of the volume |
19321932
| unified | | Whether a snapshot is unified or not. |
19331933
| tags.{index} | | The tags of the snapshot |
19341934
| project-id | | Project ID to use. If none is passed the default project ID will be used |

internal/namespaces/instance/v1/instance_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ func instanceSnapshotCreate() *core.Command {
12691269
{
12701270
Name: "volume-id",
12711271
Short: `UUID of the volume`,
1272-
Required: true,
1272+
Required: false,
12731273
Deprecated: false,
12741274
Positional: false,
12751275
},

0 commit comments

Comments
 (0)