diff --git a/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden b/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden index 5997467967..9b72bc760c 100644 --- a/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-rdb-instance-create-usage.golden @@ -17,6 +17,8 @@ ARGS: [tags.{index}] Tags to apply to the instance [init-settings.{index}.name] [init-settings.{index}.value] + [volume-type] Type of volume where data are stored (lssd, bssd, ...) (lssd | bssd) + [volume-size] Volume size when volume_type is not lssd [organization-id] Organization ID to use. If none is passed the default organization ID will be used [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams) diff --git a/internal/namespaces/rdb/v1/rdb_cli.go b/internal/namespaces/rdb/v1/rdb_cli.go index 3e6328397d..4e315d7d12 100644 --- a/internal/namespaces/rdb/v1/rdb_cli.go +++ b/internal/namespaces/rdb/v1/rdb_cli.go @@ -773,6 +773,21 @@ func rdbInstanceCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "volume-type", + Short: `Type of volume where data are stored (lssd, bssd, ...)`, + Required: false, + Deprecated: false, + Positional: false, + EnumValues: []string{"lssd", "bssd"}, + }, + { + Name: "volume-size", + Short: `Volume size when volume_type is not lssd`, + Required: false, + Deprecated: false, + Positional: false, + }, core.OrganizationIDArgSpec(), core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), },