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 transit router route tables
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooTransitRouter = new volcengine.transit_router.TransitRouter("fooTransitRouter", {
transitRouterName: "test-tf-acc",
description: "test-tf-acc",
});
const fooRouteTable = new volcengine.transit_router.RouteTable("fooRouteTable", {
description: "tf-test-acc-description",
transitRouterRouteTableName: "tf-table-test-acc",
transitRouterId: fooTransitRouter.id,
});
const default = volcengine.transit_router.getRouteTablesOutput({
transitRouterId: fooTransitRouter.id,
ids: [fooRouteTable.transitRouterRouteTableId],
});
import pulumi
import pulumi_volcengine as volcengine
foo_transit_router = volcengine.transit_router.TransitRouter("fooTransitRouter",
transit_router_name="test-tf-acc",
description="test-tf-acc")
foo_route_table = volcengine.transit_router.RouteTable("fooRouteTable",
description="tf-test-acc-description",
transit_router_route_table_name="tf-table-test-acc",
transit_router_id=foo_transit_router.id)
default = volcengine.transit_router.get_route_tables_output(transit_router_id=foo_transit_router.id,
ids=[foo_route_table.transit_router_route_table_id])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooTransitRouter, err := transit_router.NewTransitRouter(ctx, "fooTransitRouter", &transit_router.TransitRouterArgs{
TransitRouterName: pulumi.String("test-tf-acc"),
Description: pulumi.String("test-tf-acc"),
})
if err != nil {
return err
}
fooRouteTable, err := transit_router.NewRouteTable(ctx, "fooRouteTable", &transit_router.RouteTableArgs{
Description: pulumi.String("tf-test-acc-description"),
TransitRouterRouteTableName: pulumi.String("tf-table-test-acc"),
TransitRouterId: fooTransitRouter.ID(),
})
if err != nil {
return err
}
_ = transit_router.GetRouteTablesOutput(ctx, transit_router.GetRouteTablesOutputArgs{
TransitRouterId: fooTransitRouter.ID(),
Ids: pulumi.StringArray{
fooRouteTable.TransitRouterRouteTableId,
},
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooTransitRouter = new Volcengine.Transit_router.TransitRouter("fooTransitRouter", new()
{
TransitRouterName = "test-tf-acc",
Description = "test-tf-acc",
});
var fooRouteTable = new Volcengine.Transit_router.RouteTable("fooRouteTable", new()
{
Description = "tf-test-acc-description",
TransitRouterRouteTableName = "tf-table-test-acc",
TransitRouterId = fooTransitRouter.Id,
});
var @default = Volcengine.Transit_router.GetRouteTables.Invoke(new()
{
TransitRouterId = fooTransitRouter.Id,
Ids = new[]
{
fooRouteTable.TransitRouterRouteTableId,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.transit_router.TransitRouter;
import com.pulumi.volcengine.transit_router.TransitRouterArgs;
import com.pulumi.volcengine.transit_router.RouteTable;
import com.pulumi.volcengine.transit_router.RouteTableArgs;
import com.pulumi.volcengine.transit_router.Transit_routerFunctions;
import com.pulumi.volcengine.transit_router.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) {
var fooTransitRouter = new TransitRouter("fooTransitRouter", TransitRouterArgs.builder()
.transitRouterName("test-tf-acc")
.description("test-tf-acc")
.build());
var fooRouteTable = new RouteTable("fooRouteTable", RouteTableArgs.builder()
.description("tf-test-acc-description")
.transitRouterRouteTableName("tf-table-test-acc")
.transitRouterId(fooTransitRouter.id())
.build());
final var default = Transit_routerFunctions.getRouteTables(GetRouteTablesArgs.builder()
.transitRouterId(fooTransitRouter.id())
.ids(fooRouteTable.transitRouterRouteTableId())
.build());
}
}
resources:
fooTransitRouter:
type: volcengine:transit_router:TransitRouter
properties:
transitRouterName: test-tf-acc
description: test-tf-acc
fooRouteTable:
type: volcengine:transit_router:RouteTable
properties:
description: tf-test-acc-description
transitRouterRouteTableName: tf-table-test-acc
transitRouterId: ${fooTransitRouter.id}
variables:
default:
fn::invoke:
Function: volcengine:transit_router:getRouteTables
Arguments:
transitRouterId: ${fooTransitRouter.id}
ids:
- ${fooRouteTable.transitRouterRouteTableId}
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,
tags: Optional[Sequence[GetRouteTablesTag]] = None,
transit_router_id: Optional[str] = None,
transit_router_route_table_type: 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,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetRouteTablesTagArgs]]]] = None,
transit_router_id: Optional[pulumi.Input[str]] = None,
transit_router_route_table_type: 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:transit_router/getRouteTables:getRouteTables
arguments:
# arguments dictionaryThe following arguments are supported:
- Transit
Router stringId - The id of the transit router.
- Ids List<string>
- The ids of the transit router route table.
- Output
File string - File name where to save data source results.
-
List<Get
Route Tables Tag> - Tags.
- Transit
Router stringRoute Table Type - The type of the route table. The value can be System or Custom.
- Transit
Router stringId - The id of the transit router.
- Ids []string
- The ids of the transit router route table.
- Output
File string - File name where to save data source results.
-
[]Get
Route Tables Tag - Tags.
- Transit
Router stringRoute Table Type - The type of the route table. The value can be System or Custom.
- transit
Router StringId - The id of the transit router.
- ids List<String>
- The ids of the transit router route table.
- output
File String - File name where to save data source results.
-
List<Get
Route Tables Tag> - Tags.
- transit
Router StringRoute Table Type - The type of the route table. The value can be System or Custom.
- transit
Router stringId - The id of the transit router.
- ids string[]
- The ids of the transit router route table.
- output
File string - File name where to save data source results.
-
Get
Route Tables Tag[] - Tags.
- transit
Router stringRoute Table Type - The type of the route table. The value can be System or Custom.
- transit_
router_ strid - The id of the transit router.
- ids Sequence[str]
- The ids of the transit router route table.
- output_
file str - File name where to save data source results.
-
Sequence[Get
Route Tables Tag] - Tags.
- transit_
router_ strroute_ table_ type - The type of the route table. The value can be System or Custom.
- transit
Router StringId - The id of the transit router.
- ids List<String>
- The ids of the transit router route table.
- output
File String - File name where to save data source results.
- List<Property Map>
- Tags.
- transit
Router StringRoute Table Type - The type of the route table. The value can be System or Custom.
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 list of route tables query.
- Total
Count int - The total count of data query.
- Transit
Router stringId - Ids List<string>
- Output
File string -
List<Get
Route Tables Tag> - Tags.
- Transit
Router stringRoute Table Type - The type of route table.
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Tables []GetRoute Tables Route Table - The list of route tables query.
- Total
Count int - The total count of data query.
- Transit
Router stringId - Ids []string
- Output
File string -
[]Get
Route Tables Tag - Tags.
- Transit
Router stringRoute Table Type - The type of route table.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Tables List<GetRoute Tables Route Table> - The list of route tables query.
- total
Count Integer - The total count of data query.
- transit
Router StringId - ids List<String>
- output
File String -
List<Get
Route Tables Tag> - Tags.
- transit
Router StringRoute Table Type - The type of route table.
- id string
- The provider-assigned unique ID for this managed resource.
- route
Tables GetRoute Tables Route Table[] - The list of route tables query.
- total
Count number - The total count of data query.
- transit
Router stringId - ids string[]
- output
File string -
Get
Route Tables Tag[] - Tags.
- transit
Router stringRoute Table Type - The type of route table.
- id str
- The provider-assigned unique ID for this managed resource.
- route_
tables Sequence[GetRoute Tables Route Table] - The list of route tables query.
- total_
count int - The total count of data query.
- transit_
router_ strid - ids Sequence[str]
- output_
file str -
Sequence[Get
Route Tables Tag] - Tags.
- transit_
router_ strroute_ table_ type - The type of route table.
- id String
- The provider-assigned unique ID for this managed resource.
- route
Tables List<Property Map> - The list of route tables query.
- total
Count Number - The total count of data query.
- transit
Router StringId - ids List<String>
- output
File String - List<Property Map>
- Tags.
- transit
Router StringRoute Table Type - The type of route table.
Supporting Types
GetRouteTablesRouteTable
- Creation
Time string - The creation time of the route table.
- Description string
- The description.
- Status string
- The status of the route table.
-
List<Get
Route Tables Route Table Tag> - Tags.
- Transit
Router stringRoute Table Id - The id of the route table.
- Transit
Router stringRoute Table Name - The name of the route table.
- Transit
Router stringRoute Table Type - The type of the route table. The value can be System or Custom.
- Update
Time string - The update time of the route table.
- Creation
Time string - The creation time of the route table.
- Description string
- The description.
- Status string
- The status of the route table.
-
[]Get
Route Tables Route Table Tag - Tags.
- Transit
Router stringRoute Table Id - The id of the route table.
- Transit
Router stringRoute Table Name - The name of the route table.
- Transit
Router stringRoute Table Type - The type of the route table. The value can be System or Custom.
- Update
Time string - The update time of the route table.
- creation
Time String - The creation time of the route table.
- description String
- The description.
- status String
- The status of the route table.
-
List<Get
Route Tables Route Table Tag> - Tags.
- transit
Router StringRoute Table Id - The id of the route table.
- transit
Router StringRoute Table Name - The name of the route table.
- transit
Router StringRoute Table Type - The type of the route table. The value can be System or Custom.
- update
Time String - The update time of the route table.
- creation
Time string - The creation time of the route table.
- description string
- The description.
- status string
- The status of the route table.
-
Get
Route Tables Route Table Tag[] - Tags.
- transit
Router stringRoute Table Id - The id of the route table.
- transit
Router stringRoute Table Name - The name of the route table.
- transit
Router stringRoute Table Type - The type of the route table. The value can be System or Custom.
- update
Time string - The update time of the route table.
- creation_
time str - The creation time of the route table.
- description str
- The description.
- status str
- The status of the route table.
-
Sequence[Get
Route Tables Route Table Tag] - Tags.
- transit_
router_ strroute_ table_ id - The id of the route table.
- transit_
router_ strroute_ table_ name - The name of the route table.
- transit_
router_ strroute_ table_ type - The type of the route table. The value can be System or Custom.
- update_
time str - The update time of the route table.
- creation
Time String - The creation time of the route table.
- description String
- The description.
- status String
- The status of the route table.
- List<Property Map>
- Tags.
- transit
Router StringRoute Table Id - The id of the route table.
- transit
Router StringRoute Table Name - The name of the route table.
- transit
Router StringRoute Table Type - The type of the route table. The value can be System or Custom.
- update
Time String - The update time of the route table.
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
