1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. RouteEntries
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.vpc.RouteEntries

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of route entries

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Vpc.RouteEntries.Invoke(new()
        {
            Ids = new[] {},
            RouteTableId = "vtb-274e19skkuhog7fap8u4i8ird",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vpc.RouteEntries(ctx, &vpc.RouteEntriesArgs{
    			Ids:          []interface{}{},
    			RouteTableId: "vtb-274e19skkuhog7fap8u4i8ird",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vpc.VpcFunctions;
    import com.pulumi.volcengine.vpc.inputs.RouteEntriesArgs;
    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) {
            final var default = VpcFunctions.RouteEntries(RouteEntriesArgs.builder()
                .ids()
                .routeTableId("vtb-274e19skkuhog7fap8u4i8ird")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.vpc.route_entries(ids=[],
        route_table_id="vtb-274e19skkuhog7fap8u4i8ird")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.vpc.RouteEntries({
        ids: [],
        routeTableId: "vtb-274e19skkuhog7fap8u4i8ird",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:vpc:RouteEntries
          Arguments:
            ids: []
            routeTableId: vtb-274e19skkuhog7fap8u4i8ird
    

    Using RouteEntries

    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 routeEntries(args: RouteEntriesArgs, opts?: InvokeOptions): Promise<RouteEntriesResult>
    function routeEntriesOutput(args: RouteEntriesOutputArgs, opts?: InvokeOptions): Output<RouteEntriesResult>
    def route_entries(destination_cidr_block: Optional[str] = None,
                      ids: Optional[Sequence[str]] = None,
                      next_hop_id: Optional[str] = None,
                      next_hop_type: Optional[str] = None,
                      output_file: Optional[str] = None,
                      route_entry_name: Optional[str] = None,
                      route_entry_type: Optional[str] = None,
                      route_table_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> RouteEntriesResult
    def route_entries_output(destination_cidr_block: Optional[pulumi.Input[str]] = None,
                      ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      next_hop_id: Optional[pulumi.Input[str]] = None,
                      next_hop_type: Optional[pulumi.Input[str]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      route_entry_name: Optional[pulumi.Input[str]] = None,
                      route_entry_type: Optional[pulumi.Input[str]] = None,
                      route_table_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[RouteEntriesResult]
    func RouteEntries(ctx *Context, args *RouteEntriesArgs, opts ...InvokeOption) (*RouteEntriesResult, error)
    func RouteEntriesOutput(ctx *Context, args *RouteEntriesOutputArgs, opts ...InvokeOption) RouteEntriesResultOutput
    public static class RouteEntries 
    {
        public static Task<RouteEntriesResult> InvokeAsync(RouteEntriesArgs args, InvokeOptions? opts = null)
        public static Output<RouteEntriesResult> Invoke(RouteEntriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<RouteEntriesResult> routeEntries(RouteEntriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:vpc:RouteEntries
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RouteTableId string
    An id of route table.
    DestinationCidrBlock string
    A destination CIDR block of route entry.
    Ids List<string>
    A list of route entry ids.
    NextHopId string
    An id of next hop.
    NextHopType string
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    OutputFile string
    File name where to save data source results.
    RouteEntryName string
    A name of route entry.
    RouteEntryType string
    A type of route entry.
    RouteTableId string
    An id of route table.
    DestinationCidrBlock string
    A destination CIDR block of route entry.
    Ids []string
    A list of route entry ids.
    NextHopId string
    An id of next hop.
    NextHopType string
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    OutputFile string
    File name where to save data source results.
    RouteEntryName string
    A name of route entry.
    RouteEntryType string
    A type of route entry.
    routeTableId String
    An id of route table.
    destinationCidrBlock String
    A destination CIDR block of route entry.
    ids List<String>
    A list of route entry ids.
    nextHopId String
    An id of next hop.
    nextHopType String
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    outputFile String
    File name where to save data source results.
    routeEntryName String
    A name of route entry.
    routeEntryType String
    A type of route entry.
    routeTableId string
    An id of route table.
    destinationCidrBlock string
    A destination CIDR block of route entry.
    ids string[]
    A list of route entry ids.
    nextHopId string
    An id of next hop.
    nextHopType string
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    outputFile string
    File name where to save data source results.
    routeEntryName string
    A name of route entry.
    routeEntryType string
    A type of route entry.
    route_table_id str
    An id of route table.
    destination_cidr_block str
    A destination CIDR block of route entry.
    ids Sequence[str]
    A list of route entry ids.
    next_hop_id str
    An id of next hop.
    next_hop_type str
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    output_file str
    File name where to save data source results.
    route_entry_name str
    A name of route entry.
    route_entry_type str
    A type of route entry.
    routeTableId String
    An id of route table.
    destinationCidrBlock String
    A destination CIDR block of route entry.
    ids List<String>
    A list of route entry ids.
    nextHopId String
    An id of next hop.
    nextHopType String
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    outputFile String
    File name where to save data source results.
    routeEntryName String
    A name of route entry.
    routeEntryType String
    A type of route entry.

    RouteEntries Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RouteEntries List<RouteEntriesRouteEntry>
    The collection of route tables.
    RouteTableId string
    The id of the route table to which the route entry belongs.
    TotalCount int
    The total count of route entry query.
    DestinationCidrBlock string
    The destination CIDR block of the route entry.
    Ids List<string>
    NextHopId string
    The id of the next hop.
    NextHopType string
    The type of the next hop.
    OutputFile string
    RouteEntryName string
    The name of the route entry.
    RouteEntryType string
    Id string
    The provider-assigned unique ID for this managed resource.
    RouteEntries []RouteEntriesRouteEntry
    The collection of route tables.
    RouteTableId string
    The id of the route table to which the route entry belongs.
    TotalCount int
    The total count of route entry query.
    DestinationCidrBlock string
    The destination CIDR block of the route entry.
    Ids []string
    NextHopId string
    The id of the next hop.
    NextHopType string
    The type of the next hop.
    OutputFile string
    RouteEntryName string
    The name of the route entry.
    RouteEntryType string
    id String
    The provider-assigned unique ID for this managed resource.
    routeEntries List<RouteEntriesRouteEntry>
    The collection of route tables.
    routeTableId String
    The id of the route table to which the route entry belongs.
    totalCount Integer
    The total count of route entry query.
    destinationCidrBlock String
    The destination CIDR block of the route entry.
    ids List<String>
    nextHopId String
    The id of the next hop.
    nextHopType String
    The type of the next hop.
    outputFile String
    routeEntryName String
    The name of the route entry.
    routeEntryType String
    id string
    The provider-assigned unique ID for this managed resource.
    routeEntries RouteEntriesRouteEntry[]
    The collection of route tables.
    routeTableId string
    The id of the route table to which the route entry belongs.
    totalCount number
    The total count of route entry query.
    destinationCidrBlock string
    The destination CIDR block of the route entry.
    ids string[]
    nextHopId string
    The id of the next hop.
    nextHopType string
    The type of the next hop.
    outputFile string
    routeEntryName string
    The name of the route entry.
    routeEntryType string
    id str
    The provider-assigned unique ID for this managed resource.
    route_entries Sequence[RouteEntriesRouteEntry]
    The collection of route tables.
    route_table_id str
    The id of the route table to which the route entry belongs.
    total_count int
    The total count of route entry query.
    destination_cidr_block str
    The destination CIDR block of the route entry.
    ids Sequence[str]
    next_hop_id str
    The id of the next hop.
    next_hop_type str
    The type of the next hop.
    output_file str
    route_entry_name str
    The name of the route entry.
    route_entry_type str
    id String
    The provider-assigned unique ID for this managed resource.
    routeEntries List<Property Map>
    The collection of route tables.
    routeTableId String
    The id of the route table to which the route entry belongs.
    totalCount Number
    The total count of route entry query.
    destinationCidrBlock String
    The destination CIDR block of the route entry.
    ids List<String>
    nextHopId String
    The id of the next hop.
    nextHopType String
    The type of the next hop.
    outputFile String
    routeEntryName String
    The name of the route entry.
    routeEntryType String

    Supporting Types

    RouteEntriesRouteEntry

    Description string
    The description of the route entry.
    DestinationCidrBlock string
    A destination CIDR block of route entry.
    Id string
    The id of the route entry.
    NextHopId string
    An id of next hop.
    NextHopName string
    The name of the next hop.
    NextHopType string
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    RouteEntryId string
    The id of the route entry.
    RouteEntryName string
    A name of route entry.
    RouteTableId string
    An id of route table.
    Status string
    The status of the route entry.
    Type string
    The type of the route entry.
    VpcId string
    The id of the virtual private cloud (VPC) to which the route entry belongs.
    Description string
    The description of the route entry.
    DestinationCidrBlock string
    A destination CIDR block of route entry.
    Id string
    The id of the route entry.
    NextHopId string
    An id of next hop.
    NextHopName string
    The name of the next hop.
    NextHopType string
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    RouteEntryId string
    The id of the route entry.
    RouteEntryName string
    A name of route entry.
    RouteTableId string
    An id of route table.
    Status string
    The status of the route entry.
    Type string
    The type of the route entry.
    VpcId string
    The id of the virtual private cloud (VPC) to which the route entry belongs.
    description String
    The description of the route entry.
    destinationCidrBlock String
    A destination CIDR block of route entry.
    id String
    The id of the route entry.
    nextHopId String
    An id of next hop.
    nextHopName String
    The name of the next hop.
    nextHopType String
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    routeEntryId String
    The id of the route entry.
    routeEntryName String
    A name of route entry.
    routeTableId String
    An id of route table.
    status String
    The status of the route entry.
    type String
    The type of the route entry.
    vpcId String
    The id of the virtual private cloud (VPC) to which the route entry belongs.
    description string
    The description of the route entry.
    destinationCidrBlock string
    A destination CIDR block of route entry.
    id string
    The id of the route entry.
    nextHopId string
    An id of next hop.
    nextHopName string
    The name of the next hop.
    nextHopType string
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    routeEntryId string
    The id of the route entry.
    routeEntryName string
    A name of route entry.
    routeTableId string
    An id of route table.
    status string
    The status of the route entry.
    type string
    The type of the route entry.
    vpcId string
    The id of the virtual private cloud (VPC) to which the route entry belongs.
    description str
    The description of the route entry.
    destination_cidr_block str
    A destination CIDR block of route entry.
    id str
    The id of the route entry.
    next_hop_id str
    An id of next hop.
    next_hop_name str
    The name of the next hop.
    next_hop_type str
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    route_entry_id str
    The id of the route entry.
    route_entry_name str
    A name of route entry.
    route_table_id str
    An id of route table.
    status str
    The status of the route entry.
    type str
    The type of the route entry.
    vpc_id str
    The id of the virtual private cloud (VPC) to which the route entry belongs.
    description String
    The description of the route entry.
    destinationCidrBlock String
    A destination CIDR block of route entry.
    id String
    The id of the route entry.
    nextHopId String
    An id of next hop.
    nextHopName String
    The name of the next hop.
    nextHopType String
    A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
    routeEntryId String
    The id of the route entry.
    routeEntryName String
    A name of route entry.
    routeTableId String
    An id of route table.
    status String
    The status of the route entry.
    type String
    The type of the route entry.
    vpcId String
    The id of the virtual private cloud (VPC) to which the route entry belongs.

    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.26 published on Friday, Sep 13, 2024 by Volcengine