published on Wednesday, Apr 29, 2026 by pulumiverse
published on Wednesday, Apr 29, 2026 by pulumiverse
Gets information about a VPC route.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by filters
const byFilters = scaleway.network.getRoute({
vpcId: myVpc.id,
tags: ["my-tag"],
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by filters
by_filters = scaleway.network.get_route(vpc_id=my_vpc["id"],
tags=["my-tag"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/network"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by filters
_, err := network.LookupRoute(ctx, &network.LookupRouteArgs{
VpcId: pulumi.StringRef(myVpc.Id),
Tags: []string{
"my-tag",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Get info by filters
var byFilters = Scaleway.Network.GetRoute.Invoke(new()
{
VpcId = myVpc.Id,
Tags = new[]
{
"my-tag",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.NetworkFunctions;
import com.pulumi.scaleway.network.inputs.GetRouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Get info by filters
final var byFilters = NetworkFunctions.getRoute(GetRouteArgs.builder()
.vpcId(myVpc.id())
.tags("my-tag")
.build());
}
}
variables:
# Get info by filters
byFilters:
fn::invoke:
function: scaleway:network:getRoute
arguments:
vpcId: ${myVpc.id}
tags:
- my-tag
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
// Get info by route ID
const byId = scaleway.network.getRoute({
routeId: "fr-par/11111111-1111-1111-1111-111111111111",
});
import pulumi
import pulumi_scaleway as scaleway
# Get info by route ID
by_id = scaleway.network.get_route(route_id="fr-par/11111111-1111-1111-1111-111111111111")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/network"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Get info by route ID
_, err := network.LookupRoute(ctx, &network.LookupRouteArgs{
RouteId: pulumi.StringRef("fr-par/11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Get info by route ID
var byId = Scaleway.Network.GetRoute.Invoke(new()
{
RouteId = "fr-par/11111111-1111-1111-1111-111111111111",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.network.NetworkFunctions;
import com.pulumi.scaleway.network.inputs.GetRouteArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Get info by route ID
final var byId = NetworkFunctions.getRoute(GetRouteArgs.builder()
.routeId("fr-par/11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Get info by route ID
byId:
fn::invoke:
function: scaleway:network:getRoute
arguments:
routeId: fr-par/11111111-1111-1111-1111-111111111111
Using getRoute
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRoute(args: GetRouteArgs, opts?: InvokeOptions): Promise<GetRouteResult>
function getRouteOutput(args: GetRouteOutputArgs, opts?: InvokeOptions): Output<GetRouteResult>def get_route(is_ipv6: Optional[bool] = None,
nexthop_private_network_id: Optional[str] = None,
nexthop_resource_id: Optional[str] = None,
nexthop_resource_type: Optional[str] = None,
region: Optional[str] = None,
route_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRouteResult
def get_route_output(is_ipv6: pulumi.Input[Optional[bool]] = None,
nexthop_private_network_id: pulumi.Input[Optional[str]] = None,
nexthop_resource_id: pulumi.Input[Optional[str]] = None,
nexthop_resource_type: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
route_id: pulumi.Input[Optional[str]] = None,
tags: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
vpc_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRouteResult]func LookupRoute(ctx *Context, args *LookupRouteArgs, opts ...InvokeOption) (*LookupRouteResult, error)
func LookupRouteOutput(ctx *Context, args *LookupRouteOutputArgs, opts ...InvokeOption) LookupRouteResultOutput> Note: This function is named LookupRoute in the Go SDK.
public static class GetRoute
{
public static Task<GetRouteResult> InvokeAsync(GetRouteArgs args, InvokeOptions? opts = null)
public static Output<GetRouteResult> Invoke(GetRouteInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRouteResult> getRoute(GetRouteArgs args, InvokeOptions options)
public static Output<GetRouteResult> getRoute(GetRouteArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:network/getRoute:getRoute
arguments:
# arguments dictionaryThe following arguments are supported:
- Is
Ipv6 bool - If true, only routes with an IPv6 destination will be returned.
- Nexthop
Private stringNetwork Id - The next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned.
- Nexthop
Resource stringId - The next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned.
- Nexthop
Resource stringType - The next hop resource type to filter for. Only routes with a matching next hop resource type will be returned.
- Region string
region). The region in which the route exists.Note: When using filter arguments, the filters must match exactly one route. If zero or multiple routes are found, an error will be returned.
- Route
Id string The ID of the route.
The following filter arguments are supported (cannot be used with
routeId):- List<string>
- List of tags to filter for. Only routes with these exact tags will be returned.
- Vpc
Id string - The VPC ID to filter for. Only routes within this VPC will be returned.
- Is
Ipv6 bool - If true, only routes with an IPv6 destination will be returned.
- Nexthop
Private stringNetwork Id - The next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned.
- Nexthop
Resource stringId - The next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned.
- Nexthop
Resource stringType - The next hop resource type to filter for. Only routes with a matching next hop resource type will be returned.
- Region string
region). The region in which the route exists.Note: When using filter arguments, the filters must match exactly one route. If zero or multiple routes are found, an error will be returned.
- Route
Id string The ID of the route.
The following filter arguments are supported (cannot be used with
routeId):- []string
- List of tags to filter for. Only routes with these exact tags will be returned.
- Vpc
Id string - The VPC ID to filter for. Only routes within this VPC will be returned.
- is
Ipv6 Boolean - If true, only routes with an IPv6 destination will be returned.
- nexthop
Private StringNetwork Id - The next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned.
- nexthop
Resource StringId - The next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned.
- nexthop
Resource StringType - The next hop resource type to filter for. Only routes with a matching next hop resource type will be returned.
- region String
region). The region in which the route exists.Note: When using filter arguments, the filters must match exactly one route. If zero or multiple routes are found, an error will be returned.
- route
Id String The ID of the route.
The following filter arguments are supported (cannot be used with
routeId):- List<String>
- List of tags to filter for. Only routes with these exact tags will be returned.
- vpc
Id String - The VPC ID to filter for. Only routes within this VPC will be returned.
- is
Ipv6 boolean - If true, only routes with an IPv6 destination will be returned.
- nexthop
Private stringNetwork Id - The next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned.
- nexthop
Resource stringId - The next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned.
- nexthop
Resource stringType - The next hop resource type to filter for. Only routes with a matching next hop resource type will be returned.
- region string
region). The region in which the route exists.Note: When using filter arguments, the filters must match exactly one route. If zero or multiple routes are found, an error will be returned.
- route
Id string The ID of the route.
The following filter arguments are supported (cannot be used with
routeId):- string[]
- List of tags to filter for. Only routes with these exact tags will be returned.
- vpc
Id string - The VPC ID to filter for. Only routes within this VPC will be returned.
- is_
ipv6 bool - If true, only routes with an IPv6 destination will be returned.
- nexthop_
private_ strnetwork_ id - The next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned.
- nexthop_
resource_ strid - The next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned.
- nexthop_
resource_ strtype - The next hop resource type to filter for. Only routes with a matching next hop resource type will be returned.
- region str
region). The region in which the route exists.Note: When using filter arguments, the filters must match exactly one route. If zero or multiple routes are found, an error will be returned.
- route_
id str The ID of the route.
The following filter arguments are supported (cannot be used with
routeId):- Sequence[str]
- List of tags to filter for. Only routes with these exact tags will be returned.
- vpc_
id str - The VPC ID to filter for. Only routes within this VPC will be returned.
- is
Ipv6 Boolean - If true, only routes with an IPv6 destination will be returned.
- nexthop
Private StringNetwork Id - The next hop private network ID to filter for. Only routes with a matching next hop private network ID will be returned.
- nexthop
Resource StringId - The next hop resource ID to filter for. Only routes with a matching next hop resource ID will be returned.
- nexthop
Resource StringType - The next hop resource type to filter for. Only routes with a matching next hop resource type will be returned.
- region String
region). The region in which the route exists.Note: When using filter arguments, the filters must match exactly one route. If zero or multiple routes are found, an error will be returned.
- route
Id String The ID of the route.
The following filter arguments are supported (cannot be used with
routeId):- List<String>
- List of tags to filter for. Only routes with these exact tags will be returned.
- vpc
Id String - The VPC ID to filter for. Only routes within this VPC will be returned.
getRoute Result
The following output properties are available:
- Created
At string - Description string
- Destination string
- Id string
- The provider-assigned unique ID for this managed resource.
- Nexthop
Vpc stringConnector Id - Updated
At string - Is
Ipv6 bool - Nexthop
Private stringNetwork Id - Nexthop
Resource stringId - Nexthop
Resource stringType - Region string
- Route
Id string - List<string>
- Vpc
Id string
- Created
At string - Description string
- Destination string
- Id string
- The provider-assigned unique ID for this managed resource.
- Nexthop
Vpc stringConnector Id - Updated
At string - Is
Ipv6 bool - Nexthop
Private stringNetwork Id - Nexthop
Resource stringId - Nexthop
Resource stringType - Region string
- Route
Id string - []string
- Vpc
Id string
- created
At String - description String
- destination String
- id String
- The provider-assigned unique ID for this managed resource.
- nexthop
Vpc StringConnector Id - updated
At String - is
Ipv6 Boolean - nexthop
Private StringNetwork Id - nexthop
Resource StringId - nexthop
Resource StringType - region String
- route
Id String - List<String>
- vpc
Id String
- created
At string - description string
- destination string
- id string
- The provider-assigned unique ID for this managed resource.
- nexthop
Vpc stringConnector Id - updated
At string - is
Ipv6 boolean - nexthop
Private stringNetwork Id - nexthop
Resource stringId - nexthop
Resource stringType - region string
- route
Id string - string[]
- vpc
Id string
- created_
at str - description str
- destination str
- id str
- The provider-assigned unique ID for this managed resource.
- nexthop_
vpc_ strconnector_ id - updated_
at str - is_
ipv6 bool - nexthop_
private_ strnetwork_ id - nexthop_
resource_ strid - nexthop_
resource_ strtype - region str
- route_
id str - Sequence[str]
- vpc_
id str
- created
At String - description String
- destination String
- id String
- The provider-assigned unique ID for this managed resource.
- nexthop
Vpc StringConnector Id - updated
At String - is
Ipv6 Boolean - nexthop
Private StringNetwork Id - nexthop
Resource StringId - nexthop
Resource StringType - region String
- route
Id String - List<String>
- vpc
Id String
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
published on Wednesday, Apr 29, 2026 by pulumiverse
