diff --git a/cmd/scw/testdata/test-all-usage-vpc-route-create-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-route-create-usage.golden
index e2f0795da4..12d0736737 100644
--- a/cmd/scw/testdata/test-all-usage-vpc-route-create-usage.golden
+++ b/cmd/scw/testdata/test-all-usage-vpc-route-create-usage.golden
@@ -12,6 +12,7 @@ ARGS:
[destination] Destination of the Route
[nexthop-resource-id] ID of the nexthop resource
[nexthop-private-network-id] ID of the nexthop private network
+ [nexthop-vpc-connector-id] ID of the nexthop VPC Connector
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
FLAGS:
diff --git a/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden
index ffea45c6d0..ab1224caf7 100644
--- a/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden
+++ b/cmd/scw/testdata/test-all-usage-vpc-route-list-usage.golden
@@ -11,6 +11,7 @@ ARGS:
[nexthop-resource-id] Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned
[nexthop-private-network-id] Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned
[nexthop-resource-type] Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned (unknown_type | vpc_gateway_network | instance_private_nic | baremetal_private_nic | apple_silicon_private_nic)
+ [nexthop-vpc-connector-id] Next hop VPC connector ID to filter for. Only routes with a matching next hop VPC connector ID will be returned
[contains] Only routes whose destination is contained in this subnet will be returned
[tags.{index}] Tags to filter for, only routes with one or more matching tags will be returned
[is-ipv6] Only routes with an IPv6 destination will be returned
diff --git a/cmd/scw/testdata/test-all-usage-vpc-route-update-usage.golden b/cmd/scw/testdata/test-all-usage-vpc-route-update-usage.golden
index 0d9644aac9..59ce8c46be 100644
--- a/cmd/scw/testdata/test-all-usage-vpc-route-update-usage.golden
+++ b/cmd/scw/testdata/test-all-usage-vpc-route-update-usage.golden
@@ -12,6 +12,7 @@ ARGS:
[destination] Destination of the Route
[nexthop-resource-id] ID of the nexthop resource
[nexthop-private-network-id] ID of the nexthop private network
+ [nexthop-vpc-connector-id] ID of the nexthop VPC connector
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
FLAGS:
diff --git a/docs/commands/vpc.md b/docs/commands/vpc.md
index 43a41de660..674656ee00 100644
--- a/docs/commands/vpc.md
+++ b/docs/commands/vpc.md
@@ -197,6 +197,7 @@ scw vpc route create [arg=value ...]
| destination | | Destination of the Route |
| nexthop-resource-id | | ID of the nexthop resource |
| nexthop-private-network-id | | ID of the nexthop private network |
+| nexthop-vpc-connector-id | | ID of the nexthop VPC Connector |
| region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
@@ -281,6 +282,7 @@ scw vpc route list [arg=value ...]
| nexthop-resource-id | | Next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned |
| nexthop-private-network-id | | Next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned |
| nexthop-resource-type | One of: `unknown_type`, `vpc_gateway_network`, `instance_private_nic`, `baremetal_private_nic`, `apple_silicon_private_nic` | Next hop resource type to filter for. Only Routes with a matching next hop resource type will be returned |
+| nexthop-vpc-connector-id | | Next hop VPC connector ID to filter for. Only routes with a matching next hop VPC connector ID will be returned |
| contains | | Only routes whose destination is contained in this subnet will be returned |
| tags.{index} | | Tags to filter for, only routes with one or more matching tags will be returned |
| is-ipv6 | | Only routes with an IPv6 destination will be returned |
@@ -309,6 +311,7 @@ scw vpc route update [arg=value ...]
| destination | | Destination of the Route |
| nexthop-resource-id | | ID of the nexthop resource |
| nexthop-private-network-id | | ID of the nexthop private network |
+| nexthop-vpc-connector-id | | ID of the nexthop VPC connector |
| region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
diff --git a/go.mod b/go.mod
index 81997dfc9e..f4ea083492 100644
--- a/go.mod
+++ b/go.mod
@@ -23,7 +23,7 @@ require (
github.com/mattn/go-isatty v0.0.20
github.com/moby/buildkit v0.26.3
github.com/opencontainers/go-digest v1.0.0
- github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260203052142-918ae3efe337
+ github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260205134439-552c4fd7bb15
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
diff --git a/go.sum b/go.sum
index b3b68dd885..95cda3cab3 100644
--- a/go.sum
+++ b/go.sum
@@ -468,8 +468,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
-github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260203052142-918ae3efe337 h1:E7zH2bIf8EtLomw/tFgfevq7HJ8mKuBKOm+BEx5YxLc=
-github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260203052142-918ae3efe337/go.mod h1:VbEqG0nAXcEFyHLKWwbhgbDNimnLf24Qat73/12DU9o=
+github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260205134439-552c4fd7bb15 h1:1TEkXowNZybCaCrgTA+id+AjsPGt3n0xiTPBuaUgoTo=
+github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260205134439-552c4fd7bb15/go.mod h1:VbEqG0nAXcEFyHLKWwbhgbDNimnLf24Qat73/12DU9o=
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
github.com/secure-systems-lab/go-securesystemslib v0.9.1 h1:nZZaNz4DiERIQguNy0cL5qTdn9lR8XKHf4RUyG1Sx3g=
diff --git a/internal/namespaces/vpc/v2/vpc_cli.go b/internal/namespaces/vpc/v2/vpc_cli.go
index 8308e152e3..f162795078 100644
--- a/internal/namespaces/vpc/v2/vpc_cli.go
+++ b/internal/namespaces/vpc/v2/vpc_cli.go
@@ -773,6 +773,13 @@ func vpcRouteCreate() *core.Command {
Deprecated: false,
Positional: false,
},
+ {
+ Name: "nexthop-vpc-connector-id",
+ Short: `ID of the nexthop VPC Connector`,
+ Required: false,
+ Deprecated: false,
+ Positional: false,
+ },
core.RegionArgSpec(
scw.RegionFrPar,
scw.RegionNlAms,
@@ -876,6 +883,13 @@ func vpcRouteUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
+ {
+ Name: "nexthop-vpc-connector-id",
+ Short: `ID of the nexthop VPC connector`,
+ Required: false,
+ Deprecated: false,
+ Positional: false,
+ },
core.RegionArgSpec(
scw.RegionFrPar,
scw.RegionNlAms,
@@ -1162,6 +1176,13 @@ func vpcRouteList() *core.Command {
"apple_silicon_private_nic",
},
},
+ {
+ Name: "nexthop-vpc-connector-id",
+ Short: `Next hop VPC connector ID to filter for. Only routes with a matching next hop VPC connector ID will be returned`,
+ Required: false,
+ Deprecated: false,
+ Positional: false,
+ },
{
Name: "contains",
Short: `Only routes whose destination is contained in this subnet will be returned`,