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"],
    }],
});
import pulumi
import pulumi_outscale as outscale
route_table01 = outscale.get_route_table(filters=[{
    "name": "route_table_ids",
    "values": ["rtb-12345678"],
}])
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
	})
}
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",
                },
            },
        },
    });
});
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());
    }
}
variables:
  routeTable01:
    fn::invoke:
      function: outscale:getRouteTable
      arguments:
        filters:
          - name: route_table_ids
            values:
              - rtb-12345678
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>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]func LookupRouteTable(ctx *Context, args *LookupRouteTableArgs, opts ...InvokeOption) (*LookupRouteTableResult, error)
func LookupRouteTableOutput(ctx *Context, args *LookupRouteTableOutputArgs, opts ...InvokeOption) LookupRouteTableResultOutput> 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)
}public static CompletableFuture<GetRouteTableResult> getRouteTable(GetRouteTableArgs args, InvokeOptions options)
public static Output<GetRouteTableResult> getRouteTable(GetRouteTableArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getRouteTable:getRouteTable
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Route Table Filter>  - 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
 - Route
Table stringId  - The ID of the route table.
 
- Filters
[]Get
Route Table Filter  - 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
 - Route
Table stringId  - The ID of the route table.
 
- filters
List<Get
Route Table Filter>  - 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
 - route
Table StringId  - The ID of the route table.
 
- filters
Get
Route Table Filter[]  - 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
 - route
Table stringId  - The ID of the route table.
 
- filters
Sequence[Get
Route Table Filter]  - 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_ strid  - 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
 - route
Table StringId  - The ID of the route table.
 
getRouteTable Result
The following output properties are available:
- Id string
 - Link
Route List<GetTables Route Table Link Route Table>  - One or more associations between the route table and Subnets.
 - Net
Id string - The ID of the Net for the route table.
 - Request
Id string - Route
Propagating List<GetVirtual Gateways Route Table Route Propagating Virtual Gateway>  - Information about virtual gateways propagating routes.
 - Route
Table stringId  - The ID of the route table.
 - Routes
List<Get
Route Table Route>  - One or more routes in the route table.
 - 
List<Get
Route Table Tag>  - One or more tags associated with the route table.
 - Filters
List<Get
Route Table Filter>  
- Id string
 - Link
Route []GetTables Route Table Link Route Table  - One or more associations between the route table and Subnets.
 - Net
Id string - The ID of the Net for the route table.
 - Request
Id string - Route
Propagating []GetVirtual Gateways Route Table Route Propagating Virtual Gateway  - Information about virtual gateways propagating routes.
 - Route
Table stringId  - The ID of the route table.
 - Routes
[]Get
Route Table Route  - One or more routes in the route table.
 - 
[]Get
Route Table Tag  - One or more tags associated with the route table.
 - Filters
[]Get
Route Table Filter  
- id String
 - link
Route List<GetTables Route Table Link Route Table>  - One or more associations between the route table and Subnets.
 - net
Id String - The ID of the Net for the route table.
 - request
Id String - route
Propagating List<GetVirtual Gateways Route Table Route Propagating Virtual Gateway>  - Information about virtual gateways propagating routes.
 - route
Table StringId  - The ID of the route table.
 - routes
List<Get
Route Table Route>  - One or more routes in the route table.
 - 
List<Get
Route Table Tag>  - One or more tags associated with the route table.
 - filters
List<Get
Route Table Filter>  
- id string
 - link
Route GetTables Route Table Link Route Table[]  - One or more associations between the route table and Subnets.
 - net
Id string - The ID of the Net for the route table.
 - request
Id string - route
Propagating GetVirtual Gateways Route Table Route Propagating Virtual Gateway[]  - Information about virtual gateways propagating routes.
 - route
Table stringId  - The ID of the route table.
 - routes
Get
Route Table Route[]  - One or more routes in the route table.
 - 
Get
Route Table Tag[]  - One or more tags associated with the route table.
 - filters
Get
Route Table Filter[]  
- id str
 - link_
route_ Sequence[Gettables Route Table Link Route Table]  - 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_ Sequence[Getvirtual_ gateways Route Table Route Propagating Virtual Gateway]  - Information about virtual gateways propagating routes.
 - route_
table_ strid  - The ID of the route table.
 - routes
Sequence[Get
Route Table Route]  - One or more routes in the route table.
 - 
Sequence[Get
Route Table Tag]  - One or more tags associated with the route table.
 - filters
Sequence[Get
Route Table Filter]  
- id String
 - link
Route List<Property Map>Tables  - One or more associations between the route table and Subnets.
 - net
Id String - The ID of the Net for the route table.
 - request
Id String - route
Propagating List<Property Map>Virtual Gateways  - Information about virtual gateways propagating routes.
 - route
Table StringId  - The ID of the route table.
 - routes List<Property Map>
 - One or more routes in the route table.
 - List<Property Map>
 - One or more tags associated with the route table.
 - filters List<Property Map>
 
Supporting Types
GetRouteTableFilter   
GetRouteTableLinkRouteTable     
- Link
Route stringTable Id  - The ID of the association between the route table and the Net or Subnet.
 - Main bool
 - If true, the route table is the main one.
 - Route
Table stringId  - The ID of the route table.
 - Route
Table stringTo Subnet Link Id  - Subnet
Id string - The ID of the Subnet, if the route table is explicitly linked to a Subnet.
 
- Link
Route stringTable Id  - The ID of the association between the route table and the Net or Subnet.
 - Main bool
 - If true, the route table is the main one.
 - Route
Table stringId  - The ID of the route table.
 - Route
Table stringTo Subnet Link Id  - Subnet
Id string - The ID of the Subnet, if the route table is explicitly linked to a Subnet.
 
- link
Route StringTable Id  - The ID of the association between the route table and the Net or Subnet.
 - main Boolean
 - If true, the route table is the main one.
 - route
Table StringId  - The ID of the route table.
 - route
Table StringTo Subnet Link Id  - subnet
Id String - The ID of the Subnet, if the route table is explicitly linked to a Subnet.
 
- link
Route stringTable Id  - The ID of the association between the route table and the Net or Subnet.
 - main boolean
 - If true, the route table is the main one.
 - route
Table stringId  - The ID of the route table.
 - route
Table stringTo Subnet Link Id  - subnet
Id string - The ID of the Subnet, if the route table is explicitly linked to a Subnet.
 
- link_
route_ strtable_ id  - The ID of the association between the route table and the Net or Subnet.
 - main bool
 - If true, the route table is the main one.
 - route_
table_ strid  - The ID of the route table.
 - route_
table_ strto_ subnet_ link_ id  - subnet_
id str - The ID of the Subnet, if the route table is explicitly linked to a Subnet.
 
- link
Route StringTable Id  - The ID of the association between the route table and the Net or Subnet.
 - main Boolean
 - If true, the route table is the main one.
 - route
Table StringId  - The ID of the route table.
 - route
Table StringTo Subnet Link Id  - subnet
Id String - The ID of the Subnet, if the route table is explicitly linked to a Subnet.
 
GetRouteTableRoute   
- Creation
Method string - The method used to create the route.
 - Destination
Ip stringRange  - The IP range used for the destination match, in CIDR notation (for example, 
10.0.0.0/24). - Destination
Service stringId  - The ID of the OUTSCALE service.
 - Gateway
Id string - The ID of the internet service or virtual gateway attached to the Net.
 - Nat
Service stringId  - The ID of a NAT service attached to the Net.
 - Net
Access stringPoint Id  - The ID of the Net access point.
 - Net
Peering stringId  - The ID of the Net peering.
 - Nic
Id string - The ID of the NIC.
 - State string
 - The state of a route in the route table (always 
active). - Vm
Account stringId  - The account ID of the owner of the VM.
 - Vm
Id string - The ID of a VM specified in a route in the table.
 
- Creation
Method string - The method used to create the route.
 - Destination
Ip stringRange  - The IP range used for the destination match, in CIDR notation (for example, 
10.0.0.0/24). - Destination
Service stringId  - The ID of the OUTSCALE service.
 - Gateway
Id string - The ID of the internet service or virtual gateway attached to the Net.
 - Nat
Service stringId  - The ID of a NAT service attached to the Net.
 - Net
Access stringPoint Id  - The ID of the Net access point.
 - Net
Peering stringId  - The ID of the Net peering.
 - Nic
Id string - The ID of the NIC.
 - State string
 - The state of a route in the route table (always 
active). - Vm
Account stringId  - The account ID of the owner of the VM.
 - Vm
Id string - The ID of a VM specified in a route in the table.
 
- creation
Method String - The method used to create the route.
 - destination
Ip StringRange  - The IP range used for the destination match, in CIDR notation (for example, 
10.0.0.0/24). - destination
Service StringId  - The ID of the OUTSCALE service.
 - gateway
Id String - The ID of the internet service or virtual gateway attached to the Net.
 - nat
Service StringId  - The ID of a NAT service attached to the Net.
 - net
Access StringPoint Id  - The ID of the Net access point.
 - net
Peering StringId  - The ID of the Net peering.
 - nic
Id String - The ID of the NIC.
 - state String
 - The state of a route in the route table (always 
active). - vm
Account StringId  - The account ID of the owner of the VM.
 - vm
Id String - The ID of a VM specified in a route in the table.
 
- creation
Method string - The method used to create the route.
 - destination
Ip stringRange  - The IP range used for the destination match, in CIDR notation (for example, 
10.0.0.0/24). - destination
Service stringId  - The ID of the OUTSCALE service.
 - gateway
Id string - The ID of the internet service or virtual gateway attached to the Net.
 - nat
Service stringId  - The ID of a NAT service attached to the Net.
 - net
Access stringPoint Id  - The ID of the Net access point.
 - net
Peering stringId  - The ID of the Net peering.
 - nic
Id string - The ID of the NIC.
 - state string
 - The state of a route in the route table (always 
active). - vm
Account stringId  - The account ID of the owner of the VM.
 - vm
Id string - The ID of a VM specified in a route in the table.
 
- creation_
method str - The method used to create the route.
 - destination_
ip_ strrange  - The IP range used for the destination match, in CIDR notation (for example, 
10.0.0.0/24). - destination_
service_ strid  - The ID of the OUTSCALE service.
 - gateway_
id str - The ID of the internet service or virtual gateway attached to the Net.
 - nat_
service_ strid  - The ID of a NAT service attached to the Net.
 - net_
access_ strpoint_ id  - The ID of the Net access point.
 - net_
peering_ strid  - The ID of the Net peering.
 - nic_
id str - The ID of the NIC.
 - state str
 - The state of a route in the route table (always 
active). - vm_
account_ strid  - The account ID of the owner of the VM.
 - vm_
id str - The ID of a VM specified in a route in the table.
 
- creation
Method String - The method used to create the route.
 - destination
Ip StringRange  - The IP range used for the destination match, in CIDR notation (for example, 
10.0.0.0/24). - destination
Service StringId  - The ID of the OUTSCALE service.
 - gateway
Id String - The ID of the internet service or virtual gateway attached to the Net.
 - nat
Service StringId  - The ID of a NAT service attached to the Net.
 - net
Access StringPoint Id  - The ID of the Net access point.
 - net
Peering StringId  - The ID of the Net peering.
 - nic
Id String - The ID of the NIC.
 - state String
 - The state of a route in the route table (always 
active). - vm
Account StringId  - The account ID of the owner of the VM.
 - vm
Id String - The ID of a VM specified in a route in the table.
 
GetRouteTableRoutePropagatingVirtualGateway      
- Virtual
Gateway stringId  - The ID of the virtual gateway.
 
- Virtual
Gateway stringId  - The ID of the virtual gateway.
 
- virtual
Gateway StringId  - The ID of the virtual gateway.
 
- virtual
Gateway stringId  - The ID of the virtual gateway.
 
- virtual_
gateway_ strid  - The ID of the virtual gateway.
 
- virtual
Gateway StringId  - The ID of the virtual gateway.
 
GetRouteTableTag   
Package Details
- Repository
 - outscale outscale/terraform-provider-outscale
 - License
 - Notes
 - This Pulumi package is based on the 
outscaleTerraform Provider.