Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of route tables
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.vpc.getRouteTables({
ids: [
"vtb-274e19skkuhog7fap8u4i8ird",
"vtb-2744hslq5b7r47fap8tjomgnj",
],
routeTableName: "vpc-fast",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.get_route_tables(ids=[
"vtb-274e19skkuhog7fap8u4i8ird",
"vtb-2744hslq5b7r47fap8tjomgnj",
],
route_table_name="vpc-fast")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.GetRouteTables(ctx, &vpc.GetRouteTablesArgs{
Ids: []string{
"vtb-274e19skkuhog7fap8u4i8ird",
"vtb-2744hslq5b7r47fap8tjomgnj",
},
RouteTableName: pulumi.StringRef("vpc-fast"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Vpc.GetRouteTables.Invoke(new()
{
Ids = new[]
{
"vtb-274e19skkuhog7fap8u4i8ird",
"vtb-2744hslq5b7r47fap8tjomgnj",
},
RouteTableName = "vpc-fast",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc.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 default = VpcFunctions.getRouteTables(GetRouteTablesArgs.builder()
.ids(
"vtb-274e19skkuhog7fap8u4i8ird",
"vtb-2744hslq5b7r47fap8tjomgnj")
.routeTableName("vpc-fast")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:vpc:getRouteTables
Arguments:
ids:
- vtb-274e19skkuhog7fap8u4i8ird
- vtb-2744hslq5b7r47fap8tjomgnj
routeTableName: vpc-fast
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(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
route_table_name: Optional[str] = None,
tags: Optional[Sequence[GetRouteTablesTag]] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRouteTablesResult
def get_route_tables_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
route_table_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetRouteTablesTagArgs]]]] = None,
vpc_id: Optional[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: volcengine:vpc/getRouteTables:getRouteTables
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of route table ids.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the route table.
- Route
Table stringName - A name of route table.
-
List<Get
Route Tables Tag> - Tags.
- Vpc
Id string - An id of VPC.
- Ids []string
- A list of route table ids.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the route table.
- Route
Table stringName - A name of route table.
-
[]Get
Route Tables Tag - Tags.
- Vpc
Id string - An id of VPC.
- ids List<String>
- A list of route table ids.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the route table.
- route
Table StringName - A name of route table.
-
List<Get
Route Tables Tag> - Tags.
- vpc
Id String - An id of VPC.
- ids string[]
- A list of route table ids.
- output
File string - File name where to save data source results.
- project
Name string - The ProjectName of the route table.
- route
Table stringName - A name of route table.
-
Get
Route Tables Tag[] - Tags.
- vpc
Id string - An id of VPC.
- ids Sequence[str]
- A list of route table ids.
- output_
file str - File name where to save data source results.
- project_
name str - The ProjectName of the route table.
- route_
table_ strname - A name of route table.
-
Sequence[Get
Route Tables Tag] - Tags.
- vpc_
id str - An id of VPC.
- ids List<String>
- A list of route table ids.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the route table.
- route
Table StringName - A name of route table.
- List<Property Map>
- Tags.
- vpc
Id String - An id of VPC.
getRouteTables Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Tables List<GetRoute Tables Route Table> - The collection of route tables.
- Total
Count int - The total count of route table query.
- Ids List<string>
- Output
File string - Project
Name string - The ProjectName of the route table.
- Route
Table stringName - The name of the route table.
-
List<Get
Route Tables Tag> - Tags.
- Vpc
Id string - The id of the virtual private cloud (VPC) to which the route entry belongs.
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Tables []GetRoute Tables Route Table - The collection of route tables.
- Total
Count int - The total count of route table query.
- Ids []string
- Output
File string - Project
Name string - The ProjectName of the route table.
- Route
Table stringName - The name of the route table.
-
[]Get
Route Tables Tag - Tags.
- Vpc
Id string - The id of the virtual private cloud (VPC) to which the route entry belongs.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Tables List<GetRoute Tables Route Table> - The collection of route tables.
- total
Count Integer - The total count of route table query.
- ids List<String>
- output
File String - project
Name String - The ProjectName of the route table.
- route
Table StringName - The name of the route table.
-
List<Get
Route Tables Tag> - Tags.
- vpc
Id String - The id of the virtual private cloud (VPC) to which the route entry belongs.
- id string
- The provider-assigned unique ID for this managed resource.
- route
Tables GetRoute Tables Route Table[] - The collection of route tables.
- total
Count number - The total count of route table query.
- ids string[]
- output
File string - project
Name string - The ProjectName of the route table.
- route
Table stringName - The name of the route table.
-
Get
Route Tables Tag[] - Tags.
- vpc
Id string - The id of the virtual private cloud (VPC) to which the route entry belongs.
- id str
- The provider-assigned unique ID for this managed resource.
- route_
tables Sequence[GetRoute Tables Route Table] - The collection of route tables.
- total_
count int - The total count of route table query.
- ids Sequence[str]
- output_
file str - project_
name str - The ProjectName of the route table.
- route_
table_ strname - The name of the route table.
-
Sequence[Get
Route Tables Tag] - Tags.
- vpc_
id str - The id of the virtual private cloud (VPC) to which the route entry belongs.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Tables List<Property Map> - The collection of route tables.
- total
Count Number - The total count of route table query.
- ids List<String>
- output
File String - project
Name String - The ProjectName of the route table.
- route
Table StringName - The name of the route table.
- List<Property Map>
- Tags.
- vpc
Id String - The id of the virtual private cloud (VPC) to which the route entry belongs.
Supporting Types
GetRouteTablesRouteTable
- Account
Id string - The account id of the route table creator.
- Creation
Time string - The create time of the route table.
- Description string
- The description of the route table.
- Id string
- The id of the route table.
- Project
Name string - The ProjectName of the route table.
- Route
Table stringId - The id of the route table.
- Route
Table stringName - A name of route table.
- Route
Table stringType - The type of the route table.
- Subnet
Ids List<string> - The list of the subnet ids to which the entry table associates.
-
List<Get
Route Tables Route Table Tag> - Tags.
- Update
Time string - The last update time of the route table.
- Vpc
Id string - An id of VPC.
- Vpc
Name string - The name of the virtual private cloud (VPC) to which the route entry belongs.
- Account
Id string - The account id of the route table creator.
- Creation
Time string - The create time of the route table.
- Description string
- The description of the route table.
- Id string
- The id of the route table.
- Project
Name string - The ProjectName of the route table.
- Route
Table stringId - The id of the route table.
- Route
Table stringName - A name of route table.
- Route
Table stringType - The type of the route table.
- Subnet
Ids []string - The list of the subnet ids to which the entry table associates.
-
[]Get
Route Tables Route Table Tag - Tags.
- Update
Time string - The last update time of the route table.
- Vpc
Id string - An id of VPC.
- Vpc
Name string - The name of the virtual private cloud (VPC) to which the route entry belongs.
- account
Id String - The account id of the route table creator.
- creation
Time String - The create time of the route table.
- description String
- The description of the route table.
- id String
- The id of the route table.
- project
Name String - The ProjectName of the route table.
- route
Table StringId - The id of the route table.
- route
Table StringName - A name of route table.
- route
Table StringType - The type of the route table.
- subnet
Ids List<String> - The list of the subnet ids to which the entry table associates.
-
List<Get
Route Tables Route Table Tag> - Tags.
- update
Time String - The last update time of the route table.
- vpc
Id String - An id of VPC.
- vpc
Name String - The name of the virtual private cloud (VPC) to which the route entry belongs.
- account
Id string - The account id of the route table creator.
- creation
Time string - The create time of the route table.
- description string
- The description of the route table.
- id string
- The id of the route table.
- project
Name string - The ProjectName of the route table.
- route
Table stringId - The id of the route table.
- route
Table stringName - A name of route table.
- route
Table stringType - The type of the route table.
- subnet
Ids string[] - The list of the subnet ids to which the entry table associates.
-
Get
Route Tables Route Table Tag[] - Tags.
- update
Time string - The last update time of the route table.
- vpc
Id string - An id of VPC.
- vpc
Name string - The name of the virtual private cloud (VPC) to which the route entry belongs.
- account_
id str - The account id of the route table creator.
- creation_
time str - The create time of the route table.
- description str
- The description of the route table.
- id str
- The id of the route table.
- project_
name str - The ProjectName of the route table.
- route_
table_ strid - The id of the route table.
- route_
table_ strname - A name of route table.
- route_
table_ strtype - The type of the route table.
- subnet_
ids Sequence[str] - The list of the subnet ids to which the entry table associates.
-
Sequence[Get
Route Tables Route Table Tag] - Tags.
- update_
time str - The last update time of the route table.
- vpc_
id str - An id of VPC.
- vpc_
name str - The name of the virtual private cloud (VPC) to which the route entry belongs.
- account
Id String - The account id of the route table creator.
- creation
Time String - The create time of the route table.
- description String
- The description of the route table.
- id String
- The id of the route table.
- project
Name String - The ProjectName of the route table.
- route
Table StringId - The id of the route table.
- route
Table StringName - A name of route table.
- route
Table StringType - The type of the route table.
- subnet
Ids List<String> - The list of the subnet ids to which the entry table associates.
- List<Property Map>
- Tags.
- update
Time String - The last update time of the route table.
- vpc
Id String - An id of VPC.
- vpc
Name String - The name of the virtual private cloud (VPC) to which the route entry belongs.
GetRouteTablesRouteTableTag
GetRouteTablesTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
