diff --git a/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden b/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden index f9ea7ef6b0..f9dc59f98a 100644 --- a/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-ipam-ip-create-usage.golden @@ -10,6 +10,7 @@ ARGS: [source.zonal] Zone the IP lives in if the IP is a public zoned IP. [source.private-network-id] Private Network the IP lives in if the IP is a private IP. [source.subnet-id] Private Network subnet the IP lives in if the IP is a private IP in a Private Network. + [source.vpc-id] [is-ipv6] Request an IPv6 instead of an IPv4 [address] Request this specific IP address in the specified source pool [tags.{index}] Tags for the IP diff --git a/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden b/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden index 8525afb4e2..8315cbb7c5 100644 --- a/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden +++ b/cmd/scw/testdata/test-all-usage-ipam-ip-list-usage.golden @@ -22,6 +22,7 @@ ARGS: [tags.{index}] Tags to filter for, only IPs with one or more matching tags will be returned [is-ipv6] Defines whether to filter only for IPv4s or IPv6s [ip-ids.{index}] IP IDs to filter for. Only IPs with these UUIDs will be returned + [source-vpc-id] [organization-id] Organization ID to filter for. Only IPs belonging to this Organization will be returned [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw | all) diff --git a/docs/commands/ipam.md b/docs/commands/ipam.md index b5c693d3b8..23149f6c3e 100644 --- a/docs/commands/ipam.md +++ b/docs/commands/ipam.md @@ -36,6 +36,7 @@ scw ipam ip create [arg=value ...] | source.zonal | | Zone the IP lives in if the IP is a public zoned IP. | | source.private-network-id | | Private Network the IP lives in if the IP is a private IP. | | source.subnet-id | | Private Network subnet the IP lives in if the IP is a private IP in a Private Network. | +| source.vpc-id | | | | is-ipv6 | | Request an IPv6 instead of an IPv4 | | address | | Request this specific IP address in the specified source pool | | tags.{index} | | Tags for the IP | @@ -116,6 +117,7 @@ scw ipam ip list [arg=value ...] | tags.{index} | | Tags to filter for, only IPs with one or more matching tags will be returned | | is-ipv6 | | Defines whether to filter only for IPv4s or IPv6s | | ip-ids.{index} | | IP IDs to filter for. Only IPs with these UUIDs will be returned | +| source-vpc-id | | | | organization-id | | Organization ID to filter for. Only IPs belonging to this Organization will be returned | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw`, `all` | Region to target. If none is passed will use default region from the config | diff --git a/internal/namespaces/ipam/v1/ipam_cli.go b/internal/namespaces/ipam/v1/ipam_cli.go index b60b2dff9e..9b46779b4b 100644 --- a/internal/namespaces/ipam/v1/ipam_cli.go +++ b/internal/namespaces/ipam/v1/ipam_cli.go @@ -89,6 +89,12 @@ func ipamIPCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "source.vpc-id", + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "is-ipv6", Short: `Request an IPv6 instead of an IPv4`, @@ -491,6 +497,12 @@ func ipamIPList() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "source-vpc-id", + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "organization-id", Short: `Organization ID to filter for. Only IPs belonging to this Organization will be returned`,