scaleway.network.getRoutes
Explore with Pulumi AI
Gets information about multiple VPC routes.
Using getRoutes
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 getRoutes(args: GetRoutesArgs, opts?: InvokeOptions): Promise<GetRoutesResult>
function getRoutesOutput(args: GetRoutesOutputArgs, opts?: InvokeOptions): Output<GetRoutesResult>
def get_routes(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,
tags: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRoutesResult
def get_routes_output(is_ipv6: Optional[pulumi.Input[bool]] = None,
nexthop_private_network_id: Optional[pulumi.Input[str]] = None,
nexthop_resource_id: Optional[pulumi.Input[str]] = None,
nexthop_resource_type: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoutesResult]
func GetRoutes(ctx *Context, args *GetRoutesArgs, opts ...InvokeOption) (*GetRoutesResult, error)
func GetRoutesOutput(ctx *Context, args *GetRoutesOutputArgs, opts ...InvokeOption) GetRoutesResultOutput
> Note: This function is named GetRoutes
in the Go SDK.
public static class GetRoutes
{
public static Task<GetRoutesResult> InvokeAsync(GetRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetRoutesResult> Invoke(GetRoutesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRoutesResult> getRoutes(GetRoutesArgs args, InvokeOptions options)
public static Output<GetRoutesResult> getRoutes(GetRoutesArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:network/getRoutes:getRoutes
arguments:
# arguments dictionary
The following arguments are supported:
- Is
Ipv6 bool - Routes with an IPv6 destination will be listed.
- Nexthop
Private stringNetwork Id - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- Nexthop
Resource stringId - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- Nexthop
Resource stringType - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- Region
Changes to this property will trigger replacement.
region
). The region in which the routes exist.- List<string>
- List of tags to filter for. routes with these exact tags are listed.
- Vpc
Id string - The VPC ID to filter for. routes with a similar VPC ID are listed.
- Is
Ipv6 bool - Routes with an IPv6 destination will be listed.
- Nexthop
Private stringNetwork Id - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- Nexthop
Resource stringId - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- Nexthop
Resource stringType - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- Region
Changes to this property will trigger replacement.
region
). The region in which the routes exist.- []string
- List of tags to filter for. routes with these exact tags are listed.
- Vpc
Id string - The VPC ID to filter for. routes with a similar VPC ID are listed.
- is
Ipv6 Boolean - Routes with an IPv6 destination will be listed.
- nexthop
Private StringNetwork Id - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop
Resource StringId - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop
Resource StringType - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
Changes to this property will trigger replacement.
region
). The region in which the routes exist.- List<String>
- List of tags to filter for. routes with these exact tags are listed.
- vpc
Id String - The VPC ID to filter for. routes with a similar VPC ID are listed.
- is
Ipv6 boolean - Routes with an IPv6 destination will be listed.
- nexthop
Private stringNetwork Id - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop
Resource stringId - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop
Resource stringType - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
Changes to this property will trigger replacement.
region
). The region in which the routes exist.- string[]
- List of tags to filter for. routes with these exact tags are listed.
- vpc
Id string - The VPC ID to filter for. routes with a similar VPC ID are listed.
- is_
ipv6 bool - Routes with an IPv6 destination will be listed.
- nexthop_
private_ strnetwork_ id - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop_
resource_ strid - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop_
resource_ strtype - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
Changes to this property will trigger replacement.
region
). The region in which the routes exist.- Sequence[str]
- List of tags to filter for. routes with these exact tags are listed.
- vpc_
id str - The VPC ID to filter for. routes with a similar VPC ID are listed.
- is
Ipv6 Boolean - Routes with an IPv6 destination will be listed.
- nexthop
Private StringNetwork Id - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop
Resource StringId - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop
Resource StringType - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
Changes to this property will trigger replacement.
region
). The region in which the routes exist.- List<String>
- List of tags to filter for. routes with these exact tags are listed.
- vpc
Id String - The VPC ID to filter for. routes with a similar VPC ID are listed.
getRoutes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Routes
List<Pulumiverse.
Scaleway. Network. Outputs. Get Routes Route> - List of retrieved routes
- Is
Ipv6 bool - Nexthop
Private stringNetwork Id - Nexthop
Resource stringId - Nexthop
Resource stringType - List<string>
- Vpc
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Routes
[]Get
Routes Route - List of retrieved routes
- Is
Ipv6 bool - Nexthop
Private stringNetwork Id - Nexthop
Resource stringId - Nexthop
Resource stringType - []string
- Vpc
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- routes
List<Get
Routes Route> - List of retrieved routes
- is
Ipv6 Boolean - nexthop
Private StringNetwork Id - nexthop
Resource StringId - nexthop
Resource StringType - List<String>
- vpc
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- routes
Get
Routes Route[] - List of retrieved routes
- is
Ipv6 boolean - nexthop
Private stringNetwork Id - nexthop
Resource stringId - nexthop
Resource stringType - string[]
- vpc
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- routes
Sequence[Get
Routes Route] - List of retrieved routes
- is_
ipv6 bool - nexthop_
private_ strnetwork_ id - nexthop_
resource_ strid - nexthop_
resource_ strtype - Sequence[str]
- vpc_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- routes List<Property Map>
- List of retrieved routes
- is
Ipv6 Boolean - nexthop
Private StringNetwork Id - nexthop
Resource StringId - nexthop
Resource StringType - List<String>
- vpc
Id String
Supporting Types
GetRoutesRoute
- Created
At This property is required. string - The date on which the route was created (RFC 3339 format).
- Description
This property is required. string - The description of the route.
- Destination
This property is required. string - The destination IP or IP range of the route.
- Id
This property is required. string The ID of the route.
Important: route IDs are regional, which means they are of the form
{region}/{id}
, e.g. `fr-par/11111111-1111-1111-1111-111111111111- Nexthop
Ip This property is required. string - The IP of the route's next hop.
- Nexthop
Name This property is required. string - The name of the route's next hop.
- Nexthop
Private Network Id This property is required. string - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- Nexthop
Resource Id This property is required. string - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- Nexthop
Resource Type This property is required. string - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- Region
This property is required. string region
). The region in which the routes exist.This property is required. List<string>- List of tags to filter for. routes with these exact tags are listed.
- Vpc
Id This property is required. string - The VPC ID to filter for. routes with a similar VPC ID are listed.
- Created
At This property is required. string - The date on which the route was created (RFC 3339 format).
- Description
This property is required. string - The description of the route.
- Destination
This property is required. string - The destination IP or IP range of the route.
- Id
This property is required. string The ID of the route.
Important: route IDs are regional, which means they are of the form
{region}/{id}
, e.g. `fr-par/11111111-1111-1111-1111-111111111111- Nexthop
Ip This property is required. string - The IP of the route's next hop.
- Nexthop
Name This property is required. string - The name of the route's next hop.
- Nexthop
Private Network Id This property is required. string - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- Nexthop
Resource Id This property is required. string - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- Nexthop
Resource Type This property is required. string - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- Region
This property is required. string region
). The region in which the routes exist.This property is required. []string- List of tags to filter for. routes with these exact tags are listed.
- Vpc
Id This property is required. string - The VPC ID to filter for. routes with a similar VPC ID are listed.
- created
At This property is required. String - The date on which the route was created (RFC 3339 format).
- description
This property is required. String - The description of the route.
- destination
This property is required. String - The destination IP or IP range of the route.
- id
This property is required. String The ID of the route.
Important: route IDs are regional, which means they are of the form
{region}/{id}
, e.g. `fr-par/11111111-1111-1111-1111-111111111111- nexthop
Ip This property is required. String - The IP of the route's next hop.
- nexthop
Name This property is required. String - The name of the route's next hop.
- nexthop
Private Network Id This property is required. String - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop
Resource Id This property is required. String - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop
Resource Type This property is required. String - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
This property is required. String region
). The region in which the routes exist.This property is required. List<String>- List of tags to filter for. routes with these exact tags are listed.
- vpc
Id This property is required. String - The VPC ID to filter for. routes with a similar VPC ID are listed.
- created
At This property is required. string - The date on which the route was created (RFC 3339 format).
- description
This property is required. string - The description of the route.
- destination
This property is required. string - The destination IP or IP range of the route.
- id
This property is required. string The ID of the route.
Important: route IDs are regional, which means they are of the form
{region}/{id}
, e.g. `fr-par/11111111-1111-1111-1111-111111111111- nexthop
Ip This property is required. string - The IP of the route's next hop.
- nexthop
Name This property is required. string - The name of the route's next hop.
- nexthop
Private Network Id This property is required. string - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop
Resource Id This property is required. string - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop
Resource Type This property is required. string - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
This property is required. string region
). The region in which the routes exist.This property is required. string[]- List of tags to filter for. routes with these exact tags are listed.
- vpc
Id This property is required. string - The VPC ID to filter for. routes with a similar VPC ID are listed.
- created_
at This property is required. str - The date on which the route was created (RFC 3339 format).
- description
This property is required. str - The description of the route.
- destination
This property is required. str - The destination IP or IP range of the route.
- id
This property is required. str The ID of the route.
Important: route IDs are regional, which means they are of the form
{region}/{id}
, e.g. `fr-par/11111111-1111-1111-1111-111111111111- nexthop_
ip This property is required. str - The IP of the route's next hop.
- nexthop_
name This property is required. str - The name of the route's next hop.
- nexthop_
private_ network_ id This property is required. str - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop_
resource_ id This property is required. str - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop_
resource_ type This property is required. str - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
This property is required. str region
). The region in which the routes exist.This property is required. Sequence[str]- List of tags to filter for. routes with these exact tags are listed.
- vpc_
id This property is required. str - The VPC ID to filter for. routes with a similar VPC ID are listed.
- created
At This property is required. String - The date on which the route was created (RFC 3339 format).
- description
This property is required. String - The description of the route.
- destination
This property is required. String - The destination IP or IP range of the route.
- id
This property is required. String The ID of the route.
Important: route IDs are regional, which means they are of the form
{region}/{id}
, e.g. `fr-par/11111111-1111-1111-1111-111111111111- nexthop
Ip This property is required. String - The IP of the route's next hop.
- nexthop
Name This property is required. String - The name of the route's next hop.
- nexthop
Private Network Id This property is required. String - The next hop private network ID to filter for. routes with a similar next hop private network ID are listed.
- nexthop
Resource Id This property is required. String - The next hop resource ID to filter for. routes with a similar next hop resource ID are listed.
- nexthop
Resource Type This property is required. String - The next hop resource type to filter for. routes with a similar next hop resource type are listed.
- region
This property is required. String region
). The region in which the routes exist.This property is required. List<String>- List of tags to filter for. routes with these exact tags are listed.
- vpc
Id This property is required. String - The VPC ID to filter for. routes with a similar VPC ID are listed.
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scaleway
Terraform Provider.