1. Packages
  2. Yandex
  3. API Docs
  4. getVpcRouteTable
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getVpcRouteTable

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Get information about a Yandex VPC route table. For more information, see Yandex.Cloud VPC.

    import * as pulumi from "@pulumi/pulumi";
    import * as yandex from "@pulumi/yandex";
    
    const thisVpcRouteTable = pulumi.output(yandex.getVpcRouteTable({
        routeTableId: "my-rt-id",
    }));
    
    import pulumi
    import pulumi_yandex as yandex
    
    this = yandex.get_vpc_route_table(route_table_id="my-rt-id")
    
    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var @this = Output.Create(Yandex.GetVpcRouteTable.InvokeAsync(new Yandex.GetVpcRouteTableArgs
            {
                RouteTableId = "my-rt-id",
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		opt0 := "my-rt-id"
    		_, err := yandex.LookupVpcRouteTable(ctx, &GetVpcRouteTableArgs{
    			RouteTableId: &opt0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    This data source is used to define [VPC Route Table] that can be used by other resources.

    Using getVpcRouteTable

    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 getVpcRouteTable(args: GetVpcRouteTableArgs, opts?: InvokeOptions): Promise<GetVpcRouteTableResult>
    function getVpcRouteTableOutput(args: GetVpcRouteTableOutputArgs, opts?: InvokeOptions): Output<GetVpcRouteTableResult>
    def get_vpc_route_table(folder_id: Optional[str] = None,
                            name: Optional[str] = None,
                            route_table_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetVpcRouteTableResult
    def get_vpc_route_table_output(folder_id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            route_table_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetVpcRouteTableResult]
    func LookupVpcRouteTable(ctx *Context, args *LookupVpcRouteTableArgs, opts ...InvokeOption) (*LookupVpcRouteTableResult, error)
    func LookupVpcRouteTableOutput(ctx *Context, args *LookupVpcRouteTableOutputArgs, opts ...InvokeOption) LookupVpcRouteTableResultOutput

    > Note: This function is named LookupVpcRouteTable in the Go SDK.

    public static class GetVpcRouteTable 
    {
        public static Task<GetVpcRouteTableResult> InvokeAsync(GetVpcRouteTableArgs args, InvokeOptions? opts = null)
        public static Output<GetVpcRouteTableResult> Invoke(GetVpcRouteTableInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpcRouteTableResult> getVpcRouteTable(GetVpcRouteTableArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: yandex:index/getVpcRouteTable:getVpcRouteTable
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FolderId string
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    Name string
    • Name of the route table.
    RouteTableId string
    Route table ID.
    FolderId string
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    Name string
    • Name of the route table.
    RouteTableId string
    Route table ID.
    folderId String
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name String
    • Name of the route table.
    routeTableId String
    Route table ID.
    folderId string
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name string
    • Name of the route table.
    routeTableId string
    Route table ID.
    folder_id str
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name str
    • Name of the route table.
    route_table_id str
    Route table ID.
    folderId String
    Folder that the resource belongs to. If value is omitted, the default provider folder is used.
    name String
    • Name of the route table.
    routeTableId String
    Route table ID.

    getVpcRouteTable Result

    The following output properties are available:

    CreatedAt string
    Creation timestamp of this route table.
    Description string
    Description of the route table.
    FolderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels Dictionary<string, string>
    Labels to assign to this route table.
    Name string
    NetworkId string
    ID of the network this route table belongs to.
    RouteTableId string
    StaticRoutes List<GetVpcRouteTableStaticRoute>
    List of static route records of the route table. Structure is documented below.
    CreatedAt string
    Creation timestamp of this route table.
    Description string
    Description of the route table.
    FolderId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels map[string]string
    Labels to assign to this route table.
    Name string
    NetworkId string
    ID of the network this route table belongs to.
    RouteTableId string
    StaticRoutes []GetVpcRouteTableStaticRoute
    List of static route records of the route table. Structure is documented below.
    createdAt String
    Creation timestamp of this route table.
    description String
    Description of the route table.
    folderId String
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String,String>
    Labels to assign to this route table.
    name String
    networkId String
    ID of the network this route table belongs to.
    routeTableId String
    staticRoutes List<GetVpcRouteTableStaticRoute>
    List of static route records of the route table. Structure is documented below.
    createdAt string
    Creation timestamp of this route table.
    description string
    Description of the route table.
    folderId string
    id string
    The provider-assigned unique ID for this managed resource.
    labels {[key: string]: string}
    Labels to assign to this route table.
    name string
    networkId string
    ID of the network this route table belongs to.
    routeTableId string
    staticRoutes GetVpcRouteTableStaticRoute[]
    List of static route records of the route table. Structure is documented below.
    created_at str
    Creation timestamp of this route table.
    description str
    Description of the route table.
    folder_id str
    id str
    The provider-assigned unique ID for this managed resource.
    labels Mapping[str, str]
    Labels to assign to this route table.
    name str
    network_id str
    ID of the network this route table belongs to.
    route_table_id str
    static_routes Sequence[GetVpcRouteTableStaticRoute]
    List of static route records of the route table. Structure is documented below.
    createdAt String
    Creation timestamp of this route table.
    description String
    Description of the route table.
    folderId String
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String>
    Labels to assign to this route table.
    name String
    networkId String
    ID of the network this route table belongs to.
    routeTableId String
    staticRoutes List<Property Map>
    List of static route records of the route table. Structure is documented below.

    Supporting Types

    GetVpcRouteTableStaticRoute

    DestinationPrefix string
    Route prefix in CIDR notation.
    NextHopAddress string
    Address of the next hop.
    DestinationPrefix string
    Route prefix in CIDR notation.
    NextHopAddress string
    Address of the next hop.
    destinationPrefix String
    Route prefix in CIDR notation.
    nextHopAddress String
    Address of the next hop.
    destinationPrefix string
    Route prefix in CIDR notation.
    nextHopAddress string
    Address of the next hop.
    destination_prefix str
    Route prefix in CIDR notation.
    next_hop_address str
    Address of the next hop.
    destinationPrefix String
    Route prefix in CIDR notation.
    nextHopAddress String
    Address of the next hop.

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi