1. Packages
  2. Volcengine
  3. API Docs
  4. vpc
  5. RouteEntries
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.vpc.RouteEntries

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

Use this data source to query detailed information of route entries

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";

const default = volcengine.vpc.RouteEntries({
    ids: [],
    routeTableId: "vtb-274e19skkuhog7fap8u4i8ird",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

default = volcengine.vpc.route_entries(ids=[],
    route_table_id="vtb-274e19skkuhog7fap8u4i8ird")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  default:
    fn::invoke:
      Function: volcengine:vpc:RouteEntries
      Arguments:
        ids: []
        routeTableId: vtb-274e19skkuhog7fap8u4i8ird
Copy

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>
Copy
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]
Copy
func RouteEntries(ctx *Context, args *RouteEntriesArgs, opts ...InvokeOption) (*RouteEntriesResult, error)
func RouteEntriesOutput(ctx *Context, args *RouteEntriesOutputArgs, opts ...InvokeOption) RouteEntriesResultOutput
Copy
public static class RouteEntries 
{
    public static Task<RouteEntriesResult> InvokeAsync(RouteEntriesArgs args, InvokeOptions? opts = null)
    public static Output<RouteEntriesResult> Invoke(RouteEntriesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<RouteEntriesResult> routeEntries(RouteEntriesArgs args, InvokeOptions options)
public static Output<RouteEntriesResult> routeEntries(RouteEntriesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:vpc:RouteEntries
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RouteTableId This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. string
The description of the route entry.
DestinationCidrBlock This property is required. string
A destination CIDR block of route entry.
Id This property is required. string
The id of the route entry.
NextHopId This property is required. string
An id of next hop.
NextHopName This property is required. string
The name of the next hop.
NextHopType This property is required. string
A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
RouteEntryId This property is required. string
The id of the route entry.
RouteEntryName This property is required. string
A name of route entry.
RouteTableId This property is required. string
An id of route table.
Status This property is required. string
The status of the route entry.
Type This property is required. string
The type of the route entry.
VpcId This property is required. string
The id of the virtual private cloud (VPC) to which the route entry belongs.
Description This property is required. string
The description of the route entry.
DestinationCidrBlock This property is required. string
A destination CIDR block of route entry.
Id This property is required. string
The id of the route entry.
NextHopId This property is required. string
An id of next hop.
NextHopName This property is required. string
The name of the next hop.
NextHopType This property is required. string
A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
RouteEntryId This property is required. string
The id of the route entry.
RouteEntryName This property is required. string
A name of route entry.
RouteTableId This property is required. string
An id of route table.
Status This property is required. string
The status of the route entry.
Type This property is required. string
The type of the route entry.
VpcId This property is required. string
The id of the virtual private cloud (VPC) to which the route entry belongs.
description This property is required. String
The description of the route entry.
destinationCidrBlock This property is required. String
A destination CIDR block of route entry.
id This property is required. String
The id of the route entry.
nextHopId This property is required. String
An id of next hop.
nextHopName This property is required. String
The name of the next hop.
nextHopType This property is required. String
A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
routeEntryId This property is required. String
The id of the route entry.
routeEntryName This property is required. String
A name of route entry.
routeTableId This property is required. String
An id of route table.
status This property is required. String
The status of the route entry.
type This property is required. String
The type of the route entry.
vpcId This property is required. String
The id of the virtual private cloud (VPC) to which the route entry belongs.
description This property is required. string
The description of the route entry.
destinationCidrBlock This property is required. string
A destination CIDR block of route entry.
id This property is required. string
The id of the route entry.
nextHopId This property is required. string
An id of next hop.
nextHopName This property is required. string
The name of the next hop.
nextHopType This property is required. string
A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
routeEntryId This property is required. string
The id of the route entry.
routeEntryName This property is required. string
A name of route entry.
routeTableId This property is required. string
An id of route table.
status This property is required. string
The status of the route entry.
type This property is required. string
The type of the route entry.
vpcId This property is required. string
The id of the virtual private cloud (VPC) to which the route entry belongs.
description This property is required. str
The description of the route entry.
destination_cidr_block This property is required. str
A destination CIDR block of route entry.
id This property is required. str
The id of the route entry.
next_hop_id This property is required. str
An id of next hop.
next_hop_name This property is required. str
The name of the next hop.
next_hop_type This property is required. str
A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
route_entry_id This property is required. str
The id of the route entry.
route_entry_name This property is required. str
A name of route entry.
route_table_id This property is required. str
An id of route table.
status This property is required. str
The status of the route entry.
type This property is required. str
The type of the route entry.
vpc_id This property is required. str
The id of the virtual private cloud (VPC) to which the route entry belongs.
description This property is required. String
The description of the route entry.
destinationCidrBlock This property is required. String
A destination CIDR block of route entry.
id This property is required. String
The id of the route entry.
nextHopId This property is required. String
An id of next hop.
nextHopName This property is required. String
The name of the next hop.
nextHopType This property is required. String
A type of next hop, Optional choice contains Instance, NetworkInterface, NatGW, VpnGW.
routeEntryId This property is required. String
The id of the route entry.
routeEntryName This property is required. String
A name of route entry.
routeTableId This property is required. String
An id of route table.
status This property is required. String
The status of the route entry.
type This property is required. String
The type of the route entry.
vpcId This property is required. 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 v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine