Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions docs/commands/vpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |


Expand Down Expand Up @@ -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 |
Expand Down Expand Up @@ -309,6 +311,7 @@ scw vpc route update <route-id ...> [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`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |


Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
21 changes: 21 additions & 0 deletions internal/namespaces/vpc/v2/vpc_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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`,
Expand Down
Loading