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 direct connect gateway routes
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.direct_connect.getGatewayRoutes({
ids: [
"dcr-638ry33wmzggn3gd6gv****",
"dcr-20d6tkadi2k8w65sqhgbj****",
],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.direct_connect.get_gateway_routes(ids=[
"dcr-638ry33wmzggn3gd6gv****",
"dcr-20d6tkadi2k8w65sqhgbj****",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/direct_connect"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := direct_connect.GetGatewayRoutes(ctx, &direct_connect.GetGatewayRoutesArgs{
Ids: []string{
"dcr-638ry33wmzggn3gd6gv****",
"dcr-20d6tkadi2k8w65sqhgbj****",
},
}, 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 foo = Volcengine.Direct_connect.GetGatewayRoutes.Invoke(new()
{
Ids = new[]
{
"dcr-638ry33wmzggn3gd6gv****",
"dcr-20d6tkadi2k8w65sqhgbj****",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.direct_connect.Direct_connectFunctions;
import com.pulumi.volcengine.direct_connect.inputs.GetGatewayRoutesArgs;
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 foo = Direct_connectFunctions.getGatewayRoutes(GetGatewayRoutesArgs.builder()
.ids(
"dcr-638ry33wmzggn3gd6gv****",
"dcr-20d6tkadi2k8w65sqhgbj****")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:direct_connect:getGatewayRoutes
Arguments:
ids:
- dcr-638ry33wmzggn3gd6gv****
- dcr-20d6tkadi2k8w65sqhgbj****
Using getGatewayRoutes
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 getGatewayRoutes(args: GetGatewayRoutesArgs, opts?: InvokeOptions): Promise<GetGatewayRoutesResult>
function getGatewayRoutesOutput(args: GetGatewayRoutesOutputArgs, opts?: InvokeOptions): Output<GetGatewayRoutesResult>def get_gateway_routes(destination_cidr_block: Optional[str] = None,
direct_connect_gateway_id: 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_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewayRoutesResult
def get_gateway_routes_output(destination_cidr_block: Optional[pulumi.Input[str]] = None,
direct_connect_gateway_id: 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_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGatewayRoutesResult]func GetGatewayRoutes(ctx *Context, args *GetGatewayRoutesArgs, opts ...InvokeOption) (*GetGatewayRoutesResult, error)
func GetGatewayRoutesOutput(ctx *Context, args *GetGatewayRoutesOutputArgs, opts ...InvokeOption) GetGatewayRoutesResultOutput> Note: This function is named GetGatewayRoutes in the Go SDK.
public static class GetGatewayRoutes
{
public static Task<GetGatewayRoutesResult> InvokeAsync(GetGatewayRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetGatewayRoutesResult> Invoke(GetGatewayRoutesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGatewayRoutesResult> getGatewayRoutes(GetGatewayRoutesArgs args, InvokeOptions options)
public static Output<GetGatewayRoutesResult> getGatewayRoutes(GetGatewayRoutesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:direct_connect/getGatewayRoutes:getGatewayRoutes
arguments:
# arguments dictionaryThe following arguments are supported:
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids List<string>
- A list of IDs.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - File name where to save data source results.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids []string
- A list of IDs.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - File name where to save data source results.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - File name where to save data source results.
- route
Type String - The type of route. The value can be BGP or CEN or Static.
- destination
Cidr stringBlock - The cidr block.
- direct
Connect stringGateway Id - The id of direct connect gateway.
- ids string[]
- A list of IDs.
- next
Hop stringId - The id of next hop.
- next
Hop stringType - The type of next hop.
- output
File string - File name where to save data source results.
- route
Type string - The type of route. The value can be BGP or CEN or Static.
- destination_
cidr_ strblock - The cidr block.
- direct_
connect_ strgateway_ id - The id of direct connect gateway.
- ids Sequence[str]
- A list of IDs.
- next_
hop_ strid - The id of next hop.
- next_
hop_ strtype - The type of next hop.
- output_
file str - File name where to save data source results.
- route_
type str - The type of route. The value can be BGP or CEN or Static.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- A list of IDs.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - File name where to save data source results.
- route
Type String - The type of route. The value can be BGP or CEN or Static.
getGatewayRoutes Result
The following output properties are available:
- Direct
Connect List<GetGateway Routes Gateway Routes Direct Connect Gateway Route> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids List<string>
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - Route
Type string - The type of route.
- Direct
Connect []GetGateway Routes Gateway Routes Direct Connect Gateway Route - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Ids []string
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Output
File string - Route
Type string - The type of route.
- direct
Connect List<GetGateway Routes Gateway Routes Direct Connect Gateway Route> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - route
Type String - The type of route.
- direct
Connect GetGateway Routes Gateway Routes Direct Connect Gateway Route[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- destination
Cidr stringBlock - The cidr block.
- direct
Connect stringGateway Id - The id of direct connect gateway.
- ids string[]
- next
Hop stringId - The id of next hop.
- next
Hop stringType - The type of next hop.
- output
File string - route
Type string - The type of route.
- direct_
connect_ Sequence[Getgateway_ routes Gateway Routes Direct Connect Gateway Route] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- destination_
cidr_ strblock - The cidr block.
- direct_
connect_ strgateway_ id - The id of direct connect gateway.
- ids Sequence[str]
- next_
hop_ strid - The id of next hop.
- next_
hop_ strtype - The type of next hop.
- output_
file str - route_
type str - The type of route.
- direct
Connect List<Property Map>Gateway Routes - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- ids List<String>
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- output
File String - route
Type String - The type of route.
Supporting Types
GetGatewayRoutesDirectConnectGatewayRoute
- Account
Id string - The id of account.
- Creation
Time string - The create time.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Direct
Connect stringGateway Route Id - The id of direct connect gateway route.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- Status string
- The status info.
- Account
Id string - The id of account.
- Creation
Time string - The create time.
- Destination
Cidr stringBlock - The cidr block.
- Direct
Connect stringGateway Id - The id of direct connect gateway.
- Direct
Connect stringGateway Route Id - The id of direct connect gateway route.
- Next
Hop stringId - The id of next hop.
- Next
Hop stringType - The type of next hop.
- Route
Type string - The type of route. The value can be BGP or CEN or Static.
- Status string
- The status info.
- account
Id String - The id of account.
- creation
Time String - The create time.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- direct
Connect StringGateway Route Id - The id of direct connect gateway route.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- route
Type String - The type of route. The value can be BGP or CEN or Static.
- status String
- The status info.
- account
Id string - The id of account.
- creation
Time string - The create time.
- destination
Cidr stringBlock - The cidr block.
- direct
Connect stringGateway Id - The id of direct connect gateway.
- direct
Connect stringGateway Route Id - The id of direct connect gateway route.
- next
Hop stringId - The id of next hop.
- next
Hop stringType - The type of next hop.
- route
Type string - The type of route. The value can be BGP or CEN or Static.
- status string
- The status info.
- account_
id str - The id of account.
- creation_
time str - The create time.
- destination_
cidr_ strblock - The cidr block.
- direct_
connect_ strgateway_ id - The id of direct connect gateway.
- direct_
connect_ strgateway_ route_ id - The id of direct connect gateway route.
- next_
hop_ strid - The id of next hop.
- next_
hop_ strtype - The type of next hop.
- route_
type str - The type of route. The value can be BGP or CEN or Static.
- status str
- The status info.
- account
Id String - The id of account.
- creation
Time String - The create time.
- destination
Cidr StringBlock - The cidr block.
- direct
Connect StringGateway Id - The id of direct connect gateway.
- direct
Connect StringGateway Route Id - The id of direct connect gateway route.
- next
Hop StringId - The id of next hop.
- next
Hop StringType - The type of next hop.
- route
Type String - The type of route. The value can be BGP or CEN or Static.
- status String
- The status info.
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
