1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpn
  5. RouteEntry
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.vpn.RouteEntry

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf-example";
    const defaultZones = alicloud.getZones({
        availableDiskCategory: "cloud_efficiency",
        availableResourceCreation: "VSwitch",
    });
    const defaultNetworks = alicloud.vpc.getNetworks({
        nameRegex: "^default-NODELETING$",
    });
    const defaultSwitches = Promise.all([defaultNetworks, defaultZones]).then(([defaultNetworks, defaultZones]) => alicloud.vpc.getSwitches({
        vpcId: defaultNetworks.ids?.[0],
        zoneId: defaultZones.ids?.[0],
    }));
    const defaultGateway = new alicloud.vpn.Gateway("defaultGateway", {
        vpcId: defaultNetworks.then(defaultNetworks => defaultNetworks.ids?.[0]),
        bandwidth: 10,
        instanceChargeType: "PrePaid",
        enableSsl: false,
        vswitchId: defaultSwitches.then(defaultSwitches => defaultSwitches.ids?.[0]),
    });
    const defaultCustomerGateway = new alicloud.vpn.CustomerGateway("defaultCustomerGateway", {ipAddress: "192.168.1.1"});
    const defaultConnection = new alicloud.vpn.Connection("defaultConnection", {
        customerGatewayId: defaultCustomerGateway.id,
        vpnGatewayId: defaultGateway.id,
        localSubnets: ["192.168.2.0/24"],
        remoteSubnets: ["192.168.3.0/24"],
    });
    const defaultRouteEntry = new alicloud.vpn.RouteEntry("defaultRouteEntry", {
        vpnGatewayId: defaultGateway.id,
        routeDest: "10.0.0.0/24",
        nextHop: defaultConnection.id,
        weight: 0,
        publishVpc: false,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf-example"
    default_zones = alicloud.get_zones(available_disk_category="cloud_efficiency",
        available_resource_creation="VSwitch")
    default_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
    default_switches = alicloud.vpc.get_switches(vpc_id=default_networks.ids[0],
        zone_id=default_zones.ids[0])
    default_gateway = alicloud.vpn.Gateway("defaultGateway",
        vpc_id=default_networks.ids[0],
        bandwidth=10,
        instance_charge_type="PrePaid",
        enable_ssl=False,
        vswitch_id=default_switches.ids[0])
    default_customer_gateway = alicloud.vpn.CustomerGateway("defaultCustomerGateway", ip_address="192.168.1.1")
    default_connection = alicloud.vpn.Connection("defaultConnection",
        customer_gateway_id=default_customer_gateway.id,
        vpn_gateway_id=default_gateway.id,
        local_subnets=["192.168.2.0/24"],
        remote_subnets=["192.168.3.0/24"])
    default_route_entry = alicloud.vpn.RouteEntry("defaultRouteEntry",
        vpn_gateway_id=default_gateway.id,
        route_dest="10.0.0.0/24",
        next_hop=default_connection.id,
        weight=0,
        publish_vpc=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpn"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableDiskCategory:     pulumi.StringRef("cloud_efficiency"),
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
    			NameRegex: pulumi.StringRef("^default-NODELETING$"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
    			VpcId:  pulumi.StringRef(defaultNetworks.Ids[0]),
    			ZoneId: pulumi.StringRef(defaultZones.Ids[0]),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGateway, err := vpn.NewGateway(ctx, "defaultGateway", &vpn.GatewayArgs{
    			VpcId:              pulumi.String(defaultNetworks.Ids[0]),
    			Bandwidth:          pulumi.Int(10),
    			InstanceChargeType: pulumi.String("PrePaid"),
    			EnableSsl:          pulumi.Bool(false),
    			VswitchId:          pulumi.String(defaultSwitches.Ids[0]),
    		})
    		if err != nil {
    			return err
    		}
    		defaultCustomerGateway, err := vpn.NewCustomerGateway(ctx, "defaultCustomerGateway", &vpn.CustomerGatewayArgs{
    			IpAddress: pulumi.String("192.168.1.1"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultConnection, err := vpn.NewConnection(ctx, "defaultConnection", &vpn.ConnectionArgs{
    			CustomerGatewayId: defaultCustomerGateway.ID(),
    			VpnGatewayId:      defaultGateway.ID(),
    			LocalSubnets: pulumi.StringArray{
    				pulumi.String("192.168.2.0/24"),
    			},
    			RemoteSubnets: pulumi.StringArray{
    				pulumi.String("192.168.3.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vpn.NewRouteEntry(ctx, "defaultRouteEntry", &vpn.RouteEntryArgs{
    			VpnGatewayId: defaultGateway.ID(),
    			RouteDest:    pulumi.String("10.0.0.0/24"),
    			NextHop:      defaultConnection.ID(),
    			Weight:       pulumi.Int(0),
    			PublishVpc:   pulumi.Bool(false),
    		})
    		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 config = new Config();
        var name = config.Get("name") ?? "tf-example";
        var defaultZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableDiskCategory = "cloud_efficiency",
            AvailableResourceCreation = "VSwitch",
        });
    
        var defaultNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
        {
            NameRegex = "^default-NODELETING$",
        });
    
        var defaultSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
        {
            VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Ids[0]),
        });
    
        var defaultGateway = new AliCloud.Vpn.Gateway("defaultGateway", new()
        {
            VpcId = defaultNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
            Bandwidth = 10,
            InstanceChargeType = "PrePaid",
            EnableSsl = false,
            VswitchId = defaultSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
        });
    
        var defaultCustomerGateway = new AliCloud.Vpn.CustomerGateway("defaultCustomerGateway", new()
        {
            IpAddress = "192.168.1.1",
        });
    
        var defaultConnection = new AliCloud.Vpn.Connection("defaultConnection", new()
        {
            CustomerGatewayId = defaultCustomerGateway.Id,
            VpnGatewayId = defaultGateway.Id,
            LocalSubnets = new[]
            {
                "192.168.2.0/24",
            },
            RemoteSubnets = new[]
            {
                "192.168.3.0/24",
            },
        });
    
        var defaultRouteEntry = new AliCloud.Vpn.RouteEntry("defaultRouteEntry", new()
        {
            VpnGatewayId = defaultGateway.Id,
            RouteDest = "10.0.0.0/24",
            NextHop = defaultConnection.Id,
            Weight = 0,
            PublishVpc = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.vpc.VpcFunctions;
    import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
    import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
    import com.pulumi.alicloud.vpn.Gateway;
    import com.pulumi.alicloud.vpn.GatewayArgs;
    import com.pulumi.alicloud.vpn.CustomerGateway;
    import com.pulumi.alicloud.vpn.CustomerGatewayArgs;
    import com.pulumi.alicloud.vpn.Connection;
    import com.pulumi.alicloud.vpn.ConnectionArgs;
    import com.pulumi.alicloud.vpn.RouteEntry;
    import com.pulumi.alicloud.vpn.RouteEntryArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("tf-example");
            final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableDiskCategory("cloud_efficiency")
                .availableResourceCreation("VSwitch")
                .build());
    
            final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
                .nameRegex("^default-NODELETING$")
                .build());
    
            final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
                .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
                .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.ids()[0]))
                .build());
    
            var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()        
                .vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
                .bandwidth(10)
                .instanceChargeType("PrePaid")
                .enableSsl(false)
                .vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
                .build());
    
            var defaultCustomerGateway = new CustomerGateway("defaultCustomerGateway", CustomerGatewayArgs.builder()        
                .ipAddress("192.168.1.1")
                .build());
    
            var defaultConnection = new Connection("defaultConnection", ConnectionArgs.builder()        
                .customerGatewayId(defaultCustomerGateway.id())
                .vpnGatewayId(defaultGateway.id())
                .localSubnets("192.168.2.0/24")
                .remoteSubnets("192.168.3.0/24")
                .build());
    
            var defaultRouteEntry = new RouteEntry("defaultRouteEntry", RouteEntryArgs.builder()        
                .vpnGatewayId(defaultGateway.id())
                .routeDest("10.0.0.0/24")
                .nextHop(defaultConnection.id())
                .weight(0)
                .publishVpc(false)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf-example
    resources:
      defaultGateway:
        type: alicloud:vpn:Gateway
        properties:
          vpcId: ${defaultNetworks.ids[0]}
          bandwidth: 10
          instanceChargeType: PrePaid
          enableSsl: false
          vswitchId: ${defaultSwitches.ids[0]}
      defaultConnection:
        type: alicloud:vpn:Connection
        properties:
          customerGatewayId: ${defaultCustomerGateway.id}
          vpnGatewayId: ${defaultGateway.id}
          localSubnets:
            - 192.168.2.0/24
          remoteSubnets:
            - 192.168.3.0/24
      defaultCustomerGateway:
        type: alicloud:vpn:CustomerGateway
        properties:
          ipAddress: 192.168.1.1
      defaultRouteEntry:
        type: alicloud:vpn:RouteEntry
        properties:
          vpnGatewayId: ${defaultGateway.id}
          routeDest: 10.0.0.0/24
          nextHop: ${defaultConnection.id}
          weight: 0
          publishVpc: false
    variables:
      defaultZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableDiskCategory: cloud_efficiency
            availableResourceCreation: VSwitch
      defaultNetworks:
        fn::invoke:
          Function: alicloud:vpc:getNetworks
          Arguments:
            nameRegex: ^default-NODELETING$
      defaultSwitches:
        fn::invoke:
          Function: alicloud:vpc:getSwitches
          Arguments:
            vpcId: ${defaultNetworks.ids[0]}
            zoneId: ${defaultZones.ids[0]}
    

    Create RouteEntry Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RouteEntry(name: string, args: RouteEntryArgs, opts?: CustomResourceOptions);
    @overload
    def RouteEntry(resource_name: str,
                   args: RouteEntryArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def RouteEntry(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   next_hop: Optional[str] = None,
                   publish_vpc: Optional[bool] = None,
                   route_dest: Optional[str] = None,
                   vpn_gateway_id: Optional[str] = None,
                   weight: Optional[int] = None)
    func NewRouteEntry(ctx *Context, name string, args RouteEntryArgs, opts ...ResourceOption) (*RouteEntry, error)
    public RouteEntry(string name, RouteEntryArgs args, CustomResourceOptions? opts = null)
    public RouteEntry(String name, RouteEntryArgs args)
    public RouteEntry(String name, RouteEntryArgs args, CustomResourceOptions options)
    
    type: alicloud:vpn:RouteEntry
    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 RouteEntryArgs
    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 RouteEntryArgs
    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 RouteEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RouteEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RouteEntryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var examplerouteEntryResourceResourceFromVpnrouteEntry = new AliCloud.Vpn.RouteEntry("examplerouteEntryResourceResourceFromVpnrouteEntry", new()
    {
        NextHop = "string",
        PublishVpc = false,
        RouteDest = "string",
        VpnGatewayId = "string",
        Weight = 0,
    });
    
    example, err := vpn.NewRouteEntry(ctx, "examplerouteEntryResourceResourceFromVpnrouteEntry", &vpn.RouteEntryArgs{
    	NextHop:      pulumi.String("string"),
    	PublishVpc:   pulumi.Bool(false),
    	RouteDest:    pulumi.String("string"),
    	VpnGatewayId: pulumi.String("string"),
    	Weight:       pulumi.Int(0),
    })
    
    var examplerouteEntryResourceResourceFromVpnrouteEntry = new RouteEntry("examplerouteEntryResourceResourceFromVpnrouteEntry", RouteEntryArgs.builder()        
        .nextHop("string")
        .publishVpc(false)
        .routeDest("string")
        .vpnGatewayId("string")
        .weight(0)
        .build());
    
    exampleroute_entry_resource_resource_from_vpnroute_entry = alicloud.vpn.RouteEntry("examplerouteEntryResourceResourceFromVpnrouteEntry",
        next_hop="string",
        publish_vpc=False,
        route_dest="string",
        vpn_gateway_id="string",
        weight=0)
    
    const examplerouteEntryResourceResourceFromVpnrouteEntry = new alicloud.vpn.RouteEntry("examplerouteEntryResourceResourceFromVpnrouteEntry", {
        nextHop: "string",
        publishVpc: false,
        routeDest: "string",
        vpnGatewayId: "string",
        weight: 0,
    });
    
    type: alicloud:vpn:RouteEntry
    properties:
        nextHop: string
        publishVpc: false
        routeDest: string
        vpnGatewayId: string
        weight: 0
    

    RouteEntry 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 RouteEntry resource accepts the following input properties:

    NextHop string
    The next hop of the destination route.
    PublishVpc bool
    Whether to issue the destination route to the VPC.
    RouteDest string
    The destination network segment of the destination route.
    VpnGatewayId string
    The id of the vpn gateway.
    Weight int
    The value should be 0 or 100.
    NextHop string
    The next hop of the destination route.
    PublishVpc bool
    Whether to issue the destination route to the VPC.
    RouteDest string
    The destination network segment of the destination route.
    VpnGatewayId string
    The id of the vpn gateway.
    Weight int
    The value should be 0 or 100.
    nextHop String
    The next hop of the destination route.
    publishVpc Boolean
    Whether to issue the destination route to the VPC.
    routeDest String
    The destination network segment of the destination route.
    vpnGatewayId String
    The id of the vpn gateway.
    weight Integer
    The value should be 0 or 100.
    nextHop string
    The next hop of the destination route.
    publishVpc boolean
    Whether to issue the destination route to the VPC.
    routeDest string
    The destination network segment of the destination route.
    vpnGatewayId string
    The id of the vpn gateway.
    weight number
    The value should be 0 or 100.
    next_hop str
    The next hop of the destination route.
    publish_vpc bool
    Whether to issue the destination route to the VPC.
    route_dest str
    The destination network segment of the destination route.
    vpn_gateway_id str
    The id of the vpn gateway.
    weight int
    The value should be 0 or 100.
    nextHop String
    The next hop of the destination route.
    publishVpc Boolean
    Whether to issue the destination route to the VPC.
    routeDest String
    The destination network segment of the destination route.
    vpnGatewayId String
    The id of the vpn gateway.
    weight Number
    The value should be 0 or 100.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RouteEntry resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RouteEntryType string
    (Available in 1.161.0+) The type of the vpn route entry.
    Status string
    (Available in 1.161.0+) The status of the vpn route entry.
    Id string
    The provider-assigned unique ID for this managed resource.
    RouteEntryType string
    (Available in 1.161.0+) The type of the vpn route entry.
    Status string
    (Available in 1.161.0+) The status of the vpn route entry.
    id String
    The provider-assigned unique ID for this managed resource.
    routeEntryType String
    (Available in 1.161.0+) The type of the vpn route entry.
    status String
    (Available in 1.161.0+) The status of the vpn route entry.
    id string
    The provider-assigned unique ID for this managed resource.
    routeEntryType string
    (Available in 1.161.0+) The type of the vpn route entry.
    status string
    (Available in 1.161.0+) The status of the vpn route entry.
    id str
    The provider-assigned unique ID for this managed resource.
    route_entry_type str
    (Available in 1.161.0+) The type of the vpn route entry.
    status str
    (Available in 1.161.0+) The status of the vpn route entry.
    id String
    The provider-assigned unique ID for this managed resource.
    routeEntryType String
    (Available in 1.161.0+) The type of the vpn route entry.
    status String
    (Available in 1.161.0+) The status of the vpn route entry.

    Look up Existing RouteEntry Resource

    Get an existing RouteEntry 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?: RouteEntryState, opts?: CustomResourceOptions): RouteEntry
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            next_hop: Optional[str] = None,
            publish_vpc: Optional[bool] = None,
            route_dest: Optional[str] = None,
            route_entry_type: Optional[str] = None,
            status: Optional[str] = None,
            vpn_gateway_id: Optional[str] = None,
            weight: Optional[int] = None) -> RouteEntry
    func GetRouteEntry(ctx *Context, name string, id IDInput, state *RouteEntryState, opts ...ResourceOption) (*RouteEntry, error)
    public static RouteEntry Get(string name, Input<string> id, RouteEntryState? state, CustomResourceOptions? opts = null)
    public static RouteEntry get(String name, Output<String> id, RouteEntryState 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.
    The following state arguments are supported:
    NextHop string
    The next hop of the destination route.
    PublishVpc bool
    Whether to issue the destination route to the VPC.
    RouteDest string
    The destination network segment of the destination route.
    RouteEntryType string
    (Available in 1.161.0+) The type of the vpn route entry.
    Status string
    (Available in 1.161.0+) The status of the vpn route entry.
    VpnGatewayId string
    The id of the vpn gateway.
    Weight int
    The value should be 0 or 100.
    NextHop string
    The next hop of the destination route.
    PublishVpc bool
    Whether to issue the destination route to the VPC.
    RouteDest string
    The destination network segment of the destination route.
    RouteEntryType string
    (Available in 1.161.0+) The type of the vpn route entry.
    Status string
    (Available in 1.161.0+) The status of the vpn route entry.
    VpnGatewayId string
    The id of the vpn gateway.
    Weight int
    The value should be 0 or 100.
    nextHop String
    The next hop of the destination route.
    publishVpc Boolean
    Whether to issue the destination route to the VPC.
    routeDest String
    The destination network segment of the destination route.
    routeEntryType String
    (Available in 1.161.0+) The type of the vpn route entry.
    status String
    (Available in 1.161.0+) The status of the vpn route entry.
    vpnGatewayId String
    The id of the vpn gateway.
    weight Integer
    The value should be 0 or 100.
    nextHop string
    The next hop of the destination route.
    publishVpc boolean
    Whether to issue the destination route to the VPC.
    routeDest string
    The destination network segment of the destination route.
    routeEntryType string
    (Available in 1.161.0+) The type of the vpn route entry.
    status string
    (Available in 1.161.0+) The status of the vpn route entry.
    vpnGatewayId string
    The id of the vpn gateway.
    weight number
    The value should be 0 or 100.
    next_hop str
    The next hop of the destination route.
    publish_vpc bool
    Whether to issue the destination route to the VPC.
    route_dest str
    The destination network segment of the destination route.
    route_entry_type str
    (Available in 1.161.0+) The type of the vpn route entry.
    status str
    (Available in 1.161.0+) The status of the vpn route entry.
    vpn_gateway_id str
    The id of the vpn gateway.
    weight int
    The value should be 0 or 100.
    nextHop String
    The next hop of the destination route.
    publishVpc Boolean
    Whether to issue the destination route to the VPC.
    routeDest String
    The destination network segment of the destination route.
    routeEntryType String
    (Available in 1.161.0+) The type of the vpn route entry.
    status String
    (Available in 1.161.0+) The status of the vpn route entry.
    vpnGatewayId String
    The id of the vpn gateway.
    weight Number
    The value should be 0 or 100.

    Import

    VPN route entry can be imported using the id(VpnGatewayId +":"+ NextHop +":"+ RouteDest), e.g.

    $ pulumi import alicloud:vpn/routeEntry:RouteEntry example vpn-abc123456:vco-abc123456:10.0.0.10/24
    

    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.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi