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"],
},
],
});
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"],
},
])
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
})
}
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",
},
},
},
});
});
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());
}
}
variables:
routeTables01:
fn::invoke:
function: outscale:getRouteTables
arguments:
filters:
- name: net_ids
values:
- vpc-12345678
- vpc-87654321
- name: link_route_table_main
values:
- 'true'
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>
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]
func GetRouteTables(ctx *Context, args *GetRouteTablesArgs, opts ...InvokeOption) (*GetRouteTablesResult, error)
func GetRouteTablesOutput(ctx *Context, args *GetRouteTablesOutputArgs, opts ...InvokeOption) GetRouteTablesResultOutput
> 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)
}
public static CompletableFuture<GetRouteTablesResult> getRouteTables(GetRouteTablesArgs args, InvokeOptions options)
public static Output<GetRouteTablesResult> getRouteTables(GetRouteTablesArgs args, InvokeOptions options)
fn::invoke:
function: outscale:index/getRouteTables:getRouteTables
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Route Tables 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 List<string>Ids - The ID of the route table.
- Filters
[]Get
Route Tables 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 []stringIds - The ID of the route table.
- filters
List<Get
Route Tables 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 List<String>Ids - The ID of the route table.
- filters
Get
Route Tables 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 string[]Ids - The ID of the route table.
- filters
Sequence[Get
Route Tables 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_ Sequence[str]ids - 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 List<String>Ids - The ID of the route table.
getRouteTables Result
The following output properties are available:
- Id string
- Request
Id string - Route
Tables List<GetRoute Tables Route Table> - Information about one or more route tables.
- Filters
List<Get
Route Tables Filter> - Route
Table List<string>Ids - The ID of the route table.
- Id string
- Request
Id string - Route
Tables []GetRoute Tables Route Table - Information about one or more route tables.
- Filters
[]Get
Route Tables Filter - Route
Table []stringIds - The ID of the route table.
- id String
- request
Id String - route
Tables List<GetRoute Tables Route Table> - Information about one or more route tables.
- filters
List<Get
Route Tables Filter> - route
Table List<String>Ids - The ID of the route table.
- id string
- request
Id string - route
Tables GetRoute Tables Route Table[] - Information about one or more route tables.
- filters
Get
Route Tables Filter[] - route
Table string[]Ids - The ID of the route table.
- id str
- request_
id str - route_
tables Sequence[GetRoute Tables Route Table] - Information about one or more route tables.
- filters
Sequence[Get
Route Tables Filter] - route_
table_ Sequence[str]ids - The ID of the route table.
- id String
- request
Id String - route
Tables List<Property Map> - Information about one or more route tables.
- filters List<Property Map>
- route
Table List<String>Ids - The ID of the route table.
Supporting Types
GetRouteTablesFilter
GetRouteTablesRouteTable
- Link
Route Tables This property is required. List<GetRoute Tables Route Table Link Route Table> - One or more associations between the route table and Subnets.
- Net
Id This property is required. string - The ID of the Net for the route table.
- Route
Propagating Virtual Gateways This property is required. List<GetRoute Tables Route Table Route Propagating Virtual Gateway> - Information about virtual gateways propagating routes.
- Route
Table Id This property is required. string - The ID of the route table.
- Routes
This property is required. List<GetRoute Tables Route Table Route> - One or more routes in the route table.
This property is required. List<GetRoute Tables Route Table Tag> - One or more tags associated with the route table.
- Link
Route Tables This property is required. []GetRoute Tables Route Table Link Route Table - One or more associations between the route table and Subnets.
- Net
Id This property is required. string - The ID of the Net for the route table.
- Route
Propagating Virtual Gateways This property is required. []GetRoute Tables Route Table Route Propagating Virtual Gateway - Information about virtual gateways propagating routes.
- Route
Table Id This property is required. string - The ID of the route table.
- Routes
This property is required. []GetRoute Tables Route Table Route - One or more routes in the route table.
This property is required. []GetRoute Tables Route Table Tag - One or more tags associated with the route table.
- link
Route Tables This property is required. List<GetRoute Tables Route Table Link Route Table> - One or more associations between the route table and Subnets.
- net
Id This property is required. String - The ID of the Net for the route table.
- route
Propagating Virtual Gateways This property is required. List<GetRoute Tables Route Table Route Propagating Virtual Gateway> - Information about virtual gateways propagating routes.
- route
Table Id This property is required. String - The ID of the route table.
- routes
This property is required. List<GetRoute Tables Route Table Route> - One or more routes in the route table.
This property is required. List<GetRoute Tables Route Table Tag> - One or more tags associated with the route table.
- link
Route Tables This property is required. GetRoute Tables Route Table Link Route Table[] - One or more associations between the route table and Subnets.
- net
Id This property is required. string - The ID of the Net for the route table.
- route
Propagating Virtual Gateways This property is required. GetRoute Tables Route Table Route Propagating Virtual Gateway[] - Information about virtual gateways propagating routes.
- route
Table Id This property is required. string - The ID of the route table.
- routes
This property is required. GetRoute Tables Route Table Route[] - One or more routes in the route table.
This property is required. GetRoute Tables Route Table Tag[] - One or more tags associated with the route table.
- link_
route_ tables This property is required. Sequence[GetRoute Tables Route Table Link Route Table] - 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[GetRoute Tables Route Table Route Propagating Virtual Gateway] - 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[GetRoute Tables Route Table Route] - One or more routes in the route table.
This property is required. Sequence[GetRoute Tables Route Table Tag] - One or more tags associated with the route table.
- link
Route Tables This property is required. List<Property Map> - One or more associations between the route table and Subnets.
- net
Id This property is required. String - The ID of the Net for the route table.
- route
Propagating Virtual Gateways This property is required. List<Property Map> - Information about virtual gateways propagating routes.
- route
Table Id 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.
This property is required. List<Property Map>- One or more tags associated with the route table.
GetRouteTablesRouteTableLinkRouteTable
- Link
Route Table Id 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.
- Route
Table Id This property is required. string - The ID of the route table.
- Route
Table To Subnet Link Id This property is required. string - Subnet
Id 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. 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.
- Route
Table Id This property is required. string - The ID of the route table.
- Route
Table To Subnet Link Id This property is required. string - Subnet
Id 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. 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.
- route
Table Id This property is required. String - The ID of the route table.
- route
Table To Subnet Link Id This property is required. String - subnet
Id 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. 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.
- route
Table Id This property is required. string - The ID of the route table.
- route
Table To Subnet Link Id This property is required. string - subnet
Id 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.
- link
Route Table Id 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.
- route
Table Id This property is required. String - The ID of the route table.
- route
Table To Subnet Link Id This property is required. String - subnet
Id This property is required. String - The ID of the Subnet, if the route table is explicitly linked to a Subnet.
GetRouteTablesRouteTableRoute
- Creation
Method This property is required. string - The method used to create the route.
- Destination
Ip Range This property is required. string - 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. string - The ID of the OUTSCALE service.
- Gateway
Id This property is required. string - The ID of the internet service or virtual gateway attached to the Net.
- Nat
Service Id This property is required. string - The ID of a NAT service attached to the Net.
- Net
Access Point Id This property is required. string - The ID of the Net access point.
- Net
Peering Id This property is required. string - The ID of the Net peering.
- Nic
Id 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
). - Vm
Account Id This property is required. string - The account ID of the owner of the VM.
- Vm
Id This property is required. string - The ID of a VM specified in a route in the table.
- Creation
Method This property is required. string - The method used to create the route.
- Destination
Ip Range This property is required. string - 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. string - The ID of the OUTSCALE service.
- Gateway
Id This property is required. string - The ID of the internet service or virtual gateway attached to the Net.
- Nat
Service Id This property is required. string - The ID of a NAT service attached to the Net.
- Net
Access Point Id This property is required. string - The ID of the Net access point.
- Net
Peering Id This property is required. string - The ID of the Net peering.
- Nic
Id 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
). - Vm
Account Id This property is required. string - The account ID of the owner of the VM.
- Vm
Id This property is required. string - The ID of a VM specified in a route in the table.
- creation
Method This property is required. String - The method used to create the route.
- destination
Ip Range This property is required. String - 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. String - The ID of the OUTSCALE service.
- gateway
Id This property is required. String - The ID of the internet service or virtual gateway attached to the Net.
- nat
Service Id This property is required. String - The ID of a NAT service attached to the Net.
- net
Access Point Id This property is required. String - The ID of the Net access point.
- net
Peering Id This property is required. String - The ID of the Net peering.
- nic
Id 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
). - vm
Account Id This property is required. String - The account ID of the owner of the VM.
- vm
Id This property is required. String - The ID of a VM specified in a route in the table.
- creation
Method This property is required. string - The method used to create the route.
- destination
Ip Range This property is required. string - 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. string - The ID of the OUTSCALE service.
- gateway
Id This property is required. string - The ID of the internet service or virtual gateway attached to the Net.
- nat
Service Id This property is required. string - The ID of a NAT service attached to the Net.
- net
Access Point Id This property is required. string - The ID of the Net access point.
- net
Peering Id This property is required. string - The ID of the Net peering.
- nic
Id 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
). - vm
Account Id This property is required. string - The account ID of the owner of the VM.
- vm
Id 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.
- creation
Method This property is required. String - The method used to create the route.
- destination
Ip Range This property is required. String - 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. String - The ID of the OUTSCALE service.
- gateway
Id This property is required. String - The ID of the internet service or virtual gateway attached to the Net.
- nat
Service Id This property is required. String - The ID of a NAT service attached to the Net.
- net
Access Point Id This property is required. String - The ID of the Net access point.
- net
Peering Id This property is required. String - The ID of the Net peering.
- nic
Id 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
). - vm
Account Id This property is required. String - The account ID of the owner of the VM.
- vm
Id This property is required. String - The ID of a VM specified in a route in the table.
GetRouteTablesRouteTableRoutePropagatingVirtualGateway
- Virtual
Gateway Id This property is required. string - The ID of the virtual gateway.
- Virtual
Gateway Id This property is required. string - The ID of the virtual gateway.
- virtual
Gateway Id This property is required. String - The ID of the virtual gateway.
- virtual
Gateway Id 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.
- virtual
Gateway Id This property is required. String - The ID of the virtual gateway.
GetRouteTablesRouteTableTag
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the
outscale
Terraform Provider.