Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getVpcRouteTable
Explore with Pulumi AI
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:
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the route table.
- Route
Table stringId - Route table ID.
- Folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- Name string
- Name of the route table.
- Route
Table stringId - Route table ID.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the route table.
- route
Table StringId - Route table ID.
- folder
Id string - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name string
- Name of the route table.
- route
Table stringId - 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_ strid - Route table ID.
- folder
Id String - Folder that the resource belongs to. If value is omitted, the default provider folder is used.
- name String
- Name of the route table.
- route
Table StringId - Route table ID.
getVpcRouteTable Result
The following output properties are available:
- Created
At string - Creation timestamp of this route table.
- Description string
- Description of the route table.
- Folder
Id 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
- Network
Id string - ID of the network this route table belongs to.
- Route
Table stringId - Static
Routes List<GetVpc Route Table Static Route> - List of static route records of the route table. Structure is documented below.
- Created
At string - Creation timestamp of this route table.
- Description string
- Description of the route table.
- Folder
Id 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
- Network
Id string - ID of the network this route table belongs to.
- Route
Table stringId - Static
Routes []GetVpc Route Table Static Route - List of static route records of the route table. Structure is documented below.
- created
At String - Creation timestamp of this route table.
- description String
- Description of the route table.
- folder
Id 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
- network
Id String - ID of the network this route table belongs to.
- route
Table StringId - static
Routes List<GetVpc Route Table Static Route> - List of static route records of the route table. Structure is documented below.
- created
At string - Creation timestamp of this route table.
- description string
- Description of the route table.
- folder
Id 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
- network
Id string - ID of the network this route table belongs to.
- route
Table stringId - static
Routes GetVpc Route Table Static Route[] - 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_ strid - static_
routes Sequence[GetVpc Route Table Static Route] - List of static route records of the route table. Structure is documented below.
- created
At String - Creation timestamp of this route table.
- description String
- Description of the route table.
- folder
Id String - id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- Labels to assign to this route table.
- name String
- network
Id String - ID of the network this route table belongs to.
- route
Table StringId - static
Routes List<Property Map> - List of static route records of the route table. Structure is documented below.
Supporting Types
GetVpcRouteTableStaticRoute
- Destination
Prefix string - Route prefix in CIDR notation.
- Next
Hop stringAddress - Address of the next hop.
- Destination
Prefix string - Route prefix in CIDR notation.
- Next
Hop stringAddress - Address of the next hop.
- destination
Prefix String - Route prefix in CIDR notation.
- next
Hop StringAddress - Address of the next hop.
- destination
Prefix string - Route prefix in CIDR notation.
- next
Hop stringAddress - Address of the next hop.
- destination_
prefix str - Route prefix in CIDR notation.
- next_
hop_ straddress - Address of the next hop.
- destination
Prefix String - Route prefix in CIDR notation.
- next
Hop StringAddress - 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.