published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
Provides a VPN gateway resource.
NOTE: Terraform will auto build vpn instance while it uses
alicloud.vpn.Gatewayto build a vpn resource.
Currently International-Site account can open
PostPaidVPN gateway and China-Site account can openPrePaidVPN gateway.
For information about VPN gateway and how to use it, see What is VPN gateway.
NOTE: Available since v1.13.0.
Example Usage
Basic Usage
IPsec-VPN connections support the dual-tunnel mode
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const spec = config.get("spec") || "20";
const _default = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const defaultGetNetworks = alicloud.vpc.getNetworks({
nameRegex: "^default-NODELETING$",
cidrBlock: "172.16.0.0/16",
});
const default0 = Promise.all([defaultGetNetworks, _default]).then(([defaultGetNetworks, _default]) => alicloud.vpc.getSwitches({
vpcId: defaultGetNetworks.ids?.[0],
zoneId: _default.ids?.[0],
}));
const default1 = Promise.all([defaultGetNetworks, _default]).then(([defaultGetNetworks, _default]) => alicloud.vpc.getSwitches({
vpcId: defaultGetNetworks.ids?.[0],
zoneId: _default.ids?.[1],
}));
const defaultGateway = new alicloud.vpn.Gateway("default", {
vpnType: "Normal",
vpnGatewayName: name,
vswitchId: default0.then(default0 => default0.ids?.[0]),
disasterRecoveryVswitchId: default1.then(default1 => default1.ids?.[0]),
autoPay: true,
vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
networkType: "public",
paymentType: "Subscription",
enableIpsec: true,
bandwidth: spec,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
spec = config.get("spec")
if spec is None:
spec = "20"
default = alicloud.get_zones(available_resource_creation="VSwitch")
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$",
cidr_block="172.16.0.0/16")
default0 = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
zone_id=default.ids[0])
default1 = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
zone_id=default.ids[1])
default_gateway = alicloud.vpn.Gateway("default",
vpn_type="Normal",
vpn_gateway_name=name,
vswitch_id=default0.ids[0],
disaster_recovery_vswitch_id=default1.ids[0],
auto_pay=True,
vpc_id=default_get_networks.ids[0],
network_type="public",
payment_type="Subscription",
enable_ipsec=True,
bandwidth=spec)
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 := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
spec := "20"
if param := cfg.Get("spec"); param != "" {
spec = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("^default-NODELETING$"),
CidrBlock: pulumi.StringRef("172.16.0.0/16"),
}, nil)
if err != nil {
return err
}
default0, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
ZoneId: pulumi.StringRef(_default.Ids[0]),
}, nil)
if err != nil {
return err
}
default1, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
ZoneId: pulumi.StringRef(_default.Ids[1]),
}, nil)
if err != nil {
return err
}
_, err = vpn.NewGateway(ctx, "default", &vpn.GatewayArgs{
VpnType: pulumi.String("Normal"),
VpnGatewayName: pulumi.String(name),
VswitchId: pulumi.String(default0.Ids[0]),
DisasterRecoveryVswitchId: pulumi.String(default1.Ids[0]),
AutoPay: pulumi.Bool(true),
VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
NetworkType: pulumi.String("public"),
PaymentType: pulumi.String("Subscription"),
EnableIpsec: pulumi.Bool(true),
Bandwidth: pulumi.String(spec),
})
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") ?? "terraform-example";
var spec = config.Get("spec") ?? "20";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "^default-NODELETING$",
CidrBlock = "172.16.0.0/16",
});
var default0 = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[0]),
});
var default1 = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[1]),
});
var defaultGateway = new AliCloud.Vpn.Gateway("default", new()
{
VpnType = "Normal",
VpnGatewayName = name,
VswitchId = default0.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
DisasterRecoveryVswitchId = default1.Apply(getSwitchesResult => getSwitchesResult.Ids[0]),
AutoPay = true,
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
NetworkType = "public",
PaymentType = "Subscription",
EnableIpsec = true,
Bandwidth = spec,
});
});
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 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("terraform-example");
final var spec = config.get("spec").orElse("20");
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("^default-NODELETING$")
.cidrBlock("172.16.0.0/16")
.build());
final var default0 = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultGetNetworks.ids()[0])
.zoneId(default_.ids()[0])
.build());
final var default1 = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultGetNetworks.ids()[0])
.zoneId(default_.ids()[1])
.build());
var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()
.vpnType("Normal")
.vpnGatewayName(name)
.vswitchId(default0.ids()[0])
.disasterRecoveryVswitchId(default1.ids()[0])
.autoPay(true)
.vpcId(defaultGetNetworks.ids()[0])
.networkType("public")
.paymentType("Subscription")
.enableIpsec(true)
.bandwidth(spec)
.build());
}
}
configuration:
name:
type: string
default: terraform-example
spec:
type: string
default: '20'
resources:
defaultGateway:
type: alicloud:vpn:Gateway
name: default
properties:
vpnType: Normal
vpnGatewayName: ${name}
vswitchId: ${default0.ids[0]}
disasterRecoveryVswitchId: ${default1.ids[0]}
autoPay: true
vpcId: ${defaultGetNetworks.ids[0]}
networkType: public
paymentType: Subscription
enableIpsec: true
bandwidth: ${spec}
variables:
default:
fn::invoke:
function: alicloud:getZones
arguments:
availableResourceCreation: VSwitch
defaultGetNetworks:
fn::invoke:
function: alicloud:vpc:getNetworks
arguments:
nameRegex: ^default-NODELETING$
cidrBlock: 172.16.0.0/16
default0:
fn::invoke:
function: alicloud:vpc:getSwitches
arguments:
vpcId: ${defaultGetNetworks.ids[0]}
zoneId: ${default.ids[0]}
default1:
fn::invoke:
function: alicloud:vpc:getSwitches
arguments:
vpcId: ${defaultGetNetworks.ids[0]}
zoneId: ${default.ids[1]}
Deleting alicloud.vpn.Gateway or removing it from your configuration
The alicloud.vpn.Gateway resource allows you to manage payment_type </span>= "Subscription" instance, but Terraform cannot destroy it.
Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance.
You can resume managing the subscription instance via the AlibabaCloud Console.
📚 Need more examples? VIEW MORE EXAMPLES
Create Gateway Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);@overload
def Gateway(resource_name: str,
args: GatewayArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Gateway(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
vpc_id: Optional[str] = None,
name: Optional[str] = None,
period: Optional[int] = None,
disaster_recovery_vswitch_id: Optional[str] = None,
enable_ipsec: Optional[bool] = None,
enable_ssl: Optional[bool] = None,
instance_charge_type: Optional[str] = None,
auto_pay: Optional[bool] = None,
network_type: Optional[str] = None,
payment_type: Optional[str] = None,
description: Optional[str] = None,
resource_group_id: Optional[str] = None,
ssl_connections: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None,
auto_propagate: Optional[bool] = None,
vpn_gateway_name: Optional[str] = None,
vpn_type: Optional[str] = None,
vswitch_id: Optional[str] = None)func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: alicloud:vpn:Gateway
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 GatewayArgs
- 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 GatewayArgs
- 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 GatewayArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GatewayArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GatewayArgs
- 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 examplegatewayResourceResourceFromVpngateway = new AliCloud.Vpn.Gateway("examplegatewayResourceResourceFromVpngateway", new()
{
Bandwidth = 0,
VpcId = "string",
Period = 0,
DisasterRecoveryVswitchId = "string",
EnableIpsec = false,
EnableSsl = false,
AutoPay = false,
NetworkType = "string",
PaymentType = "string",
Description = "string",
ResourceGroupId = "string",
SslConnections = 0,
Tags =
{
{ "string", "string" },
},
AutoPropagate = false,
VpnGatewayName = "string",
VpnType = "string",
VswitchId = "string",
});
example, err := vpn.NewGateway(ctx, "examplegatewayResourceResourceFromVpngateway", &vpn.GatewayArgs{
Bandwidth: pulumi.Int(0),
VpcId: pulumi.String("string"),
Period: pulumi.Int(0),
DisasterRecoveryVswitchId: pulumi.String("string"),
EnableIpsec: pulumi.Bool(false),
EnableSsl: pulumi.Bool(false),
AutoPay: pulumi.Bool(false),
NetworkType: pulumi.String("string"),
PaymentType: pulumi.String("string"),
Description: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
SslConnections: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
AutoPropagate: pulumi.Bool(false),
VpnGatewayName: pulumi.String("string"),
VpnType: pulumi.String("string"),
VswitchId: pulumi.String("string"),
})
var examplegatewayResourceResourceFromVpngateway = new com.pulumi.alicloud.vpn.Gateway("examplegatewayResourceResourceFromVpngateway", com.pulumi.alicloud.vpn.GatewayArgs.builder()
.bandwidth(0)
.vpcId("string")
.period(0)
.disasterRecoveryVswitchId("string")
.enableIpsec(false)
.enableSsl(false)
.autoPay(false)
.networkType("string")
.paymentType("string")
.description("string")
.resourceGroupId("string")
.sslConnections(0)
.tags(Map.of("string", "string"))
.autoPropagate(false)
.vpnGatewayName("string")
.vpnType("string")
.vswitchId("string")
.build());
examplegateway_resource_resource_from_vpngateway = alicloud.vpn.Gateway("examplegatewayResourceResourceFromVpngateway",
bandwidth=0,
vpc_id="string",
period=0,
disaster_recovery_vswitch_id="string",
enable_ipsec=False,
enable_ssl=False,
auto_pay=False,
network_type="string",
payment_type="string",
description="string",
resource_group_id="string",
ssl_connections=0,
tags={
"string": "string",
},
auto_propagate=False,
vpn_gateway_name="string",
vpn_type="string",
vswitch_id="string")
const examplegatewayResourceResourceFromVpngateway = new alicloud.vpn.Gateway("examplegatewayResourceResourceFromVpngateway", {
bandwidth: 0,
vpcId: "string",
period: 0,
disasterRecoveryVswitchId: "string",
enableIpsec: false,
enableSsl: false,
autoPay: false,
networkType: "string",
paymentType: "string",
description: "string",
resourceGroupId: "string",
sslConnections: 0,
tags: {
string: "string",
},
autoPropagate: false,
vpnGatewayName: "string",
vpnType: "string",
vswitchId: "string",
});
type: alicloud:vpn:Gateway
properties:
autoPay: false
autoPropagate: false
bandwidth: 0
description: string
disasterRecoveryVswitchId: string
enableIpsec: false
enableSsl: false
networkType: string
paymentType: string
period: 0
resourceGroupId: string
sslConnections: 0
tags:
string: string
vpcId: string
vpnGatewayName: string
vpnType: string
vswitchId: string
Gateway Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Gateway resource accepts the following input properties:
- Bandwidth int
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Auto
Pay bool - Whether to pay automatically. Default value:
true. Valid values: - Auto
Propagate bool - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Enable
Ipsec bool - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- Instance
Charge stringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- Name string
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- Network
Type string - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- Payment
Type string - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- Period int
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Resource
Group stringId - The ID of the resource group.
- Ssl
Connections int - Maximum number of clients.
- Dictionary<string, string>
- The Tag of.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- Bandwidth int
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Auto
Pay bool - Whether to pay automatically. Default value:
true. Valid values: - Auto
Propagate bool - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Enable
Ipsec bool - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- Instance
Charge stringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- Name string
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- Network
Type string - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- Payment
Type string - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- Period int
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Resource
Group stringId - The ID of the resource group.
- Ssl
Connections int - Maximum number of clients.
- map[string]string
- The Tag of.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- bandwidth Integer
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- auto
Pay Boolean - Whether to pay automatically. Default value:
true. Valid values: - auto
Propagate Boolean - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- description String
- The description of the VPN gateway.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable
Ipsec Boolean - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl Boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance
Charge StringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- name String
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network
Type String - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment
Type String - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period Integer
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource
Group StringId - The ID of the resource group.
- ssl
Connections Integer - Maximum number of clients.
- Map<String,String>
- The Tag of.
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
- bandwidth number
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- auto
Pay boolean - Whether to pay automatically. Default value:
true. Valid values: - auto
Propagate boolean - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- description string
- The description of the VPN gateway.
- disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable
Ipsec boolean - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance
Charge stringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- name string
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network
Type string - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment
Type string - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period number
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource
Group stringId - The ID of the resource group.
- ssl
Connections number - Maximum number of clients.
- {[key: string]: string}
- The Tag of.
- vpn
Gateway stringName - The name of the VPN gateway.
- vpn
Type string - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- bandwidth int
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- vpc_
id str - The ID of the VPC to which the VPN gateway belongs.
- auto_
pay bool - Whether to pay automatically. Default value:
true. Valid values: - auto_
propagate bool - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- description str
- The description of the VPN gateway.
- disaster_
recovery_ strvswitch_ id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable_
ipsec bool - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable_
ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance_
charge_ strtype - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- name str
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network_
type str - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment_
type str - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period int
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource_
group_ strid - The ID of the resource group.
- ssl_
connections int - Maximum number of clients.
- Mapping[str, str]
- The Tag of.
- vpn_
gateway_ strname - The name of the VPN gateway.
- vpn_
type str - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch_
id str - The ID of the VSwitch to which the VPN gateway is attached.
- bandwidth Number
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- auto
Pay Boolean - Whether to pay automatically. Default value:
true. Valid values: - auto
Propagate Boolean - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- description String
- The description of the VPN gateway.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable
Ipsec Boolean - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl Boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance
Charge StringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- name String
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network
Type String - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment
Type String - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period Number
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource
Group StringId - The ID of the resource group.
- ssl
Connections Number - Maximum number of clients.
- Map<String>
- The Tag of.
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
Outputs
All input properties are implicitly available as output properties. Additionally, the Gateway resource produces the following output properties:
- Business
Status string - The business status of the VPN gateway.
- Create
Time int - The time when the VPN gateway was created.
- Disaster
Recovery stringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Ip string - The internet ip of the VPN.
- Ssl
Vpn stringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- Status string
- The status of the resource.
- Business
Status string - The business status of the VPN gateway.
- Create
Time int - The time when the VPN gateway was created.
- Disaster
Recovery stringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Ip string - The internet ip of the VPN.
- Ssl
Vpn stringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- Status string
- The status of the resource.
- business
Status String - The business status of the VPN gateway.
- create
Time Integer - The time when the VPN gateway was created.
- disaster
Recovery StringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- id String
- The provider-assigned unique ID for this managed resource.
- internet
Ip String - The internet ip of the VPN.
- ssl
Vpn StringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status String
- The status of the resource.
- business
Status string - The business status of the VPN gateway.
- create
Time number - The time when the VPN gateway was created.
- disaster
Recovery stringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- id string
- The provider-assigned unique ID for this managed resource.
- internet
Ip string - The internet ip of the VPN.
- ssl
Vpn stringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status string
- The status of the resource.
- business_
status str - The business status of the VPN gateway.
- create_
time int - The time when the VPN gateway was created.
- disaster_
recovery_ strinternet_ ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- id str
- The provider-assigned unique ID for this managed resource.
- internet_
ip str - The internet ip of the VPN.
- ssl_
vpn_ strinternet_ ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status str
- The status of the resource.
- business
Status String - The business status of the VPN gateway.
- create
Time Number - The time when the VPN gateway was created.
- disaster
Recovery StringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- id String
- The provider-assigned unique ID for this managed resource.
- internet
Ip String - The internet ip of the VPN.
- ssl
Vpn StringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status String
- The status of the resource.
Look up Existing Gateway Resource
Get an existing Gateway 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?: GatewayState, opts?: CustomResourceOptions): Gateway@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_pay: Optional[bool] = None,
auto_propagate: Optional[bool] = None,
bandwidth: Optional[int] = None,
business_status: Optional[str] = None,
create_time: Optional[int] = None,
description: Optional[str] = None,
disaster_recovery_internet_ip: Optional[str] = None,
disaster_recovery_vswitch_id: Optional[str] = None,
enable_ipsec: Optional[bool] = None,
enable_ssl: Optional[bool] = None,
instance_charge_type: Optional[str] = None,
internet_ip: Optional[str] = None,
name: Optional[str] = None,
network_type: Optional[str] = None,
payment_type: Optional[str] = None,
period: Optional[int] = None,
resource_group_id: Optional[str] = None,
ssl_connections: Optional[int] = None,
ssl_vpn_internet_ip: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vpc_id: Optional[str] = None,
vpn_gateway_name: Optional[str] = None,
vpn_type: Optional[str] = None,
vswitch_id: Optional[str] = None) -> Gatewayfunc GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)public static Gateway get(String name, Output<String> id, GatewayState state, CustomResourceOptions options)resources: _: type: alicloud:vpn:Gateway get: id: ${id}- 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.
- Auto
Pay bool - Whether to pay automatically. Default value:
true. Valid values: - Auto
Propagate bool - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- Bandwidth int
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- Business
Status string - The business status of the VPN gateway.
- Create
Time int - The time when the VPN gateway was created.
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Enable
Ipsec bool - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- Instance
Charge stringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- Internet
Ip string - The internet ip of the VPN.
- Name string
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- Network
Type string - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- Payment
Type string - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- Period int
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Resource
Group stringId - The ID of the resource group.
- Ssl
Connections int - Maximum number of clients.
- Ssl
Vpn stringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- Status string
- The status of the resource.
- Dictionary<string, string>
- The Tag of.
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- Auto
Pay bool - Whether to pay automatically. Default value:
true. Valid values: - Auto
Propagate bool - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- Bandwidth int
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- Business
Status string - The business status of the VPN gateway.
- Create
Time int - The time when the VPN gateway was created.
- Description string
- The description of the VPN gateway.
- Disaster
Recovery stringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- Disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- Enable
Ipsec bool - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- Enable
Ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- Instance
Charge stringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- Internet
Ip string - The internet ip of the VPN.
- Name string
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- Network
Type string - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- Payment
Type string - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- Period int
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- Resource
Group stringId - The ID of the resource group.
- Ssl
Connections int - Maximum number of clients.
- Ssl
Vpn stringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- Status string
- The status of the resource.
- map[string]string
- The Tag of.
- Vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- Vpn
Gateway stringName - The name of the VPN gateway.
- Vpn
Type string - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- Vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- auto
Pay Boolean - Whether to pay automatically. Default value:
true. Valid values: - auto
Propagate Boolean - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- bandwidth Integer
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- business
Status String - The business status of the VPN gateway.
- create
Time Integer - The time when the VPN gateway was created.
- description String
- The description of the VPN gateway.
- disaster
Recovery StringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable
Ipsec Boolean - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl Boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance
Charge StringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- internet
Ip String - The internet ip of the VPN.
- name String
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network
Type String - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment
Type String - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period Integer
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource
Group StringId - The ID of the resource group.
- ssl
Connections Integer - Maximum number of clients.
- ssl
Vpn StringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status String
- The status of the resource.
- Map<String,String>
- The Tag of.
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
- auto
Pay boolean - Whether to pay automatically. Default value:
true. Valid values: - auto
Propagate boolean - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- bandwidth number
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- business
Status string - The business status of the VPN gateway.
- create
Time number - The time when the VPN gateway was created.
- description string
- The description of the VPN gateway.
- disaster
Recovery stringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- disaster
Recovery stringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable
Ipsec boolean - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance
Charge stringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- internet
Ip string - The internet ip of the VPN.
- name string
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network
Type string - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment
Type string - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period number
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource
Group stringId - The ID of the resource group.
- ssl
Connections number - Maximum number of clients.
- ssl
Vpn stringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status string
- The status of the resource.
- {[key: string]: string}
- The Tag of.
- vpc
Id string - The ID of the VPC to which the VPN gateway belongs.
- vpn
Gateway stringName - The name of the VPN gateway.
- vpn
Type string - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch
Id string - The ID of the VSwitch to which the VPN gateway is attached.
- auto_
pay bool - Whether to pay automatically. Default value:
true. Valid values: - auto_
propagate bool - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- bandwidth int
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- business_
status str - The business status of the VPN gateway.
- create_
time int - The time when the VPN gateway was created.
- description str
- The description of the VPN gateway.
- disaster_
recovery_ strinternet_ ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- disaster_
recovery_ strvswitch_ id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable_
ipsec bool - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable_
ssl bool Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance_
charge_ strtype - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- internet_
ip str - The internet ip of the VPN.
- name str
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network_
type str - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment_
type str - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period int
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource_
group_ strid - The ID of the resource group.
- ssl_
connections int - Maximum number of clients.
- ssl_
vpn_ strinternet_ ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status str
- The status of the resource.
- Mapping[str, str]
- The Tag of.
- vpc_
id str - The ID of the VPC to which the VPN gateway belongs.
- vpn_
gateway_ strname - The name of the VPN gateway.
- vpn_
type str - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch_
id str - The ID of the VSwitch to which the VPN gateway is attached.
- auto
Pay Boolean - Whether to pay automatically. Default value:
true. Valid values: - auto
Propagate Boolean - Whether to automatically propagate the BGP route to the VPC. Value: true: Propagate automatically. false: does not propagate automatically.
- bandwidth Number
- The Bandwidth specification of the VPN gateway. Unit: Mbps. If you want to create a public VPN gateway, the value is 5, 10, 20, 50, 100, 200, 500, or 1000. If you want to create a private VPN gateway, the value is 200 or 1000.
- business
Status String - The business status of the VPN gateway.
- create
Time Number - The time when the VPN gateway was created.
- description String
- The description of the VPN gateway.
- disaster
Recovery StringInternet Ip - The backup public IP address of the VPN gateway. The second IP address assigned by the system to create an IPsec-VPN connection. This parameter is returned only when the VPN gateway supports the dual-tunnel mode.
- disaster
Recovery StringVswitch Id - The ID of the backup VSwitch to which the VPN gateway is attached.
- enable
Ipsec Boolean - Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
- enable
Ssl Boolean Enable or Disable SSL VPN. At least one type of VPN should be enabled.
The following arguments will be discarded. Please use new fields as soon as possible:
- instance
Charge StringType - . Field 'instance_charge_type' has been deprecated from provider version 1.216.0. New field 'payment_type' instead.
- internet
Ip String - The internet ip of the VPN.
- name String
- . Field 'name' has been deprecated from provider version 1.216.0. New field 'vpn_gateway_name' instead.
- network
Type String - The network type of the VPN gateway. Value: public (default): public VPN gateway. private: private network VPN gateway.
- payment
Type String - Type of payment. Value: Subscription: prepaid PayAsYouGo: Post-paid.
- period Number
- The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
- resource
Group StringId - The ID of the resource group.
- ssl
Connections Number - Maximum number of clients.
- ssl
Vpn StringInternet Ip - The IP address of the SSL-VPN connection. This parameter is returned only when the VPN gateway is a public VPN gateway and supports only the single-tunnel mode. In addition, the VPN gateway must have the SSL-VPN feature enabled.
- status String
- The status of the resource.
- Map<String>
- The Tag of.
- vpc
Id String - The ID of the VPC to which the VPN gateway belongs.
- vpn
Gateway StringName - The name of the VPN gateway.
- vpn
Type String - The VPN gateway type. Value: Normal (default): Normal type. NationalStandard: National Secret type.
- vswitch
Id String - The ID of the VSwitch to which the VPN gateway is attached.
Import
VPN gateway can be imported using the id, e.g.
$ pulumi import alicloud:vpn/gateway:Gateway example <id>
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
alicloudTerraform Provider.
published on Saturday, Mar 14, 2026 by Pulumi
