1. Packages
  2. Outscale Provider
  3. API Docs
  4. getRouteTables
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.getRouteTables

Explore with Pulumi AI

Provides information about route tables.

For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";

const routeTables01 = outscale.getRouteTables({
    filters: [
        {
            name: "net_ids",
            values: [
                "vpc-12345678",
                "vpc-87654321",
            ],
        },
        {
            name: "link_route_table_main",
            values: ["true"],
        },
    ],
});
Copy
import pulumi
import pulumi_outscale as outscale

route_tables01 = outscale.get_route_tables(filters=[
    {
        "name": "net_ids",
        "values": [
            "vpc-12345678",
            "vpc-87654321",
        ],
    },
    {
        "name": "link_route_table_main",
        "values": ["true"],
    },
])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetRouteTables(ctx, &outscale.GetRouteTablesArgs{
			Filters: []outscale.GetRouteTablesFilter{
				{
					Name: "net_ids",
					Values: []string{
						"vpc-12345678",
						"vpc-87654321",
					},
				},
				{
					Name: "link_route_table_main",
					Values: []string{
						"true",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var routeTables01 = Outscale.GetRouteTables.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetRouteTablesFilterInputArgs
            {
                Name = "net_ids",
                Values = new[]
                {
                    "vpc-12345678",
                    "vpc-87654321",
                },
            },
            new Outscale.Inputs.GetRouteTablesFilterInputArgs
            {
                Name = "link_route_table_main",
                Values = new[]
                {
                    "true",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetRouteTablesArgs;
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) {
        final var routeTables01 = OutscaleFunctions.getRouteTables(GetRouteTablesArgs.builder()
            .filters(            
                GetRouteTablesFilterArgs.builder()
                    .name("net_ids")
                    .values(                    
                        "vpc-12345678",
                        "vpc-87654321")
                    .build(),
                GetRouteTablesFilterArgs.builder()
                    .name("link_route_table_main")
                    .values("true")
                    .build())
            .build());

    }
}
Copy
variables:
  routeTables01:
    fn::invoke:
      function: outscale:getRouteTables
      arguments:
        filters:
          - name: net_ids
            values:
              - vpc-12345678
              - vpc-87654321
          - name: link_route_table_main
            values:
              - 'true'
Copy

Using getRouteTables

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 getRouteTables(args: GetRouteTablesArgs, opts?: InvokeOptions): Promise<GetRouteTablesResult>
function getRouteTablesOutput(args: GetRouteTablesOutputArgs, opts?: InvokeOptions): Output<GetRouteTablesResult>
Copy
def get_route_tables(filters: Optional[Sequence[GetRouteTablesFilter]] = None,
                     id: Optional[str] = None,
                     route_table_ids: Optional[Sequence[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetRouteTablesResult
def get_route_tables_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRouteTablesFilterArgs]]]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     route_table_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetRouteTablesResult]
Copy
func GetRouteTables(ctx *Context, args *GetRouteTablesArgs, opts ...InvokeOption) (*GetRouteTablesResult, error)
func GetRouteTablesOutput(ctx *Context, args *GetRouteTablesOutputArgs, opts ...InvokeOption) GetRouteTablesResultOutput
Copy

> Note: This function is named GetRouteTables in the Go SDK.

public static class GetRouteTables 
{
    public static Task<GetRouteTablesResult> InvokeAsync(GetRouteTablesArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteTablesResult> Invoke(GetRouteTablesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRouteTablesResult> getRouteTables(GetRouteTablesArgs args, InvokeOptions options)
public static Output<GetRouteTablesResult> getRouteTables(GetRouteTablesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getRouteTables:getRouteTables
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetRouteTablesFilter>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
Id string
RouteTableIds List<string>
The ID of the route table.
Filters []GetRouteTablesFilter
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
Id string
RouteTableIds []string
The ID of the route table.
filters List<GetRouteTablesFilter>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id String
routeTableIds List<String>
The ID of the route table.
filters GetRouteTablesFilter[]
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id string
routeTableIds string[]
The ID of the route table.
filters Sequence[GetRouteTablesFilter]
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id str
route_table_ids Sequence[str]
The ID of the route table.
filters List<Property Map>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id String
routeTableIds List<String>
The ID of the route table.

getRouteTables Result

The following output properties are available:

Id string
RequestId string
RouteTables List<GetRouteTablesRouteTable>
Information about one or more route tables.
Filters List<GetRouteTablesFilter>
RouteTableIds List<string>
The ID of the route table.
Id string
RequestId string
RouteTables []GetRouteTablesRouteTable
Information about one or more route tables.
Filters []GetRouteTablesFilter
RouteTableIds []string
The ID of the route table.
id String
requestId String
routeTables List<GetRouteTablesRouteTable>
Information about one or more route tables.
filters List<GetRouteTablesFilter>
routeTableIds List<String>
The ID of the route table.
id string
requestId string
routeTables GetRouteTablesRouteTable[]
Information about one or more route tables.
filters GetRouteTablesFilter[]
routeTableIds string[]
The ID of the route table.
id str
request_id str
route_tables Sequence[GetRouteTablesRouteTable]
Information about one or more route tables.
filters Sequence[GetRouteTablesFilter]
route_table_ids Sequence[str]
The ID of the route table.
id String
requestId String
routeTables List<Property Map>
Information about one or more route tables.
filters List<Property Map>
routeTableIds List<String>
The ID of the route table.

Supporting Types

GetRouteTablesFilter

Name This property is required. string
Values This property is required. List<string>
Name This property is required. string
Values This property is required. []string
name This property is required. String
values This property is required. List<String>
name This property is required. string
values This property is required. string[]
name This property is required. str
values This property is required. Sequence[str]
name This property is required. String
values This property is required. List<String>

GetRouteTablesRouteTable

LinkRouteTables This property is required. List<GetRouteTablesRouteTableLinkRouteTable>
One or more associations between the route table and Subnets.
NetId This property is required. string
The ID of the Net for the route table.
RoutePropagatingVirtualGateways This property is required. List<GetRouteTablesRouteTableRoutePropagatingVirtualGateway>
Information about virtual gateways propagating routes.
RouteTableId This property is required. string
The ID of the route table.
Routes This property is required. List<GetRouteTablesRouteTableRoute>
One or more routes in the route table.
Tags This property is required. List<GetRouteTablesRouteTableTag>
One or more tags associated with the route table.
LinkRouteTables This property is required. []GetRouteTablesRouteTableLinkRouteTable
One or more associations between the route table and Subnets.
NetId This property is required. string
The ID of the Net for the route table.
RoutePropagatingVirtualGateways This property is required. []GetRouteTablesRouteTableRoutePropagatingVirtualGateway
Information about virtual gateways propagating routes.
RouteTableId This property is required. string
The ID of the route table.
Routes This property is required. []GetRouteTablesRouteTableRoute
One or more routes in the route table.
Tags This property is required. []GetRouteTablesRouteTableTag
One or more tags associated with the route table.
linkRouteTables This property is required. List<GetRouteTablesRouteTableLinkRouteTable>
One or more associations between the route table and Subnets.
netId This property is required. String
The ID of the Net for the route table.
routePropagatingVirtualGateways This property is required. List<GetRouteTablesRouteTableRoutePropagatingVirtualGateway>
Information about virtual gateways propagating routes.
routeTableId This property is required. String
The ID of the route table.
routes This property is required. List<GetRouteTablesRouteTableRoute>
One or more routes in the route table.
tags This property is required. List<GetRouteTablesRouteTableTag>
One or more tags associated with the route table.
linkRouteTables This property is required. GetRouteTablesRouteTableLinkRouteTable[]
One or more associations between the route table and Subnets.
netId This property is required. string
The ID of the Net for the route table.
routePropagatingVirtualGateways This property is required. GetRouteTablesRouteTableRoutePropagatingVirtualGateway[]
Information about virtual gateways propagating routes.
routeTableId This property is required. string
The ID of the route table.
routes This property is required. GetRouteTablesRouteTableRoute[]
One or more routes in the route table.
tags This property is required. GetRouteTablesRouteTableTag[]
One or more tags associated with the route table.
link_route_tables This property is required. Sequence[GetRouteTablesRouteTableLinkRouteTable]
One or more associations between the route table and Subnets.
net_id This property is required. str
The ID of the Net for the route table.
route_propagating_virtual_gateways This property is required. Sequence[GetRouteTablesRouteTableRoutePropagatingVirtualGateway]
Information about virtual gateways propagating routes.
route_table_id This property is required. str
The ID of the route table.
routes This property is required. Sequence[GetRouteTablesRouteTableRoute]
One or more routes in the route table.
tags This property is required. Sequence[GetRouteTablesRouteTableTag]
One or more tags associated with the route table.
linkRouteTables This property is required. List<Property Map>
One or more associations between the route table and Subnets.
netId This property is required. String
The ID of the Net for the route table.
routePropagatingVirtualGateways This property is required. List<Property Map>
Information about virtual gateways propagating routes.
routeTableId This property is required. String
The ID of the route table.
routes This property is required. List<Property Map>
One or more routes in the route table.
tags This property is required. List<Property Map>
One or more tags associated with the route table.

GetRouteTablesRouteTableLinkRouteTable

LinkRouteTableId This property is required. string
The ID of the association between the route table and the Net or Subnet.
Main This property is required. bool
If true, the route table is the main one.
RouteTableId This property is required. string
The ID of the route table.
RouteTableToSubnetLinkId This property is required. string
SubnetId This property is required. string
The ID of the Subnet, if the route table is explicitly linked to a Subnet.
LinkRouteTableId This property is required. string
The ID of the association between the route table and the Net or Subnet.
Main This property is required. bool
If true, the route table is the main one.
RouteTableId This property is required. string
The ID of the route table.
RouteTableToSubnetLinkId This property is required. string
SubnetId This property is required. string
The ID of the Subnet, if the route table is explicitly linked to a Subnet.
linkRouteTableId This property is required. String
The ID of the association between the route table and the Net or Subnet.
main This property is required. Boolean
If true, the route table is the main one.
routeTableId This property is required. String
The ID of the route table.
routeTableToSubnetLinkId This property is required. String
subnetId This property is required. String
The ID of the Subnet, if the route table is explicitly linked to a Subnet.
linkRouteTableId This property is required. string
The ID of the association between the route table and the Net or Subnet.
main This property is required. boolean
If true, the route table is the main one.
routeTableId This property is required. string
The ID of the route table.
routeTableToSubnetLinkId This property is required. string
subnetId This property is required. string
The ID of the Subnet, if the route table is explicitly linked to a Subnet.
link_route_table_id This property is required. str
The ID of the association between the route table and the Net or Subnet.
main This property is required. bool
If true, the route table is the main one.
route_table_id This property is required. str
The ID of the route table.
route_table_to_subnet_link_id This property is required. str
subnet_id This property is required. str
The ID of the Subnet, if the route table is explicitly linked to a Subnet.
linkRouteTableId This property is required. String
The ID of the association between the route table and the Net or Subnet.
main This property is required. Boolean
If true, the route table is the main one.
routeTableId This property is required. String
The ID of the route table.
routeTableToSubnetLinkId This property is required. String
subnetId This property is required. String
The ID of the Subnet, if the route table is explicitly linked to a Subnet.

GetRouteTablesRouteTableRoute

CreationMethod This property is required. string
The method used to create the route.
DestinationIpRange This property is required. string
The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
DestinationServiceId This property is required. string
The ID of the OUTSCALE service.
GatewayId This property is required. string
The ID of the internet service or virtual gateway attached to the Net.
NatServiceId This property is required. string
The ID of a NAT service attached to the Net.
NetAccessPointId This property is required. string
The ID of the Net access point.
NetPeeringId This property is required. string
The ID of the Net peering.
NicId This property is required. string
The ID of the NIC.
State This property is required. string
The state of a route in the route table (always active).
VmAccountId This property is required. string
The account ID of the owner of the VM.
VmId This property is required. string
The ID of a VM specified in a route in the table.
CreationMethod This property is required. string
The method used to create the route.
DestinationIpRange This property is required. string
The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
DestinationServiceId This property is required. string
The ID of the OUTSCALE service.
GatewayId This property is required. string
The ID of the internet service or virtual gateway attached to the Net.
NatServiceId This property is required. string
The ID of a NAT service attached to the Net.
NetAccessPointId This property is required. string
The ID of the Net access point.
NetPeeringId This property is required. string
The ID of the Net peering.
NicId This property is required. string
The ID of the NIC.
State This property is required. string
The state of a route in the route table (always active).
VmAccountId This property is required. string
The account ID of the owner of the VM.
VmId This property is required. string
The ID of a VM specified in a route in the table.
creationMethod This property is required. String
The method used to create the route.
destinationIpRange This property is required. String
The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
destinationServiceId This property is required. String
The ID of the OUTSCALE service.
gatewayId This property is required. String
The ID of the internet service or virtual gateway attached to the Net.
natServiceId This property is required. String
The ID of a NAT service attached to the Net.
netAccessPointId This property is required. String
The ID of the Net access point.
netPeeringId This property is required. String
The ID of the Net peering.
nicId This property is required. String
The ID of the NIC.
state This property is required. String
The state of a route in the route table (always active).
vmAccountId This property is required. String
The account ID of the owner of the VM.
vmId This property is required. String
The ID of a VM specified in a route in the table.
creationMethod This property is required. string
The method used to create the route.
destinationIpRange This property is required. string
The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
destinationServiceId This property is required. string
The ID of the OUTSCALE service.
gatewayId This property is required. string
The ID of the internet service or virtual gateway attached to the Net.
natServiceId This property is required. string
The ID of a NAT service attached to the Net.
netAccessPointId This property is required. string
The ID of the Net access point.
netPeeringId This property is required. string
The ID of the Net peering.
nicId This property is required. string
The ID of the NIC.
state This property is required. string
The state of a route in the route table (always active).
vmAccountId This property is required. string
The account ID of the owner of the VM.
vmId This property is required. string
The ID of a VM specified in a route in the table.
creation_method This property is required. str
The method used to create the route.
destination_ip_range This property is required. str
The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
destination_service_id This property is required. str
The ID of the OUTSCALE service.
gateway_id This property is required. str
The ID of the internet service or virtual gateway attached to the Net.
nat_service_id This property is required. str
The ID of a NAT service attached to the Net.
net_access_point_id This property is required. str
The ID of the Net access point.
net_peering_id This property is required. str
The ID of the Net peering.
nic_id This property is required. str
The ID of the NIC.
state This property is required. str
The state of a route in the route table (always active).
vm_account_id This property is required. str
The account ID of the owner of the VM.
vm_id This property is required. str
The ID of a VM specified in a route in the table.
creationMethod This property is required. String
The method used to create the route.
destinationIpRange This property is required. String
The IP range used for the destination match, in CIDR notation (for example, 10.0.0.0/24).
destinationServiceId This property is required. String
The ID of the OUTSCALE service.
gatewayId This property is required. String
The ID of the internet service or virtual gateway attached to the Net.
natServiceId This property is required. String
The ID of a NAT service attached to the Net.
netAccessPointId This property is required. String
The ID of the Net access point.
netPeeringId This property is required. String
The ID of the Net peering.
nicId This property is required. String
The ID of the NIC.
state This property is required. String
The state of a route in the route table (always active).
vmAccountId This property is required. String
The account ID of the owner of the VM.
vmId This property is required. String
The ID of a VM specified in a route in the table.

GetRouteTablesRouteTableRoutePropagatingVirtualGateway

VirtualGatewayId This property is required. string
The ID of the virtual gateway.
VirtualGatewayId This property is required. string
The ID of the virtual gateway.
virtualGatewayId This property is required. String
The ID of the virtual gateway.
virtualGatewayId This property is required. string
The ID of the virtual gateway.
virtual_gateway_id This property is required. str
The ID of the virtual gateway.
virtualGatewayId This property is required. String
The ID of the virtual gateway.

GetRouteTablesRouteTableTag

Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
Key This property is required. string
The key of the tag, with a minimum of 1 character.
Value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.
key This property is required. string
The key of the tag, with a minimum of 1 character.
value This property is required. string
The value of the tag, between 0 and 255 characters.
key This property is required. str
The key of the tag, with a minimum of 1 character.
value This property is required. str
The value of the tag, between 0 and 255 characters.
key This property is required. String
The key of the tag, with a minimum of 1 character.
value This property is required. String
The value of the tag, between 0 and 255 characters.

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.