alicloud.vpn.GatewayVcoRoute
Explore with Pulumi AI
Provides a VPN Gateway Vco Route resource.
For information about VPN Gateway Vco Route and how to use it, see What is Vco Route.
NOTE: Available in v1.183.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultInstance = new alicloud.cen.Instance("default", {cenInstanceName: name});
const defaultTransitRouter = new alicloud.cen.TransitRouter("default", {
cenId: defaultInstance.id,
transitRouterDescription: "desd",
transitRouterName: name,
});
const default = alicloud.cen.getTransitRouterAvailableResources({});
const defaultCustomerGateway = new alicloud.vpn.CustomerGateway("default", {
name: name,
ipAddress: "42.104.22.210",
asn: "45014",
description: "testAccVpnConnectionDesc",
});
const defaultGatewayVpnAttachment = new alicloud.vpn.GatewayVpnAttachment("default", {
customerGatewayId: defaultCustomerGateway.id,
networkType: "public",
localSubnet: "0.0.0.0/0",
remoteSubnet: "0.0.0.0/0",
effectImmediately: false,
ikeConfig: {
ikeAuthAlg: "md5",
ikeEncAlg: "des",
ikeVersion: "ikev2",
ikeMode: "main",
ikeLifetime: 86400,
psk: "tf-testvpn2",
ikePfs: "group1",
remoteId: "testbob2",
localId: "testalice2",
},
ipsecConfig: {
ipsecPfs: "group5",
ipsecEncAlg: "des",
ipsecAuthAlg: "md5",
ipsecLifetime: 86400,
},
bgpConfig: {
enable: true,
localAsn: 45014,
tunnelCidr: "169.254.11.0/30",
localBgpIp: "169.254.11.1",
},
healthCheckConfig: {
enable: true,
sip: "192.168.1.1",
dip: "10.0.0.1",
interval: 10,
retry: 10,
policy: "revoke_route",
},
enableDpd: true,
enableNatTraversal: true,
vpnAttachmentName: name,
});
const defaultTransitRouterVpnAttachment = new alicloud.cen.TransitRouterVpnAttachment("default", {
autoPublishRouteEnabled: false,
transitRouterAttachmentDescription: name,
transitRouterAttachmentName: name,
cenId: defaultTransitRouter.cenId,
transitRouterId: defaultTransitRouter.transitRouterId,
vpnId: defaultGatewayVpnAttachment.id,
zones: [{
zoneId: _default.then(_default => _default.resources?.[0]?.masterZones?.[0]),
}],
});
const defaultGatewayVcoRoute = new alicloud.vpn.GatewayVcoRoute("default", {
routeDest: "192.168.12.0/24",
nextHop: defaultTransitRouterVpnAttachment.vpnId,
vpnConnectionId: defaultTransitRouterVpnAttachment.vpnId,
weight: 100,
});
import pulumi
import pulumi_alicloud as alicloud
default_instance = alicloud.cen.Instance("default", cen_instance_name=name)
default_transit_router = alicloud.cen.TransitRouter("default",
cen_id=default_instance.id,
transit_router_description="desd",
transit_router_name=name)
default = alicloud.cen.get_transit_router_available_resources()
default_customer_gateway = alicloud.vpn.CustomerGateway("default",
name=name,
ip_address="42.104.22.210",
asn="45014",
description="testAccVpnConnectionDesc")
default_gateway_vpn_attachment = alicloud.vpn.GatewayVpnAttachment("default",
customer_gateway_id=default_customer_gateway.id,
network_type="public",
local_subnet="0.0.0.0/0",
remote_subnet="0.0.0.0/0",
effect_immediately=False,
ike_config={
"ike_auth_alg": "md5",
"ike_enc_alg": "des",
"ike_version": "ikev2",
"ike_mode": "main",
"ike_lifetime": 86400,
"psk": "tf-testvpn2",
"ike_pfs": "group1",
"remote_id": "testbob2",
"local_id": "testalice2",
},
ipsec_config={
"ipsec_pfs": "group5",
"ipsec_enc_alg": "des",
"ipsec_auth_alg": "md5",
"ipsec_lifetime": 86400,
},
bgp_config={
"enable": True,
"local_asn": 45014,
"tunnel_cidr": "169.254.11.0/30",
"local_bgp_ip": "169.254.11.1",
},
health_check_config={
"enable": True,
"sip": "192.168.1.1",
"dip": "10.0.0.1",
"interval": 10,
"retry": 10,
"policy": "revoke_route",
},
enable_dpd=True,
enable_nat_traversal=True,
vpn_attachment_name=name)
default_transit_router_vpn_attachment = alicloud.cen.TransitRouterVpnAttachment("default",
auto_publish_route_enabled=False,
transit_router_attachment_description=name,
transit_router_attachment_name=name,
cen_id=default_transit_router.cen_id,
transit_router_id=default_transit_router.transit_router_id,
vpn_id=default_gateway_vpn_attachment.id,
zones=[{
"zone_id": default.resources[0].master_zones[0],
}])
default_gateway_vco_route = alicloud.vpn.GatewayVcoRoute("default",
route_dest="192.168.12.0/24",
next_hop=default_transit_router_vpn_attachment.vpn_id,
vpn_connection_id=default_transit_router_vpn_attachment.vpn_id,
weight=100)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultInstance, err := cen.NewInstance(ctx, "default", &cen.InstanceArgs{
CenInstanceName: pulumi.Any(name),
})
if err != nil {
return err
}
defaultTransitRouter, err := cen.NewTransitRouter(ctx, "default", &cen.TransitRouterArgs{
CenId: defaultInstance.ID(),
TransitRouterDescription: pulumi.String("desd"),
TransitRouterName: pulumi.Any(name),
})
if err != nil {
return err
}
_default, err := cen.GetTransitRouterAvailableResources(ctx, nil, nil)
if err != nil {
return err
}
defaultCustomerGateway, err := vpn.NewCustomerGateway(ctx, "default", &vpn.CustomerGatewayArgs{
Name: pulumi.Any(name),
IpAddress: pulumi.String("42.104.22.210"),
Asn: pulumi.String("45014"),
Description: pulumi.String("testAccVpnConnectionDesc"),
})
if err != nil {
return err
}
defaultGatewayVpnAttachment, err := vpn.NewGatewayVpnAttachment(ctx, "default", &vpn.GatewayVpnAttachmentArgs{
CustomerGatewayId: defaultCustomerGateway.ID(),
NetworkType: pulumi.String("public"),
LocalSubnet: pulumi.String("0.0.0.0/0"),
RemoteSubnet: pulumi.String("0.0.0.0/0"),
EffectImmediately: pulumi.Bool(false),
IkeConfig: &vpn.GatewayVpnAttachmentIkeConfigArgs{
IkeAuthAlg: pulumi.String("md5"),
IkeEncAlg: pulumi.String("des"),
IkeVersion: pulumi.String("ikev2"),
IkeMode: pulumi.String("main"),
IkeLifetime: pulumi.Int(86400),
Psk: pulumi.String("tf-testvpn2"),
IkePfs: pulumi.String("group1"),
RemoteId: pulumi.String("testbob2"),
LocalId: pulumi.String("testalice2"),
},
IpsecConfig: &vpn.GatewayVpnAttachmentIpsecConfigArgs{
IpsecPfs: pulumi.String("group5"),
IpsecEncAlg: pulumi.String("des"),
IpsecAuthAlg: pulumi.String("md5"),
IpsecLifetime: pulumi.Int(86400),
},
BgpConfig: &vpn.GatewayVpnAttachmentBgpConfigArgs{
Enable: pulumi.Bool(true),
LocalAsn: pulumi.Int(45014),
TunnelCidr: pulumi.String("169.254.11.0/30"),
LocalBgpIp: pulumi.String("169.254.11.1"),
},
HealthCheckConfig: &vpn.GatewayVpnAttachmentHealthCheckConfigArgs{
Enable: pulumi.Bool(true),
Sip: pulumi.String("192.168.1.1"),
Dip: pulumi.String("10.0.0.1"),
Interval: pulumi.Int(10),
Retry: pulumi.Int(10),
Policy: pulumi.String("revoke_route"),
},
EnableDpd: pulumi.Bool(true),
EnableNatTraversal: pulumi.Bool(true),
VpnAttachmentName: pulumi.Any(name),
})
if err != nil {
return err
}
defaultTransitRouterVpnAttachment, err := cen.NewTransitRouterVpnAttachment(ctx, "default", &cen.TransitRouterVpnAttachmentArgs{
AutoPublishRouteEnabled: pulumi.Bool(false),
TransitRouterAttachmentDescription: pulumi.Any(name),
TransitRouterAttachmentName: pulumi.Any(name),
CenId: defaultTransitRouter.CenId,
TransitRouterId: defaultTransitRouter.TransitRouterId,
VpnId: defaultGatewayVpnAttachment.ID(),
Zones: cen.TransitRouterVpnAttachmentZoneArray{
&cen.TransitRouterVpnAttachmentZoneArgs{
ZoneId: pulumi.String(_default.Resources[0].MasterZones[0]),
},
},
})
if err != nil {
return err
}
_, err = vpn.NewGatewayVcoRoute(ctx, "default", &vpn.GatewayVcoRouteArgs{
RouteDest: pulumi.String("192.168.12.0/24"),
NextHop: defaultTransitRouterVpnAttachment.VpnId,
VpnConnectionId: defaultTransitRouterVpnAttachment.VpnId,
Weight: pulumi.Int(100),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultInstance = new AliCloud.Cen.Instance("default", new()
{
CenInstanceName = name,
});
var defaultTransitRouter = new AliCloud.Cen.TransitRouter("default", new()
{
CenId = defaultInstance.Id,
TransitRouterDescription = "desd",
TransitRouterName = name,
});
var @default = AliCloud.Cen.GetTransitRouterAvailableResources.Invoke();
var defaultCustomerGateway = new AliCloud.Vpn.CustomerGateway("default", new()
{
Name = name,
IpAddress = "42.104.22.210",
Asn = "45014",
Description = "testAccVpnConnectionDesc",
});
var defaultGatewayVpnAttachment = new AliCloud.Vpn.GatewayVpnAttachment("default", new()
{
CustomerGatewayId = defaultCustomerGateway.Id,
NetworkType = "public",
LocalSubnet = "0.0.0.0/0",
RemoteSubnet = "0.0.0.0/0",
EffectImmediately = false,
IkeConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentIkeConfigArgs
{
IkeAuthAlg = "md5",
IkeEncAlg = "des",
IkeVersion = "ikev2",
IkeMode = "main",
IkeLifetime = 86400,
Psk = "tf-testvpn2",
IkePfs = "group1",
RemoteId = "testbob2",
LocalId = "testalice2",
},
IpsecConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentIpsecConfigArgs
{
IpsecPfs = "group5",
IpsecEncAlg = "des",
IpsecAuthAlg = "md5",
IpsecLifetime = 86400,
},
BgpConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentBgpConfigArgs
{
Enable = true,
LocalAsn = 45014,
TunnelCidr = "169.254.11.0/30",
LocalBgpIp = "169.254.11.1",
},
HealthCheckConfig = new AliCloud.Vpn.Inputs.GatewayVpnAttachmentHealthCheckConfigArgs
{
Enable = true,
Sip = "192.168.1.1",
Dip = "10.0.0.1",
Interval = 10,
Retry = 10,
Policy = "revoke_route",
},
EnableDpd = true,
EnableNatTraversal = true,
VpnAttachmentName = name,
});
var defaultTransitRouterVpnAttachment = new AliCloud.Cen.TransitRouterVpnAttachment("default", new()
{
AutoPublishRouteEnabled = false,
TransitRouterAttachmentDescription = name,
TransitRouterAttachmentName = name,
CenId = defaultTransitRouter.CenId,
TransitRouterId = defaultTransitRouter.TransitRouterId,
VpnId = defaultGatewayVpnAttachment.Id,
Zones = new[]
{
new AliCloud.Cen.Inputs.TransitRouterVpnAttachmentZoneArgs
{
ZoneId = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[0])),
},
},
});
var defaultGatewayVcoRoute = new AliCloud.Vpn.GatewayVcoRoute("default", new()
{
RouteDest = "192.168.12.0/24",
NextHop = defaultTransitRouterVpnAttachment.VpnId,
VpnConnectionId = defaultTransitRouterVpnAttachment.VpnId,
Weight = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.TransitRouter;
import com.pulumi.alicloud.cen.TransitRouterArgs;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
import com.pulumi.alicloud.vpn.CustomerGateway;
import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
import com.pulumi.alicloud.vpn.GatewayVpnAttachment;
import com.pulumi.alicloud.vpn.GatewayVpnAttachmentArgs;
import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIkeConfigArgs;
import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentIpsecConfigArgs;
import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentBgpConfigArgs;
import com.pulumi.alicloud.vpn.inputs.GatewayVpnAttachmentHealthCheckConfigArgs;
import com.pulumi.alicloud.cen.TransitRouterVpnAttachment;
import com.pulumi.alicloud.cen.TransitRouterVpnAttachmentArgs;
import com.pulumi.alicloud.cen.inputs.TransitRouterVpnAttachmentZoneArgs;
import com.pulumi.alicloud.vpn.GatewayVcoRoute;
import com.pulumi.alicloud.vpn.GatewayVcoRouteArgs;
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) {
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.cenInstanceName(name)
.build());
var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()
.cenId(defaultInstance.id())
.transitRouterDescription("desd")
.transitRouterName(name)
.build());
final var default = CenFunctions.getTransitRouterAvailableResources();
var defaultCustomerGateway = new CustomerGateway("defaultCustomerGateway", CustomerGatewayArgs.builder()
.name(name)
.ipAddress("42.104.22.210")
.asn("45014")
.description("testAccVpnConnectionDesc")
.build());
var defaultGatewayVpnAttachment = new GatewayVpnAttachment("defaultGatewayVpnAttachment", GatewayVpnAttachmentArgs.builder()
.customerGatewayId(defaultCustomerGateway.id())
.networkType("public")
.localSubnet("0.0.0.0/0")
.remoteSubnet("0.0.0.0/0")
.effectImmediately(false)
.ikeConfig(GatewayVpnAttachmentIkeConfigArgs.builder()
.ikeAuthAlg("md5")
.ikeEncAlg("des")
.ikeVersion("ikev2")
.ikeMode("main")
.ikeLifetime(86400)
.psk("tf-testvpn2")
.ikePfs("group1")
.remoteId("testbob2")
.localId("testalice2")
.build())
.ipsecConfig(GatewayVpnAttachmentIpsecConfigArgs.builder()
.ipsecPfs("group5")
.ipsecEncAlg("des")
.ipsecAuthAlg("md5")
.ipsecLifetime(86400)
.build())
.bgpConfig(GatewayVpnAttachmentBgpConfigArgs.builder()
.enable(true)
.localAsn(45014)
.tunnelCidr("169.254.11.0/30")
.localBgpIp("169.254.11.1")
.build())
.healthCheckConfig(GatewayVpnAttachmentHealthCheckConfigArgs.builder()
.enable(true)
.sip("192.168.1.1")
.dip("10.0.0.1")
.interval(10)
.retry(10)
.policy("revoke_route")
.build())
.enableDpd(true)
.enableNatTraversal(true)
.vpnAttachmentName(name)
.build());
var defaultTransitRouterVpnAttachment = new TransitRouterVpnAttachment("defaultTransitRouterVpnAttachment", TransitRouterVpnAttachmentArgs.builder()
.autoPublishRouteEnabled(false)
.transitRouterAttachmentDescription(name)
.transitRouterAttachmentName(name)
.cenId(defaultTransitRouter.cenId())
.transitRouterId(defaultTransitRouter.transitRouterId())
.vpnId(defaultGatewayVpnAttachment.id())
.zones(TransitRouterVpnAttachmentZoneArgs.builder()
.zoneId(default_.resources()[0].masterZones()[0])
.build())
.build());
var defaultGatewayVcoRoute = new GatewayVcoRoute("defaultGatewayVcoRoute", GatewayVcoRouteArgs.builder()
.routeDest("192.168.12.0/24")
.nextHop(defaultTransitRouterVpnAttachment.vpnId())
.vpnConnectionId(defaultTransitRouterVpnAttachment.vpnId())
.weight(100)
.build());
}
}
resources:
defaultInstance:
type: alicloud:cen:Instance
name: default
properties:
cenInstanceName: ${name}
defaultTransitRouter:
type: alicloud:cen:TransitRouter
name: default
properties:
cenId: ${defaultInstance.id}
transitRouterDescription: desd
transitRouterName: ${name}
defaultCustomerGateway:
type: alicloud:vpn:CustomerGateway
name: default
properties:
name: ${name}
ipAddress: 42.104.22.210
asn: '45014'
description: testAccVpnConnectionDesc
defaultGatewayVpnAttachment:
type: alicloud:vpn:GatewayVpnAttachment
name: default
properties:
customerGatewayId: ${defaultCustomerGateway.id}
networkType: public
localSubnet: 0.0.0.0/0
remoteSubnet: 0.0.0.0/0
effectImmediately: false
ikeConfig:
ikeAuthAlg: md5
ikeEncAlg: des
ikeVersion: ikev2
ikeMode: main
ikeLifetime: 86400
psk: tf-testvpn2
ikePfs: group1
remoteId: testbob2
localId: testalice2
ipsecConfig:
ipsecPfs: group5
ipsecEncAlg: des
ipsecAuthAlg: md5
ipsecLifetime: 86400
bgpConfig:
enable: true
localAsn: 45014
tunnelCidr: 169.254.11.0/30
localBgpIp: 169.254.11.1
healthCheckConfig:
enable: true
sip: 192.168.1.1
dip: 10.0.0.1
interval: 10
retry: 10
policy: revoke_route
enableDpd: true
enableNatTraversal: true
vpnAttachmentName: ${name}
defaultTransitRouterVpnAttachment:
type: alicloud:cen:TransitRouterVpnAttachment
name: default
properties:
autoPublishRouteEnabled: false
transitRouterAttachmentDescription: ${name}
transitRouterAttachmentName: ${name}
cenId: ${defaultTransitRouter.cenId}
transitRouterId: ${defaultTransitRouter.transitRouterId}
vpnId: ${defaultGatewayVpnAttachment.id}
zones:
- zoneId: ${default.resources[0].masterZones[0]}
defaultGatewayVcoRoute:
type: alicloud:vpn:GatewayVcoRoute
name: default
properties:
routeDest: 192.168.12.0/24
nextHop: ${defaultTransitRouterVpnAttachment.vpnId}
vpnConnectionId: ${defaultTransitRouterVpnAttachment.vpnId}
weight: 100
variables:
default:
fn::invoke:
Function: alicloud:cen:getTransitRouterAvailableResources
Arguments: {}
Create GatewayVcoRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GatewayVcoRoute(name: string, args: GatewayVcoRouteArgs, opts?: CustomResourceOptions);
@overload
def GatewayVcoRoute(resource_name: str,
args: GatewayVcoRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GatewayVcoRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
next_hop: Optional[str] = None,
route_dest: Optional[str] = None,
vpn_connection_id: Optional[str] = None,
weight: Optional[int] = None)
func NewGatewayVcoRoute(ctx *Context, name string, args GatewayVcoRouteArgs, opts ...ResourceOption) (*GatewayVcoRoute, error)
public GatewayVcoRoute(string name, GatewayVcoRouteArgs args, CustomResourceOptions? opts = null)
public GatewayVcoRoute(String name, GatewayVcoRouteArgs args)
public GatewayVcoRoute(String name, GatewayVcoRouteArgs args, CustomResourceOptions options)
type: alicloud:vpn:GatewayVcoRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args GatewayVcoRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args GatewayVcoRouteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args GatewayVcoRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayVcoRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayVcoRouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gatewayVcoRouteResource = new AliCloud.Vpn.GatewayVcoRoute("gatewayVcoRouteResource", new()
{
NextHop = "string",
RouteDest = "string",
VpnConnectionId = "string",
Weight = 0,
});
example, err := vpn.NewGatewayVcoRoute(ctx, "gatewayVcoRouteResource", &vpn.GatewayVcoRouteArgs{
NextHop: pulumi.String("string"),
RouteDest: pulumi.String("string"),
VpnConnectionId: pulumi.String("string"),
Weight: pulumi.Int(0),
})
var gatewayVcoRouteResource = new GatewayVcoRoute("gatewayVcoRouteResource", GatewayVcoRouteArgs.builder()
.nextHop("string")
.routeDest("string")
.vpnConnectionId("string")
.weight(0)
.build());
gateway_vco_route_resource = alicloud.vpn.GatewayVcoRoute("gatewayVcoRouteResource",
next_hop="string",
route_dest="string",
vpn_connection_id="string",
weight=0)
const gatewayVcoRouteResource = new alicloud.vpn.GatewayVcoRoute("gatewayVcoRouteResource", {
nextHop: "string",
routeDest: "string",
vpnConnectionId: "string",
weight: 0,
});
type: alicloud:vpn:GatewayVcoRoute
properties:
nextHop: string
routeDest: string
vpnConnectionId: string
weight: 0
GatewayVcoRoute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GatewayVcoRoute resource accepts the following input properties:
- Next
Hop string - The next hop of the destination route.
- Route
Dest string - The destination network segment of the destination route.
- Vpn
Connection stringId - The id of the vpn attachment.
- Weight int
- The weight value of the destination route. Valid values:
0
,100
.
- Next
Hop string - The next hop of the destination route.
- Route
Dest string - The destination network segment of the destination route.
- Vpn
Connection stringId - The id of the vpn attachment.
- Weight int
- The weight value of the destination route. Valid values:
0
,100
.
- next
Hop String - The next hop of the destination route.
- route
Dest String - The destination network segment of the destination route.
- vpn
Connection StringId - The id of the vpn attachment.
- weight Integer
- The weight value of the destination route. Valid values:
0
,100
.
- next
Hop string - The next hop of the destination route.
- route
Dest string - The destination network segment of the destination route.
- vpn
Connection stringId - The id of the vpn attachment.
- weight number
- The weight value of the destination route. Valid values:
0
,100
.
- next_
hop str - The next hop of the destination route.
- route_
dest str - The destination network segment of the destination route.
- vpn_
connection_ strid - The id of the vpn attachment.
- weight int
- The weight value of the destination route. Valid values:
0
,100
.
- next
Hop String - The next hop of the destination route.
- route
Dest String - The destination network segment of the destination route.
- vpn
Connection StringId - The id of the vpn attachment.
- weight Number
- The weight value of the destination route. Valid values:
0
,100
.
Outputs
All input properties are implicitly available as output properties. Additionally, the GatewayVcoRoute resource produces the following output properties:
Look up Existing GatewayVcoRoute Resource
Get an existing GatewayVcoRoute resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: GatewayVcoRouteState, opts?: CustomResourceOptions): GatewayVcoRoute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
next_hop: Optional[str] = None,
route_dest: Optional[str] = None,
status: Optional[str] = None,
vpn_connection_id: Optional[str] = None,
weight: Optional[int] = None) -> GatewayVcoRoute
func GetGatewayVcoRoute(ctx *Context, name string, id IDInput, state *GatewayVcoRouteState, opts ...ResourceOption) (*GatewayVcoRoute, error)
public static GatewayVcoRoute Get(string name, Input<string> id, GatewayVcoRouteState? state, CustomResourceOptions? opts = null)
public static GatewayVcoRoute get(String name, Output<String> id, GatewayVcoRouteState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Next
Hop string - The next hop of the destination route.
- Route
Dest string - The destination network segment of the destination route.
- Status string
- The status of the vpn route entry.
- Vpn
Connection stringId - The id of the vpn attachment.
- Weight int
- The weight value of the destination route. Valid values:
0
,100
.
- Next
Hop string - The next hop of the destination route.
- Route
Dest string - The destination network segment of the destination route.
- Status string
- The status of the vpn route entry.
- Vpn
Connection stringId - The id of the vpn attachment.
- Weight int
- The weight value of the destination route. Valid values:
0
,100
.
- next
Hop String - The next hop of the destination route.
- route
Dest String - The destination network segment of the destination route.
- status String
- The status of the vpn route entry.
- vpn
Connection StringId - The id of the vpn attachment.
- weight Integer
- The weight value of the destination route. Valid values:
0
,100
.
- next
Hop string - The next hop of the destination route.
- route
Dest string - The destination network segment of the destination route.
- status string
- The status of the vpn route entry.
- vpn
Connection stringId - The id of the vpn attachment.
- weight number
- The weight value of the destination route. Valid values:
0
,100
.
- next_
hop str - The next hop of the destination route.
- route_
dest str - The destination network segment of the destination route.
- status str
- The status of the vpn route entry.
- vpn_
connection_ strid - The id of the vpn attachment.
- weight int
- The weight value of the destination route. Valid values:
0
,100
.
- next
Hop String - The next hop of the destination route.
- route
Dest String - The destination network segment of the destination route.
- status String
- The status of the vpn route entry.
- vpn
Connection StringId - The id of the vpn attachment.
- weight Number
- The weight value of the destination route. Valid values:
0
,100
.
Import
VPN Gateway Vco Route can be imported using the id, e.g.
$ pulumi import alicloud:vpn/gatewayVcoRoute:GatewayVcoRoute example <vpn_connection_id>:<route_dest>:<next_hop>:<weight>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.