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

outscale.getRouteTable

Explore with Pulumi AI

Provides information about a route table.

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 routeTable01 = outscale.getRouteTable({
    filters: [{
        name: "route_table_ids",
        values: ["rtb-12345678"],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

route_table01 = outscale.get_route_table(filters=[{
    "name": "route_table_ids",
    "values": ["rtb-12345678"],
}])
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.LookupRouteTable(ctx, &outscale.LookupRouteTableArgs{
			Filters: []outscale.GetRouteTableFilter{
				{
					Name: "route_table_ids",
					Values: []string{
						"rtb-12345678",
					},
				},
			},
		}, 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 routeTable01 = Outscale.GetRouteTable.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetRouteTableFilterInputArgs
            {
                Name = "route_table_ids",
                Values = new[]
                {
                    "rtb-12345678",
                },
            },
        },
    });

});
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.GetRouteTableArgs;
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 routeTable01 = OutscaleFunctions.getRouteTable(GetRouteTableArgs.builder()
            .filters(GetRouteTableFilterArgs.builder()
                .name("route_table_ids")
                .values("rtb-12345678")
                .build())
            .build());

    }
}
Copy
variables:
  routeTable01:
    fn::invoke:
      function: outscale:getRouteTable
      arguments:
        filters:
          - name: route_table_ids
            values:
              - rtb-12345678
Copy

Using getRouteTable

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 getRouteTable(args: GetRouteTableArgs, opts?: InvokeOptions): Promise<GetRouteTableResult>
function getRouteTableOutput(args: GetRouteTableOutputArgs, opts?: InvokeOptions): Output<GetRouteTableResult>
Copy
def get_route_table(filters: Optional[Sequence[GetRouteTableFilter]] = None,
                    id: Optional[str] = None,
                    route_table_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetRouteTableResult
def get_route_table_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetRouteTableFilterArgs]]]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    route_table_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetRouteTableResult]
Copy
func LookupRouteTable(ctx *Context, args *LookupRouteTableArgs, opts ...InvokeOption) (*LookupRouteTableResult, error)
func LookupRouteTableOutput(ctx *Context, args *LookupRouteTableOutputArgs, opts ...InvokeOption) LookupRouteTableResultOutput
Copy

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

public static class GetRouteTable 
{
    public static Task<GetRouteTableResult> InvokeAsync(GetRouteTableArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteTableResult> Invoke(GetRouteTableInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRouteTableResult> getRouteTable(GetRouteTableArgs args, InvokeOptions options)
public static Output<GetRouteTableResult> getRouteTable(GetRouteTableArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getRouteTable:getRouteTable
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetRouteTableFilter>
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
RouteTableId string
The ID of the route table.
Filters []GetRouteTableFilter
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
RouteTableId string
The ID of the route table.
filters List<GetRouteTableFilter>
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
routeTableId String
The ID of the route table.
filters GetRouteTableFilter[]
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
routeTableId string
The ID of the route table.
filters Sequence[GetRouteTableFilter]
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_id 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
routeTableId String
The ID of the route table.

getRouteTable Result

The following output properties are available:

Id string
LinkRouteTables List<GetRouteTableLinkRouteTable>
One or more associations between the route table and Subnets.
NetId string
The ID of the Net for the route table.
RequestId string
RoutePropagatingVirtualGateways List<GetRouteTableRoutePropagatingVirtualGateway>
Information about virtual gateways propagating routes.
RouteTableId string
The ID of the route table.
Routes List<GetRouteTableRoute>
One or more routes in the route table.
Tags List<GetRouteTableTag>
One or more tags associated with the route table.
Filters List<GetRouteTableFilter>
Id string
LinkRouteTables []GetRouteTableLinkRouteTable
One or more associations between the route table and Subnets.
NetId string
The ID of the Net for the route table.
RequestId string
RoutePropagatingVirtualGateways []GetRouteTableRoutePropagatingVirtualGateway
Information about virtual gateways propagating routes.
RouteTableId string
The ID of the route table.
Routes []GetRouteTableRoute
One or more routes in the route table.
Tags []GetRouteTableTag
One or more tags associated with the route table.
Filters []GetRouteTableFilter
id String
linkRouteTables List<GetRouteTableLinkRouteTable>
One or more associations between the route table and Subnets.
netId String
The ID of the Net for the route table.
requestId String
routePropagatingVirtualGateways List<GetRouteTableRoutePropagatingVirtualGateway>
Information about virtual gateways propagating routes.
routeTableId String
The ID of the route table.
routes List<GetRouteTableRoute>
One or more routes in the route table.
tags List<GetRouteTableTag>
One or more tags associated with the route table.
filters List<GetRouteTableFilter>
id string
linkRouteTables GetRouteTableLinkRouteTable[]
One or more associations between the route table and Subnets.
netId string
The ID of the Net for the route table.
requestId string
routePropagatingVirtualGateways GetRouteTableRoutePropagatingVirtualGateway[]
Information about virtual gateways propagating routes.
routeTableId string
The ID of the route table.
routes GetRouteTableRoute[]
One or more routes in the route table.
tags GetRouteTableTag[]
One or more tags associated with the route table.
filters GetRouteTableFilter[]
id str
link_route_tables Sequence[GetRouteTableLinkRouteTable]
One or more associations between the route table and Subnets.
net_id str
The ID of the Net for the route table.
request_id str
route_propagating_virtual_gateways Sequence[GetRouteTableRoutePropagatingVirtualGateway]
Information about virtual gateways propagating routes.
route_table_id str
The ID of the route table.
routes Sequence[GetRouteTableRoute]
One or more routes in the route table.
tags Sequence[GetRouteTableTag]
One or more tags associated with the route table.
filters Sequence[GetRouteTableFilter]
id String
linkRouteTables List<Property Map>
One or more associations between the route table and Subnets.
netId String
The ID of the Net for the route table.
requestId String
routePropagatingVirtualGateways List<Property Map>
Information about virtual gateways propagating routes.
routeTableId String
The ID of the route table.
routes List<Property Map>
One or more routes in the route table.
tags List<Property Map>
One or more tags associated with the route table.
filters List<Property Map>

Supporting Types

GetRouteTableFilter

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>

GetRouteTableLinkRouteTable

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.

GetRouteTableRoute

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.

GetRouteTableRoutePropagatingVirtualGateway

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.

GetRouteTableTag

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.