diff --git a/cmd/scw/testdata/test-all-usage-instance-ip-create-usage.golden b/cmd/scw/testdata/test-all-usage-instance-ip-create-usage.golden index 4b8f7038fc..aa4e034732 100644 --- a/cmd/scw/testdata/test-all-usage-instance-ip-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-ip-create-usage.golden @@ -16,6 +16,7 @@ EXAMPLES: scw instance ip create server=11111111-1111-1111-1111-111111111111 ARGS: + [project] The project ID the IP is reserved in [server] UUID of the server you want to attach the IP to [tags.{index}] An array of keywords you want to tag this IP with [organization-id] Organization ID to use. If none is passed will use default organization ID from the config diff --git a/cmd/scw/testdata/test-all-usage-instance-ip-list-usage.golden b/cmd/scw/testdata/test-all-usage-instance-ip-list-usage.golden index 33c10797be..fe5b3d6d7d 100644 --- a/cmd/scw/testdata/test-all-usage-instance-ip-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-instance-ip-list-usage.golden @@ -13,6 +13,7 @@ EXAMPLES: scw instance ip list zone=fr-par-1 ARGS: + [project] The project ID the IPs are reserved in [name] Filter on the IP address (Works as a LIKE operation on the IP address) [organization-id] The organization ID the IPs are reserved in [zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | nl-ams-1) diff --git a/internal/namespaces/instance/v1/instance_cli.go b/internal/namespaces/instance/v1/instance_cli.go index f0f7d95c43..b18e24d067 100644 --- a/internal/namespaces/instance/v1/instance_cli.go +++ b/internal/namespaces/instance/v1/instance_cli.go @@ -1921,6 +1921,12 @@ func instanceIPList() *core.Command { Verb: "list", ArgsType: reflect.TypeOf(instance.ListIPsRequest{}), ArgSpecs: core.ArgSpecs{ + { + Name: "project", + Short: `The project ID the IPs are reserved in`, + Required: false, + Positional: false, + }, { Name: "name", Short: `Filter on the IP address (Works as a LIKE operation on the IP address)`, @@ -1995,6 +2001,12 @@ func instanceIPCreate() *core.Command { Verb: "create", ArgsType: reflect.TypeOf(instance.CreateIPRequest{}), ArgSpecs: core.ArgSpecs{ + { + Name: "project", + Short: `The project ID the IP is reserved in`, + Required: false, + Positional: false, + }, { Name: "server", Short: `UUID of the server you want to attach the IP to`,