Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
The VPNs data source lists a number of VPNs resource information owned by an Alicloud account.
NOTE: Available since v1.18.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as std from "@pulumi/std";
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$",
});
const defaultGetSwitches = defaultGetNetworks.then(defaultGetNetworks => alicloud.vpc.getSwitches({
vpcId: defaultGetNetworks.ids?.[0],
zoneId: "me-east-1a",
}));
const vswitch: alicloud.vpc.Switch[] = [];
defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids).length.apply(length => {
for (const range = {value: 0}; range.value < (length > 0 ? 0 : 1); range.value++) {
vswitch.push(new alicloud.vpc.Switch(`vswitch-${range.value}`, {
vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
cidrBlock: defaultGetNetworks.then(defaultGetNetworks => std.cidrsubnet({
input: defaultGetNetworks.vpcs?.[0]?.cidrBlock,
newbits: 8,
netnum: 8,
})).then(invoke => invoke.result),
zoneId: "me-east-1a",
vswitchName: name,
}));
}
});
const vswitchId = pulumi.all([defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids).length, defaultGetSwitches, std.concat({
input: [
vswitch.map(__item => __item.id),
[""],
],
})]).apply(([length, defaultGetSwitches, invoke]) => length > 0 ? defaultGetSwitches.ids?.[0] : invoke.result?.[0]);
const defaultGateway = new alicloud.vpn.Gateway("default", {
vpnType: "Normal",
vpnGatewayName: name,
vswitchId: vswitchId,
autoPay: true,
vpcId: defaultGetNetworks.then(defaultGetNetworks => defaultGetNetworks.ids?.[0]),
networkType: "public",
paymentType: "Subscription",
enableIpsec: true,
bandwidth: spec,
});
const vpnGateways = alicloud.vpn.getGatewaysOutput({
ids: [defaultGateway.id],
includeReservationData: true,
outputFile: "/tmp/vpns",
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_std as std
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$")
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
zone_id="me-east-1a")
vswitch = []
def create_vswitch(range_body):
for range in [{"value": i} for i in range(0, range_body)]:
vswitch.append(alicloud.vpc.Switch(f"vswitch-{range['value']}",
vpc_id=default_get_networks.ids[0],
cidr_block=std.cidrsubnet(input=default_get_networks.vpcs[0].cidr_block,
newbits=8,
netnum=8).result,
zone_id="me-east-1a",
vswitch_name=name))
len(default_get_switches.ids).apply(lambda resolved_outputs: create_vswitch(0 if resolved_outputs['length'] > 0 else 1))
vswitch_id = len(default_get_switches.ids).apply(lambda length: default_get_switches.ids[0] if length > 0 else std.concat(input=[
[__item.id for __item in vswitch],
[""],
]).result[0])
default_gateway = alicloud.vpn.Gateway("default",
vpn_type="Normal",
vpn_gateway_name=name,
vswitch_id=vswitch_id,
auto_pay=True,
vpc_id=default_get_networks.ids[0],
network_type="public",
payment_type="Subscription",
enable_ipsec=True,
bandwidth=spec)
vpn_gateways = alicloud.vpn.get_gateways_output(ids=[default_gateway.id],
include_reservation_data=True,
output_file="/tmp/vpns")
package main
import (
"fmt"
"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-std/sdk/go/std"
"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
}
_, 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$"),
}, nil);
if err != nil {
return err
}
defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
ZoneId: pulumi.StringRef("me-east-1a"),
}, nil);
if err != nil {
return err
}
invokeCidrsubnet, err := std.Cidrsubnet(ctx, &std.CidrsubnetArgs{
Input: defaultGetNetworks.Vpcs[0].CidrBlock,
Newbits: 8,
Netnum: 8,
}, nil)
if err != nil {
return err
}
var tmp0 float64
if length > 0 {
tmp0 = 0
} else {
tmp0 = 1
}
var vswitch []*vpc.Switch
for index := 0; index < float64(len(defaultGetSwitches.Ids).ApplyT(func(length int) (float64, error) {
return tmp0, nil
}).(pulumi.Float64Output)); index++ {
key0 := index
_ := index
__res, err := vpc.NewSwitch(ctx, fmt.Sprintf("vswitch-%v", key0), &vpc.SwitchArgs{
VpcId: pulumi.String(defaultGetNetworks.Ids[0]),
CidrBlock: pulumi.String(invokeCidrsubnet.Result),
ZoneId: pulumi.String("me-east-1a"),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
vswitch = append(vswitch, __res)
}
var tmp1 *interface{}
if length > 0 {
tmp1 = defaultGetSwitches.Ids[0]
} else {
tmp1 = std.Concat(ctx, &std.ConcatArgs{
Input: pulumi.StringArrayArray{
%!v(PANIC=Format method: fatal: A failure has occurred: unlowered splat expression @ example.pp:35,12-25),
[]string{
"",
},
},
}, nil).Result[0]
}
vswitchId := len(defaultGetSwitches.Ids).ApplyT(func(length int) (*interface{}, error) {
return &tmp1, nil
}).(pulumi.Interface{}PtrOutput)
defaultGateway, err := vpn.NewGateway(ctx, "default", &vpn.GatewayArgs{
VpnType: pulumi.String("Normal"),
VpnGatewayName: pulumi.String(name),
VswitchId: pulumi.Any(vswitchId),
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
}
_ = vpn.GetGatewaysOutput(ctx, vpn.GetGatewaysOutputArgs{
Ids: pulumi.StringArray{
defaultGateway.ID(),
},
IncludeReservationData: pulumi.Bool(true),
OutputFile: pulumi.String("/tmp/vpns"),
}, nil);
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Std = Pulumi.Std;
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$",
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = "me-east-1a",
});
var vswitch = new List<AliCloud.Vpc.Switch>();
for (var rangeIndex = 0; rangeIndex < defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids).Length.Apply(length => length > 0 ? 0 : 1); rangeIndex++)
{
var range = new { Value = rangeIndex };
vswitch.Add(new AliCloud.Vpc.Switch($"vswitch-{range.Value}", new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
CidrBlock = Std.Cidrsubnet.Invoke(new()
{
Input = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Vpcs[0]?.CidrBlock),
Newbits = 8,
Netnum = 8,
}).Apply(invoke => invoke.Result),
ZoneId = "me-east-1a",
VswitchName = name,
}));
}
var vswitchId = Output.Tuple(defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids).Length, defaultGetSwitches, Std.Concat.Invoke(new()
{
Input = new[]
{
vswitch.Select(__item => __item.Id).ToList(),
new[]
{
"",
},
},
})).Apply(values =>
{
var length = values.Item1;
var defaultGetSwitches = values.Item2;
var invoke = values.Item3;
return length > 0 ? defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]) : invoke.Result[0];
});
var defaultGateway = new AliCloud.Vpn.Gateway("default", new()
{
VpnType = "Normal",
VpnGatewayName = name,
VswitchId = vswitchId,
AutoPay = true,
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
NetworkType = "public",
PaymentType = "Subscription",
EnableIpsec = true,
Bandwidth = spec,
});
var vpnGateways = AliCloud.Vpn.GetGateways.Invoke(new()
{
Ids = new[]
{
defaultGateway.Id,
},
IncludeReservationData = true,
OutputFile = "/tmp/vpns",
});
});
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.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.std.StdFunctions;
import com.pulumi.std.inputs.CidrsubnetArgs;
import com.pulumi.std.inputs.ConcatArgs;
import com.pulumi.alicloud.vpn.Gateway;
import com.pulumi.alicloud.vpn.GatewayArgs;
import com.pulumi.alicloud.vpn.VpnFunctions;
import com.pulumi.alicloud.vpn.inputs.GetGatewaysArgs;
import com.pulumi.codegen.internal.KeyedValue;
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$")
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultGetNetworks.ids()[0])
.zoneId("me-east-1a")
.build());
for (var i = 0; i < defaultGetSwitches.ids().length().applyValue(_length -> _length > 0 ? 0 : 1); i++) {
new Switch("vswitch-" + i, SwitchArgs.builder()
.vpcId(defaultGetNetworks.ids()[0])
.cidrBlock(StdFunctions.cidrsubnet(CidrsubnetArgs.builder()
.input(defaultGetNetworks.vpcs()[0].cidrBlock())
.newbits(8)
.netnum(8)
.build()).result())
.zoneId("me-east-1a")
.vswitchName(name)
.build());
}
final var vswitchId = defaultGetSwitches.ids().length().applyValue(_length -> _length > 0 ? defaultGetSwitches.ids()[0] : StdFunctions.concat(ConcatArgs.builder()
.input(
vswitch.stream().map(element -> element.id()).collect(toList()),
"")
.build()).result()[0]);
var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()
.vpnType("Normal")
.vpnGatewayName(name)
.vswitchId(vswitchId)
.autoPay(true)
.vpcId(defaultGetNetworks.ids()[0])
.networkType("public")
.paymentType("Subscription")
.enableIpsec(true)
.bandwidth(spec)
.build());
final var vpnGateways = VpnFunctions.getGateways(GetGatewaysArgs.builder()
.ids(defaultGateway.id())
.includeReservationData(true)
.outputFile("/tmp/vpns")
.build());
}
}
Example coming soon!
Using getGateways
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGateways(args: GetGatewaysArgs, opts?: InvokeOptions): Promise<GetGatewaysResult>
function getGatewaysOutput(args: GetGatewaysOutputArgs, opts?: InvokeOptions): Output<GetGatewaysResult>def get_gateways(business_status: Optional[str] = None,
enable_ipsec: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
include_reservation_data: Optional[bool] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
ssl_vpn: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGatewaysResult
def get_gateways_output(business_status: Optional[pulumi.Input[str]] = None,
enable_ipsec: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
include_reservation_data: Optional[pulumi.Input[bool]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
ssl_vpn: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
vpc_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGatewaysResult]func GetGateways(ctx *Context, args *GetGatewaysArgs, opts ...InvokeOption) (*GetGatewaysResult, error)
func GetGatewaysOutput(ctx *Context, args *GetGatewaysOutputArgs, opts ...InvokeOption) GetGatewaysResultOutput> Note: This function is named GetGateways in the Go SDK.
public static class GetGateways
{
public static Task<GetGatewaysResult> InvokeAsync(GetGatewaysArgs args, InvokeOptions? opts = null)
public static Output<GetGatewaysResult> Invoke(GetGatewaysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGatewaysResult> getGateways(GetGatewaysArgs args, InvokeOptions options)
public static Output<GetGatewaysResult> getGateways(GetGatewaysArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:vpn/getGateways:getGateways
arguments:
# arguments dictionaryThe following arguments are supported:
- Business
Status string - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- Enable
Ipsec bool - Indicates whether the IPsec-VPN feature is enabled.
- Ids List<string>
- IDs of the VPN.
- Include
Reservation boolData - Include ineffective ordering data.
- Name
Regex string - A regex string of VPN name.
- Output
File string - Save the result to the file.
- Ssl
Vpn string - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - Status string
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- Vpc
Id string - Use the VPC ID as the search key.
- Business
Status string - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- Enable
Ipsec bool - Indicates whether the IPsec-VPN feature is enabled.
- Ids []string
- IDs of the VPN.
- Include
Reservation boolData - Include ineffective ordering data.
- Name
Regex string - A regex string of VPN name.
- Output
File string - Save the result to the file.
- Ssl
Vpn string - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - Status string
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- Vpc
Id string - Use the VPC ID as the search key.
- business
Status String - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- enable
Ipsec Boolean - Indicates whether the IPsec-VPN feature is enabled.
- ids List<String>
- IDs of the VPN.
- include
Reservation BooleanData - Include ineffective ordering data.
- name
Regex String - A regex string of VPN name.
- output
File String - Save the result to the file.
- ssl
Vpn String - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - status String
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- vpc
Id String - Use the VPC ID as the search key.
- business
Status string - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- enable
Ipsec boolean - Indicates whether the IPsec-VPN feature is enabled.
- ids string[]
- IDs of the VPN.
- include
Reservation booleanData - Include ineffective ordering data.
- name
Regex string - A regex string of VPN name.
- output
File string - Save the result to the file.
- ssl
Vpn string - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - status string
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- vpc
Id string - Use the VPC ID as the search key.
- business_
status str - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- enable_
ipsec bool - Indicates whether the IPsec-VPN feature is enabled.
- ids Sequence[str]
- IDs of the VPN.
- include_
reservation_ booldata - Include ineffective ordering data.
- name_
regex str - A regex string of VPN name.
- output_
file str - Save the result to the file.
- ssl_
vpn str - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - status str
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- vpc_
id str - Use the VPC ID as the search key.
- business
Status String - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- enable
Ipsec Boolean - Indicates whether the IPsec-VPN feature is enabled.
- ids List<String>
- IDs of the VPN.
- include
Reservation BooleanData - Include ineffective ordering data.
- name
Regex String - A regex string of VPN name.
- output
File String - Save the result to the file.
- ssl
Vpn String - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - status String
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- vpc
Id String - Use the VPC ID as the search key.
getGateways Result
The following output properties are available:
- Gateways
List<Pulumi.
Ali Cloud. Vpn. Outputs. Get Gateways Gateway> - A list of VPN gateways. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- IDs of the VPN.
- Names List<string>
- names of the VPN.
- Business
Status string - The business status of the VPN gateway.
- Enable
Ipsec bool - Whether the ipsec function is enabled.
- Include
Reservation boolData - Name
Regex string - Output
File string - Ssl
Vpn string - Whether the ssl function is enabled.
- Status string
- The status of the VPN
- Vpc
Id string - ID of the VPC that the VPN belongs.
- Gateways
[]Get
Gateways Gateway - A list of VPN gateways. Each element contains the following attributes:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- IDs of the VPN.
- Names []string
- names of the VPN.
- Business
Status string - The business status of the VPN gateway.
- Enable
Ipsec bool - Whether the ipsec function is enabled.
- Include
Reservation boolData - Name
Regex string - Output
File string - Ssl
Vpn string - Whether the ssl function is enabled.
- Status string
- The status of the VPN
- Vpc
Id string - ID of the VPC that the VPN belongs.
- gateways
List<Get
Gateways Gateway> - A list of VPN gateways. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the VPN.
- names List<String>
- names of the VPN.
- business
Status String - The business status of the VPN gateway.
- enable
Ipsec Boolean - Whether the ipsec function is enabled.
- include
Reservation BooleanData - name
Regex String - output
File String - ssl
Vpn String - Whether the ssl function is enabled.
- status String
- The status of the VPN
- vpc
Id String - ID of the VPC that the VPN belongs.
- gateways
Get
Gateways Gateway[] - A list of VPN gateways. Each element contains the following attributes:
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- IDs of the VPN.
- names string[]
- names of the VPN.
- business
Status string - The business status of the VPN gateway.
- enable
Ipsec boolean - Whether the ipsec function is enabled.
- include
Reservation booleanData - name
Regex string - output
File string - ssl
Vpn string - Whether the ssl function is enabled.
- status string
- The status of the VPN
- vpc
Id string - ID of the VPC that the VPN belongs.
- gateways
Sequence[Get
Gateways Gateway] - A list of VPN gateways. Each element contains the following attributes:
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- IDs of the VPN.
- names Sequence[str]
- names of the VPN.
- business_
status str - The business status of the VPN gateway.
- enable_
ipsec bool - Whether the ipsec function is enabled.
- include_
reservation_ booldata - name_
regex str - output_
file str - ssl_
vpn str - Whether the ssl function is enabled.
- status str
- The status of the VPN
- vpc_
id str - ID of the VPC that the VPN belongs.
- gateways List<Property Map>
- A list of VPN gateways. Each element contains the following attributes:
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- IDs of the VPN.
- names List<String>
- names of the VPN.
- business
Status String - The business status of the VPN gateway.
- enable
Ipsec Boolean - Whether the ipsec function is enabled.
- include
Reservation BooleanData - name
Regex String - output
File String - ssl
Vpn String - Whether the ssl function is enabled.
- status String
- The status of the VPN
- vpc
Id String - ID of the VPC that the VPN belongs.
Supporting Types
GetGatewaysGateway
- Auto
Propagate string - Whether to automatically propagate BGP routes to the VPC. Valid values:
true,false. - Business
Status string - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- Create
Time string - The creation time of the VPN gateway.
- Description string
- The description of the VPN
- 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 string - Indicates whether the IPsec-VPN feature is enabled.
- Enable
Ssl string - Whether the ssl function is enabled. It has been deprecated from provider version 1.243.0, and using
ssl_vpninstead. - End
Time string - The expiration time of the VPN gateway.
- Id string
- ID of the VPN.
- Instance
Charge stringType - The charge type of the VPN gateway.
- Internet
Ip string - The internet ip of the VPN.
- Name string
- The name of the VPN.
- Network
Type string - The network type of the VPN gateway.
- Resource
Group stringId - The ID of the resource group.
- Specification string
- The Specification of the VPN
- Ssl
Connections int - Total count of ssl vpn connections.
- Ssl
Vpn string - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - 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
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- Dictionary<string, string>
- The Tag of.
- Vpc
Id string - Use the VPC ID as the search key.
- 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
Propagate string - Whether to automatically propagate BGP routes to the VPC. Valid values:
true,false. - Business
Status string - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- Create
Time string - The creation time of the VPN gateway.
- Description string
- The description of the VPN
- 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 string - Indicates whether the IPsec-VPN feature is enabled.
- Enable
Ssl string - Whether the ssl function is enabled. It has been deprecated from provider version 1.243.0, and using
ssl_vpninstead. - End
Time string - The expiration time of the VPN gateway.
- Id string
- ID of the VPN.
- Instance
Charge stringType - The charge type of the VPN gateway.
- Internet
Ip string - The internet ip of the VPN.
- Name string
- The name of the VPN.
- Network
Type string - The network type of the VPN gateway.
- Resource
Group stringId - The ID of the resource group.
- Specification string
- The Specification of the VPN
- Ssl
Connections int - Total count of ssl vpn connections.
- Ssl
Vpn string - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - 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
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- map[string]string
- The Tag of.
- Vpc
Id string - Use the VPC ID as the search key.
- 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
Propagate String - Whether to automatically propagate BGP routes to the VPC. Valid values:
true,false. - business
Status String - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- create
Time String - The creation time of the VPN gateway.
- description String
- The description of the VPN
- 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 String - Indicates whether the IPsec-VPN feature is enabled.
- enable
Ssl String - Whether the ssl function is enabled. It has been deprecated from provider version 1.243.0, and using
ssl_vpninstead. - end
Time String - The expiration time of the VPN gateway.
- id String
- ID of the VPN.
- instance
Charge StringType - The charge type of the VPN gateway.
- internet
Ip String - The internet ip of the VPN.
- name String
- The name of the VPN.
- network
Type String - The network type of the VPN gateway.
- resource
Group StringId - The ID of the resource group.
- specification String
- The Specification of the VPN
- ssl
Connections Integer - Total count of ssl vpn connections.
- ssl
Vpn String - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - 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
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- Map<String,String>
- The Tag of.
- vpc
Id String - Use the VPC ID as the search key.
- 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
Propagate string - Whether to automatically propagate BGP routes to the VPC. Valid values:
true,false. - business
Status string - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- create
Time string - The creation time of the VPN gateway.
- description string
- The description of the VPN
- 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 string - Indicates whether the IPsec-VPN feature is enabled.
- enable
Ssl string - Whether the ssl function is enabled. It has been deprecated from provider version 1.243.0, and using
ssl_vpninstead. - end
Time string - The expiration time of the VPN gateway.
- id string
- ID of the VPN.
- instance
Charge stringType - The charge type of the VPN gateway.
- internet
Ip string - The internet ip of the VPN.
- name string
- The name of the VPN.
- network
Type string - The network type of the VPN gateway.
- resource
Group stringId - The ID of the resource group.
- specification string
- The Specification of the VPN
- ssl
Connections number - Total count of ssl vpn connections.
- ssl
Vpn string - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - 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
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- {[key: string]: string}
- The Tag of.
- vpc
Id string - Use the VPC ID as the search key.
- 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_
propagate str - Whether to automatically propagate BGP routes to the VPC. Valid values:
true,false. - business_
status str - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- create_
time str - The creation time of the VPN gateway.
- description str
- The description of the VPN
- 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 str - Indicates whether the IPsec-VPN feature is enabled.
- enable_
ssl str - Whether the ssl function is enabled. It has been deprecated from provider version 1.243.0, and using
ssl_vpninstead. - end_
time str - The expiration time of the VPN gateway.
- id str
- ID of the VPN.
- instance_
charge_ strtype - The charge type of the VPN gateway.
- internet_
ip str - The internet ip of the VPN.
- name str
- The name of the VPN.
- network_
type str - The network type of the VPN gateway.
- resource_
group_ strid - The ID of the resource group.
- specification str
- The Specification of the VPN
- ssl_
connections int - Total count of ssl vpn connections.
- ssl_
vpn str - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - 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
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- Mapping[str, str]
- The Tag of.
- vpc_
id str - Use the VPC ID as the search key.
- 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
Propagate String - Whether to automatically propagate BGP routes to the VPC. Valid values:
true,false. - business
Status String - Limit search to specific business status - valid value is "Normal", "FinancialLocked".
- create
Time String - The creation time of the VPN gateway.
- description String
- The description of the VPN
- 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 String - Indicates whether the IPsec-VPN feature is enabled.
- enable
Ssl String - Whether the ssl function is enabled. It has been deprecated from provider version 1.243.0, and using
ssl_vpninstead. - end
Time String - The expiration time of the VPN gateway.
- id String
- ID of the VPN.
- instance
Charge StringType - The charge type of the VPN gateway.
- internet
Ip String - The internet ip of the VPN.
- name String
- The name of the VPN.
- network
Type String - The network type of the VPN gateway.
- resource
Group StringId - The ID of the resource group.
- specification String
- The Specification of the VPN
- ssl
Connections Number - Total count of ssl vpn connections.
- ssl
Vpn String - Indicates whether the SSL-VPN feature is enabled. Valid value is
enable,disable. - 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
- Limit search to specific status - valid value is "Init", "Provisioning", "Active", "Updating", "Deleting".
- Map<String>
- The Tag of.
- vpc
Id String - Use the VPC ID as the search key.
- 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.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
Viewing docs for Alibaba Cloud v3.97.0
published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
