tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getVpnGatewayRoutes
Start a Neo task
Explain and create a tencentcloud.getVpnGatewayRoutes resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
Use this data source to query detailed information of VPN gateways routes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getVpnGatewayRoutes({
vpnGatewayId: "vpngw-8dua3tbl",
destinationCidr: "10.0.0.0/8",
instanceType: "VPNCONN",
instanceId: "vpnx-m16m4sw4",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_vpn_gateway_routes(vpn_gateway_id="vpngw-8dua3tbl",
destination_cidr="10.0.0.0/8",
instance_type="VPNCONN",
instance_id="vpnx-m16m4sw4")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetVpnGatewayRoutes(ctx, &tencentcloud.GetVpnGatewayRoutesArgs{
VpnGatewayId: "vpngw-8dua3tbl",
DestinationCidr: pulumi.StringRef("10.0.0.0/8"),
InstanceType: pulumi.StringRef("VPNCONN"),
InstanceId: pulumi.StringRef("vpnx-m16m4sw4"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetVpnGatewayRoutes.Invoke(new()
{
VpnGatewayId = "vpngw-8dua3tbl",
DestinationCidr = "10.0.0.0/8",
InstanceType = "VPNCONN",
InstanceId = "vpnx-m16m4sw4",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetVpnGatewayRoutesArgs;
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 example = TencentcloudFunctions.getVpnGatewayRoutes(GetVpnGatewayRoutesArgs.builder()
.vpnGatewayId("vpngw-8dua3tbl")
.destinationCidr("10.0.0.0/8")
.instanceType("VPNCONN")
.instanceId("vpnx-m16m4sw4")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getVpnGatewayRoutes
arguments:
vpnGatewayId: vpngw-8dua3tbl
destinationCidr: 10.0.0.0/8
instanceType: VPNCONN
instanceId: vpnx-m16m4sw4
Using getVpnGatewayRoutes
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 getVpnGatewayRoutes(args: GetVpnGatewayRoutesArgs, opts?: InvokeOptions): Promise<GetVpnGatewayRoutesResult>
function getVpnGatewayRoutesOutput(args: GetVpnGatewayRoutesOutputArgs, opts?: InvokeOptions): Output<GetVpnGatewayRoutesResult>def get_vpn_gateway_routes(destination_cidr: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
instance_type: Optional[str] = None,
result_output_file: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVpnGatewayRoutesResult
def get_vpn_gateway_routes_output(destination_cidr: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
instance_type: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
vpn_gateway_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVpnGatewayRoutesResult]func GetVpnGatewayRoutes(ctx *Context, args *GetVpnGatewayRoutesArgs, opts ...InvokeOption) (*GetVpnGatewayRoutesResult, error)
func GetVpnGatewayRoutesOutput(ctx *Context, args *GetVpnGatewayRoutesOutputArgs, opts ...InvokeOption) GetVpnGatewayRoutesResultOutput> Note: This function is named GetVpnGatewayRoutes in the Go SDK.
public static class GetVpnGatewayRoutes
{
public static Task<GetVpnGatewayRoutesResult> InvokeAsync(GetVpnGatewayRoutesArgs args, InvokeOptions? opts = null)
public static Output<GetVpnGatewayRoutesResult> Invoke(GetVpnGatewayRoutesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVpnGatewayRoutesResult> getVpnGatewayRoutes(GetVpnGatewayRoutesArgs args, InvokeOptions options)
public static Output<GetVpnGatewayRoutesResult> getVpnGatewayRoutes(GetVpnGatewayRoutesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getVpnGatewayRoutes:getVpnGatewayRoutes
arguments:
# arguments dictionaryThe following arguments are supported:
- Vpn
Gateway stringId - VPN gateway ID.
- Destination
Cidr string - Destination IDC IP range.
- Id string
- Instance
Id string - Instance ID of the next hop.
- Instance
Type string - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- Result
Output stringFile - Used to save results.
- Vpn
Gateway stringId - VPN gateway ID.
- Destination
Cidr string - Destination IDC IP range.
- Id string
- Instance
Id string - Instance ID of the next hop.
- Instance
Type string - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- Result
Output stringFile - Used to save results.
- vpn
Gateway StringId - VPN gateway ID.
- destination
Cidr String - Destination IDC IP range.
- id String
- instance
Id String - Instance ID of the next hop.
- instance
Type String - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- result
Output StringFile - Used to save results.
- vpn
Gateway stringId - VPN gateway ID.
- destination
Cidr string - Destination IDC IP range.
- id string
- instance
Id string - Instance ID of the next hop.
- instance
Type string - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- result
Output stringFile - Used to save results.
- vpn_
gateway_ strid - VPN gateway ID.
- destination_
cidr str - Destination IDC IP range.
- id str
- instance_
id str - Instance ID of the next hop.
- instance_
type str - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- result_
output_ strfile - Used to save results.
- vpn
Gateway StringId - VPN gateway ID.
- destination
Cidr String - Destination IDC IP range.
- id String
- instance
Id String - Instance ID of the next hop.
- instance
Type String - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- result
Output StringFile - Used to save results.
getVpnGatewayRoutes Result
The following output properties are available:
- Id string
- Vpn
Gateway stringId - Vpn
Gateway List<GetRoute Lists Vpn Gateway Routes Vpn Gateway Route List> - Information list of the vpn gateway routes.
- Destination
Cidr string - Instance
Id string - Instance
Type string - Result
Output stringFile
- Id string
- Vpn
Gateway stringId - Vpn
Gateway []GetRoute Lists Vpn Gateway Routes Vpn Gateway Route List - Information list of the vpn gateway routes.
- Destination
Cidr string - Instance
Id string - Instance
Type string - Result
Output stringFile
- id String
- vpn
Gateway StringId - vpn
Gateway List<GetRoute Lists Vpn Gateway Routes Vpn Gateway Route List> - Information list of the vpn gateway routes.
- destination
Cidr String - instance
Id String - instance
Type String - result
Output StringFile
- id string
- vpn
Gateway stringId - vpn
Gateway GetRoute Lists Vpn Gateway Routes Vpn Gateway Route List[] - Information list of the vpn gateway routes.
- destination
Cidr string - instance
Id string - instance
Type string - result
Output stringFile
- id str
- vpn_
gateway_ strid - vpn_
gateway_ Sequence[Getroute_ lists Vpn Gateway Routes Vpn Gateway Route List] - Information list of the vpn gateway routes.
- destination_
cidr str - instance_
id str - instance_
type str - result_
output_ strfile
- id String
- vpn
Gateway StringId - vpn
Gateway List<Property Map>Route Lists - Information list of the vpn gateway routes.
- destination
Cidr String - instance
Id String - instance
Type String - result
Output StringFile
Supporting Types
GetVpnGatewayRoutesVpnGatewayRouteList
- Create
Time string - Create time.
- Destination
Cidr stringBlock - Instance
Id string - Instance ID of the next hop.
- Instance
Type string - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- Priority double
- Route
Id string - Route ID.
- Status string
- Type string
- Route type. Default value: Static.
- Update
Time string - Update time.
- Vpn
Gateway stringId - VPN gateway ID.
- Create
Time string - Create time.
- Destination
Cidr stringBlock - Instance
Id string - Instance ID of the next hop.
- Instance
Type string - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- Priority float64
- Route
Id string - Route ID.
- Status string
- Type string
- Route type. Default value: Static.
- Update
Time string - Update time.
- Vpn
Gateway stringId - VPN gateway ID.
- create
Time String - Create time.
- destination
Cidr StringBlock - instance
Id String - Instance ID of the next hop.
- instance
Type String - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- priority Double
- route
Id String - Route ID.
- status String
- type String
- Route type. Default value: Static.
- update
Time String - Update time.
- vpn
Gateway StringId - VPN gateway ID.
- create
Time string - Create time.
- destination
Cidr stringBlock - instance
Id string - Instance ID of the next hop.
- instance
Type string - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- priority number
- route
Id string - Route ID.
- status string
- type string
- Route type. Default value: Static.
- update
Time string - Update time.
- vpn
Gateway stringId - VPN gateway ID.
- create_
time str - Create time.
- destination_
cidr_ strblock - instance_
id str - Instance ID of the next hop.
- instance_
type str - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- priority float
- route_
id str - Route ID.
- status str
- type str
- Route type. Default value: Static.
- update_
time str - Update time.
- vpn_
gateway_ strid - VPN gateway ID.
- create
Time String - Create time.
- destination
Cidr StringBlock - instance
Id String - Instance ID of the next hop.
- instance
Type String - Next hop type (type of the associated instance). Valid values: VPNCONN (VPN tunnel) and CCN (CCN instance).
- priority Number
- route
Id String - Route ID.
- status String
- type String
- Route type. Default value: Static.
- update
Time String - Update time.
- vpn
Gateway StringId - VPN gateway ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
