Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 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.getRouteEntries({
ids: [],
routeTableId: "vtb-274e19skkuhog7fap8u4i8ird",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.get_route_entries(ids=[],
route_table_id="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.GetRouteEntries(ctx, &vpc.GetRouteEntriesArgs{
Ids: []interface{}{},
RouteTableId: "vtb-274e19skkuhog7fap8u4i8ird",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Vpc.GetRouteEntries.Invoke(new()
{
Ids = new() { },
RouteTableId = "vtb-274e19skkuhog7fap8u4i8ird",
});
});
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.GetRouteEntriesArgs;
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.getRouteEntries(GetRouteEntriesArgs.builder()
.ids()
.routeTableId("vtb-274e19skkuhog7fap8u4i8ird")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:vpc:getRouteEntries
Arguments:
ids: []
routeTableId: vtb-274e19skkuhog7fap8u4i8ird
Using getRouteEntries
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 getRouteEntries(args: GetRouteEntriesArgs, opts?: InvokeOptions): Promise<GetRouteEntriesResult>
function getRouteEntriesOutput(args: GetRouteEntriesOutputArgs, opts?: InvokeOptions): Output<GetRouteEntriesResult>def get_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) -> GetRouteEntriesResult
def get_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[GetRouteEntriesResult]func GetRouteEntries(ctx *Context, args *GetRouteEntriesArgs, opts ...InvokeOption) (*GetRouteEntriesResult, error)
func GetRouteEntriesOutput(ctx *Context, args *GetRouteEntriesOutputArgs, opts ...InvokeOption) GetRouteEntriesResultOutput> Note: This function is named GetRouteEntries in the Go SDK.
public static class GetRouteEntries
{
public static Task<GetRouteEntriesResult> InvokeAsync(GetRouteEntriesArgs args, InvokeOptions? opts = null)
public static Output<GetRouteEntriesResult> Invoke(GetRouteEntriesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRouteEntriesResult> getRouteEntries(GetRouteEntriesArgs args, InvokeOptions options)
public static Output<GetRouteEntriesResult> getRouteEntries(GetRouteEntriesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vpc/getRouteEntries:getRouteEntries
arguments:
# arguments dictionaryThe following arguments are supported:
- Route
Table stringId - An id of route table.
- Destination
Cidr stringBlock - A destination CIDR block of route entry.
- Ids List<string>
- A list of route entry ids.
- Next
Hop stringId - An id of next hop.
- Next
Hop stringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - Output
File string - File name where to save data source results.
- Route
Entry stringName - A name of route entry.
- Route
Entry stringType - A type of route entry.
- Route
Table stringId - An id of route table.
- Destination
Cidr stringBlock - A destination CIDR block of route entry.
- Ids []string
- A list of route entry ids.
- Next
Hop stringId - An id of next hop.
- Next
Hop stringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - Output
File string - File name where to save data source results.
- Route
Entry stringName - A name of route entry.
- Route
Entry stringType - A type of route entry.
- route
Table StringId - An id of route table.
- destination
Cidr StringBlock - A destination CIDR block of route entry.
- ids List<String>
- A list of route entry ids.
- next
Hop StringId - An id of next hop.
- next
Hop StringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - output
File String - File name where to save data source results.
- route
Entry StringName - A name of route entry.
- route
Entry StringType - A type of route entry.
- route
Table stringId - An id of route table.
- destination
Cidr stringBlock - A destination CIDR block of route entry.
- ids string[]
- A list of route entry ids.
- next
Hop stringId - An id of next hop.
- next
Hop stringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - output
File string - File name where to save data source results.
- route
Entry stringName - A name of route entry.
- route
Entry stringType - A type of route entry.
- route_
table_ strid - An id of route table.
- destination_
cidr_ strblock - A destination CIDR block of route entry.
- ids Sequence[str]
- A list of route entry ids.
- next_
hop_ strid - An id of next hop.
- next_
hop_ strtype - 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_ strname - A name of route entry.
- route_
entry_ strtype - A type of route entry.
- route
Table StringId - An id of route table.
- destination
Cidr StringBlock - A destination CIDR block of route entry.
- ids List<String>
- A list of route entry ids.
- next
Hop StringId - An id of next hop.
- next
Hop StringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - output
File String - File name where to save data source results.
- route
Entry StringName - A name of route entry.
- route
Entry StringType - A type of route entry.
getRouteEntries Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Entries List<GetRoute Entries Route Entry> - The collection of route tables.
- Route
Table stringId - The id of the route table to which the route entry belongs.
- Total
Count int - The total count of route entry query.
- Destination
Cidr stringBlock - The destination CIDR block of the route entry.
- Ids List<string>
- Next
Hop stringId - The id of the next hop.
- Next
Hop stringType - The type of the next hop.
- Output
File string - Route
Entry stringName - The name of the route entry.
- Route
Entry stringType
- Id string
- The provider-assigned unique ID for this managed resource.
- Route
Entries []GetRoute Entries Route Entry - The collection of route tables.
- Route
Table stringId - The id of the route table to which the route entry belongs.
- Total
Count int - The total count of route entry query.
- Destination
Cidr stringBlock - The destination CIDR block of the route entry.
- Ids []string
- Next
Hop stringId - The id of the next hop.
- Next
Hop stringType - The type of the next hop.
- Output
File string - Route
Entry stringName - The name of the route entry.
- Route
Entry stringType
- id String
- The provider-assigned unique ID for this managed resource.
- route
Entries List<GetRoute Entries Route Entry> - The collection of route tables.
- route
Table StringId - The id of the route table to which the route entry belongs.
- total
Count Integer - The total count of route entry query.
- destination
Cidr StringBlock - The destination CIDR block of the route entry.
- ids List<String>
- next
Hop StringId - The id of the next hop.
- next
Hop StringType - The type of the next hop.
- output
File String - route
Entry StringName - The name of the route entry.
- route
Entry StringType
- id string
- The provider-assigned unique ID for this managed resource.
- route
Entries GetRoute Entries Route Entry[] - The collection of route tables.
- route
Table stringId - The id of the route table to which the route entry belongs.
- total
Count number - The total count of route entry query.
- destination
Cidr stringBlock - The destination CIDR block of the route entry.
- ids string[]
- next
Hop stringId - The id of the next hop.
- next
Hop stringType - The type of the next hop.
- output
File string - route
Entry stringName - The name of the route entry.
- route
Entry stringType
- id str
- The provider-assigned unique ID for this managed resource.
- route_
entries Sequence[GetRoute Entries Route Entry] - The collection of route tables.
- route_
table_ strid - The id of the route table to which the route entry belongs.
- total_
count int - The total count of route entry query.
- destination_
cidr_ strblock - The destination CIDR block of the route entry.
- ids Sequence[str]
- next_
hop_ strid - The id of the next hop.
- next_
hop_ strtype - The type of the next hop.
- output_
file str - route_
entry_ strname - The name of the route entry.
- route_
entry_ strtype
- id String
- The provider-assigned unique ID for this managed resource.
- route
Entries List<Property Map> - The collection of route tables.
- route
Table StringId - The id of the route table to which the route entry belongs.
- total
Count Number - The total count of route entry query.
- destination
Cidr StringBlock - The destination CIDR block of the route entry.
- ids List<String>
- next
Hop StringId - The id of the next hop.
- next
Hop StringType - The type of the next hop.
- output
File String - route
Entry StringName - The name of the route entry.
- route
Entry StringType
Supporting Types
GetRouteEntriesRouteEntry
- Description string
- The description of the route entry.
- Destination
Cidr stringBlock - A destination CIDR block of route entry.
- Id string
- The id of the route entry.
- Next
Hop stringId - An id of next hop.
- Next
Hop stringName - The name of the next hop.
- Next
Hop stringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - Route
Entry stringId - The id of the route entry.
- Route
Entry stringName - A name of route entry.
- Route
Table stringId - An id of route table.
- Status string
- The status of the route entry.
- Type string
- The type of the route entry.
- Vpc
Id string - The id of the virtual private cloud (VPC) to which the route entry belongs.
- Description string
- The description of the route entry.
- Destination
Cidr stringBlock - A destination CIDR block of route entry.
- Id string
- The id of the route entry.
- Next
Hop stringId - An id of next hop.
- Next
Hop stringName - The name of the next hop.
- Next
Hop stringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - Route
Entry stringId - The id of the route entry.
- Route
Entry stringName - A name of route entry.
- Route
Table stringId - An id of route table.
- Status string
- The status of the route entry.
- Type string
- The type of the route entry.
- Vpc
Id string - The id of the virtual private cloud (VPC) to which the route entry belongs.
- description String
- The description of the route entry.
- destination
Cidr StringBlock - A destination CIDR block of route entry.
- id String
- The id of the route entry.
- next
Hop StringId - An id of next hop.
- next
Hop StringName - The name of the next hop.
- next
Hop StringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - route
Entry StringId - The id of the route entry.
- route
Entry StringName - A name of route entry.
- route
Table StringId - An id of route table.
- status String
- The status of the route entry.
- type String
- The type of the route entry.
- vpc
Id String - The id of the virtual private cloud (VPC) to which the route entry belongs.
- description string
- The description of the route entry.
- destination
Cidr stringBlock - A destination CIDR block of route entry.
- id string
- The id of the route entry.
- next
Hop stringId - An id of next hop.
- next
Hop stringName - The name of the next hop.
- next
Hop stringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - route
Entry stringId - The id of the route entry.
- route
Entry stringName - A name of route entry.
- route
Table stringId - An id of route table.
- status string
- The status of the route entry.
- type string
- The type of the route entry.
- vpc
Id 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_ strblock - A destination CIDR block of route entry.
- id str
- The id of the route entry.
- next_
hop_ strid - An id of next hop.
- next_
hop_ strname - The name of the next hop.
- next_
hop_ strtype - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - route_
entry_ strid - The id of the route entry.
- route_
entry_ strname - A name of route entry.
- route_
table_ strid - 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.
- destination
Cidr StringBlock - A destination CIDR block of route entry.
- id String
- The id of the route entry.
- next
Hop StringId - An id of next hop.
- next
Hop StringName - The name of the next hop.
- next
Hop StringType - A type of next hop, Optional choice contains
Instance,NetworkInterface,NatGW,VpnGW. - route
Entry StringId - The id of the route entry.
- route
Entry StringName - A name of route entry.
- route
Table StringId - An id of route table.
- status String
- The status of the route entry.
- type String
- The type of the route entry.
- vpc
Id 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
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
