diff --git a/cmd/scw/testdata/test-all-usage-instance-snapshot-create-usage.golden b/cmd/scw/testdata/test-all-usage-instance-snapshot-create-usage.golden index 5f1da70191..9117faae70 100644 --- a/cmd/scw/testdata/test-all-usage-instance-snapshot-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-snapshot-create-usage.golden @@ -20,7 +20,7 @@ EXAMPLES: ARGS: [name=] Name of the snapshot - volume-id UUID of the volume + [volume-id] UUID of the volume [unified] Whether a snapshot is unified or not. [tags.{index}] The tags of the snapshot [project-id] Project ID to use. If none is passed the default project ID will be used diff --git a/docs/commands/instance.md b/docs/commands/instance.md index a426546d57..7394574f44 100644 --- a/docs/commands/instance.md +++ b/docs/commands/instance.md @@ -1928,7 +1928,7 @@ scw instance snapshot create [arg=value ...] | Name | | Description | |------|---|-------------| | name | Default: `` | Name of the snapshot | -| volume-id | Required | UUID of the volume | +| volume-id | | UUID of the volume | | unified | | Whether a snapshot is unified or not. | | tags.{index} | | The tags of the snapshot | | project-id | | Project ID to use. If none is passed the default project ID will be used | diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index c3af93d91e..3ec262b4be 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -1269,7 +1269,7 @@ func instanceSnapshotCreate() *core.Command { { Name: "volume-id", Short: `UUID of the volume`, - Required: true, + Required: false, Deprecated: false, Positional: false, },