1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. RouteTables
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.transit_router.RouteTables

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    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:

    TransitRouterId string
    The id of the transit router.
    Ids List<string>
    The ids of the transit router route table.
    OutputFile string
    File name where to save data source results.
    Tags List<RouteTablesTag>
    Tags.
    TransitRouterRouteTableType string
    The type of the route table. The value can be System or Custom.
    TransitRouterId string
    The id of the transit router.
    Ids []string
    The ids of the transit router route table.
    OutputFile string
    File name where to save data source results.
    Tags []RouteTablesTag
    Tags.
    TransitRouterRouteTableType string
    The type of the route table. The value can be System or Custom.
    transitRouterId String
    The id of the transit router.
    ids List<String>
    The ids of the transit router route table.
    outputFile String
    File name where to save data source results.
    tags List<RouteTablesTag>
    Tags.
    transitRouterRouteTableType String
    The type of the route table. The value can be System or Custom.
    transitRouterId string
    The id of the transit router.
    ids string[]
    The ids of the transit router route table.
    outputFile string
    File name where to save data source results.
    tags RouteTablesTag[]
    Tags.
    transitRouterRouteTableType string
    The type of the route table. The value can be System or Custom.
    transit_router_id str
    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.
    tags Sequence[RouteTablesTag]
    Tags.
    transit_router_route_table_type str
    The type of the route table. The value can be System or Custom.
    transitRouterId String
    The id of the transit router.
    ids List<String>
    The ids of the transit router route table.
    outputFile String
    File name where to save data source results.
    tags List<Property Map>
    Tags.
    transitRouterRouteTableType String
    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.
    RouteTables List<RouteTablesRouteTable>
    The list of route tables query.
    TotalCount int
    The total count of data query.
    TransitRouterId string
    Ids List<string>
    OutputFile string
    Tags List<RouteTablesTag>
    Tags.
    TransitRouterRouteTableType string
    The type of route table.
    Id string
    The provider-assigned unique ID for this managed resource.
    RouteTables []RouteTablesRouteTable
    The list of route tables query.
    TotalCount int
    The total count of data query.
    TransitRouterId string
    Ids []string
    OutputFile string
    Tags []RouteTablesTag
    Tags.
    TransitRouterRouteTableType string
    The type of route table.
    id String
    The provider-assigned unique ID for this managed resource.
    routeTables List<RouteTablesRouteTable>
    The list of route tables query.
    totalCount Integer
    The total count of data query.
    transitRouterId String
    ids List<String>
    outputFile String
    tags List<RouteTablesTag>
    Tags.
    transitRouterRouteTableType String
    The type of route table.
    id string
    The provider-assigned unique ID for this managed resource.
    routeTables RouteTablesRouteTable[]
    The list of route tables query.
    totalCount number
    The total count of data query.
    transitRouterId string
    ids string[]
    outputFile string
    tags RouteTablesTag[]
    Tags.
    transitRouterRouteTableType string
    The type of route table.
    id str
    The provider-assigned unique ID for this managed resource.
    route_tables Sequence[RouteTablesRouteTable]
    The list of route tables query.
    total_count int
    The total count of data query.
    transit_router_id str
    ids Sequence[str]
    output_file str
    tags Sequence[RouteTablesTag]
    Tags.
    transit_router_route_table_type str
    The type of route table.
    id String
    The provider-assigned unique ID for this managed resource.
    routeTables List<Property Map>
    The list of route tables query.
    totalCount Number
    The total count of data query.
    transitRouterId String
    ids List<String>
    outputFile String
    tags List<Property Map>
    Tags.
    transitRouterRouteTableType String
    The type of route table.

    Supporting Types

    RouteTablesRouteTable

    CreationTime string
    The creation time of the route table.
    Description string
    The description.
    Status string
    The status of the route table.
    Tags List<RouteTablesRouteTableTag>
    Tags.
    TransitRouterRouteTableId string
    The id of the route table.
    TransitRouterRouteTableName string
    The name of the route table.
    TransitRouterRouteTableType string
    The type of the route table. The value can be System or Custom.
    UpdateTime string
    The update time of the route table.
    CreationTime string
    The creation time of the route table.
    Description string
    The description.
    Status string
    The status of the route table.
    Tags []RouteTablesRouteTableTag
    Tags.
    TransitRouterRouteTableId string
    The id of the route table.
    TransitRouterRouteTableName string
    The name of the route table.
    TransitRouterRouteTableType string
    The type of the route table. The value can be System or Custom.
    UpdateTime string
    The update time of the route table.
    creationTime String
    The creation time of the route table.
    description String
    The description.
    status String
    The status of the route table.
    tags List<RouteTablesRouteTableTag>
    Tags.
    transitRouterRouteTableId String
    The id of the route table.
    transitRouterRouteTableName String
    The name of the route table.
    transitRouterRouteTableType String
    The type of the route table. The value can be System or Custom.
    updateTime String
    The update time of the route table.
    creationTime string
    The creation time of the route table.
    description string
    The description.
    status string
    The status of the route table.
    tags RouteTablesRouteTableTag[]
    Tags.
    transitRouterRouteTableId string
    The id of the route table.
    transitRouterRouteTableName string
    The name of the route table.
    transitRouterRouteTableType string
    The type of the route table. The value can be System or Custom.
    updateTime 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.
    tags Sequence[RouteTablesRouteTableTag]
    Tags.
    transit_router_route_table_id str
    The id of the route table.
    transit_router_route_table_name str
    The name of the route table.
    transit_router_route_table_type str
    The type of the route table. The value can be System or Custom.
    update_time str
    The update time of the route table.
    creationTime String
    The creation time of the route table.
    description String
    The description.
    status String
    The status of the route table.
    tags List<Property Map>
    Tags.
    transitRouterRouteTableId String
    The id of the route table.
    transitRouterRouteTableName String
    The name of the route table.
    transitRouterRouteTableType String
    The type of the route table. The value can be System or Custom.
    updateTime String
    The update time of the route table.

    RouteTablesRouteTableTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    RouteTablesTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine