Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.transit_router.RouteTables
Explore with Pulumi AI
Use this data source to query detailed information of transit router route tables
Example Usage
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.RouteTables.Invoke(new()
{
TransitRouterId = fooTransitRouter.Id,
Ids = new[]
{
fooRouteTable.TransitRouterRouteTableId,
},
});
});
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.RouteTablesOutput(ctx, transit_router.RouteTablesOutputArgs{
TransitRouterId: fooTransitRouter.ID(),
Ids: pulumi.StringArray{
fooRouteTable.TransitRouterRouteTableId,
},
}, nil)
return nil
})
}
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.RouteTablesArgs;
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.RouteTables(RouteTablesArgs.builder()
.transitRouterId(fooTransitRouter.id())
.ids(fooRouteTable.transitRouterRouteTableId())
.build());
}
}
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.route_tables_output(transit_router_id=foo_transit_router.id,
ids=[foo_route_table.transit_router_route_table_id])
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.RouteTablesOutput({
transitRouterId: fooTransitRouter.id,
ids: [fooRouteTable.transitRouterRouteTableId],
});
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:RouteTables
Arguments:
transitRouterId: ${fooTransitRouter.id}
ids:
- ${fooRouteTable.transitRouterRouteTableId}
Using RouteTables
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 routeTables(args: RouteTablesArgs, opts?: InvokeOptions): Promise<RouteTablesResult>
function routeTablesOutput(args: RouteTablesOutputArgs, opts?: InvokeOptions): Output<RouteTablesResult>
def route_tables(ids: Optional[Sequence[str]] = None,
output_file: Optional[str] = None,
tags: Optional[Sequence[RouteTablesTag]] = None,
transit_router_id: Optional[str] = None,
transit_router_route_table_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RouteTablesResult
def 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[RouteTablesTagArgs]]]] = None,
transit_router_id: Optional[pulumi.Input[str]] = None,
transit_router_route_table_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RouteTablesResult]
func RouteTables(ctx *Context, args *RouteTablesArgs, opts ...InvokeOption) (*RouteTablesResult, error)
func RouteTablesOutput(ctx *Context, args *RouteTablesOutputArgs, opts ...InvokeOption) RouteTablesResultOutput
public static class RouteTables
{
public static Task<RouteTablesResult> InvokeAsync(RouteTablesArgs args, InvokeOptions? opts = null)
public static Output<RouteTablesResult> Invoke(RouteTablesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<RouteTablesResult> routeTables(RouteTablesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:transit_router:RouteTables
arguments:
# arguments dictionary
The 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<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.
- []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<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.
- 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[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.
RouteTables Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Tables List<RouteTables 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<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 []RouteTables 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 - []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<RouteTables 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<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 RouteTables 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 - 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[RouteTables 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[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
RouteTablesRouteTable
- Creation
Time string - The creation time of the route table.
- Description string
- The description.
- Status string
- The status of the route table.
- List<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.
- []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<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.
- 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[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.
RouteTablesRouteTableTag
RouteTablesTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.