1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vpc
  5. getSslVpnServers
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.vpc.getSslVpnServers

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

The SSL-VPN servers data source lists lots of SSL-VPN servers resource information owned by an Alicloud account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const foo = alicloud.vpc.getSslVpnServers({
    ids: ["fake-server-id"],
    vpnGatewayId: "fake-vpn-id",
    outputFile: "/tmp/sslserver",
    nameRegex: "^foo",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.vpc.get_ssl_vpn_servers(ids=["fake-server-id"],
    vpn_gateway_id="fake-vpn-id",
    output_file="/tmp/sslserver",
    name_regex="^foo")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.GetSslVpnServers(ctx, &vpc.GetSslVpnServersArgs{
			Ids: []string{
				"fake-server-id",
			},
			VpnGatewayId: pulumi.StringRef("fake-vpn-id"),
			OutputFile:   pulumi.StringRef("/tmp/sslserver"),
			NameRegex:    pulumi.StringRef("^foo"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var foo = AliCloud.Vpc.GetSslVpnServers.Invoke(new()
    {
        Ids = new[]
        {
            "fake-server-id",
        },
        VpnGatewayId = "fake-vpn-id",
        OutputFile = "/tmp/sslserver",
        NameRegex = "^foo",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetSslVpnServersArgs;
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 foo = VpcFunctions.getSslVpnServers(GetSslVpnServersArgs.builder()
            .ids("fake-server-id")
            .vpnGatewayId("fake-vpn-id")
            .outputFile("/tmp/sslserver")
            .nameRegex("^foo")
            .build());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      function: alicloud:vpc:getSslVpnServers
      arguments:
        ids:
          - fake-server-id
        vpnGatewayId: fake-vpn-id
        outputFile: /tmp/sslserver
        nameRegex: ^foo
Copy

Using getSslVpnServers

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 getSslVpnServers(args: GetSslVpnServersArgs, opts?: InvokeOptions): Promise<GetSslVpnServersResult>
function getSslVpnServersOutput(args: GetSslVpnServersOutputArgs, opts?: InvokeOptions): Output<GetSslVpnServersResult>
Copy
def get_ssl_vpn_servers(ids: Optional[Sequence[str]] = None,
                        name_regex: Optional[str] = None,
                        output_file: Optional[str] = None,
                        vpn_gateway_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetSslVpnServersResult
def get_ssl_vpn_servers_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        name_regex: Optional[pulumi.Input[str]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        vpn_gateway_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetSslVpnServersResult]
Copy
func GetSslVpnServers(ctx *Context, args *GetSslVpnServersArgs, opts ...InvokeOption) (*GetSslVpnServersResult, error)
func GetSslVpnServersOutput(ctx *Context, args *GetSslVpnServersOutputArgs, opts ...InvokeOption) GetSslVpnServersResultOutput
Copy

> Note: This function is named GetSslVpnServers in the Go SDK.

public static class GetSslVpnServers 
{
    public static Task<GetSslVpnServersResult> InvokeAsync(GetSslVpnServersArgs args, InvokeOptions? opts = null)
    public static Output<GetSslVpnServersResult> Invoke(GetSslVpnServersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSslVpnServersResult> getSslVpnServers(GetSslVpnServersArgs args, InvokeOptions options)
public static Output<GetSslVpnServersResult> getSslVpnServers(GetSslVpnServersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:vpc/getSslVpnServers:getSslVpnServers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids Changes to this property will trigger replacement. List<string>
IDs of the SSL-VPN servers.
NameRegex Changes to this property will trigger replacement. string
A regex string of SSL-VPN server name.
OutputFile string
Save the result to the file.
VpnGatewayId string
Use the VPN gateway ID as the search key.
Ids Changes to this property will trigger replacement. []string
IDs of the SSL-VPN servers.
NameRegex Changes to this property will trigger replacement. string
A regex string of SSL-VPN server name.
OutputFile string
Save the result to the file.
VpnGatewayId string
Use the VPN gateway ID as the search key.
ids Changes to this property will trigger replacement. List<String>
IDs of the SSL-VPN servers.
nameRegex Changes to this property will trigger replacement. String
A regex string of SSL-VPN server name.
outputFile String
Save the result to the file.
vpnGatewayId String
Use the VPN gateway ID as the search key.
ids Changes to this property will trigger replacement. string[]
IDs of the SSL-VPN servers.
nameRegex Changes to this property will trigger replacement. string
A regex string of SSL-VPN server name.
outputFile string
Save the result to the file.
vpnGatewayId string
Use the VPN gateway ID as the search key.
ids Changes to this property will trigger replacement. Sequence[str]
IDs of the SSL-VPN servers.
name_regex Changes to this property will trigger replacement. str
A regex string of SSL-VPN server name.
output_file str
Save the result to the file.
vpn_gateway_id str
Use the VPN gateway ID as the search key.
ids Changes to this property will trigger replacement. List<String>
IDs of the SSL-VPN servers.
nameRegex Changes to this property will trigger replacement. String
A regex string of SSL-VPN server name.
outputFile String
Save the result to the file.
vpnGatewayId String
Use the VPN gateway ID as the search key.

getSslVpnServers Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of SSL-VPN server IDs.
Names List<string>
A list of SSL-VPN server names.
Servers List<Pulumi.AliCloud.Vpc.Outputs.GetSslVpnServersServer>
A list of SSL-VPN servers. Each element contains the following attributes:
NameRegex string
OutputFile string
VpnGatewayId string
The ID of the VPN gateway instance.
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of SSL-VPN server IDs.
Names []string
A list of SSL-VPN server names.
Servers []GetSslVpnServersServer
A list of SSL-VPN servers. Each element contains the following attributes:
NameRegex string
OutputFile string
VpnGatewayId string
The ID of the VPN gateway instance.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of SSL-VPN server IDs.
names List<String>
A list of SSL-VPN server names.
servers List<GetSslVpnServersServer>
A list of SSL-VPN servers. Each element contains the following attributes:
nameRegex String
outputFile String
vpnGatewayId String
The ID of the VPN gateway instance.
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of SSL-VPN server IDs.
names string[]
A list of SSL-VPN server names.
servers GetSslVpnServersServer[]
A list of SSL-VPN servers. Each element contains the following attributes:
nameRegex string
outputFile string
vpnGatewayId string
The ID of the VPN gateway instance.
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of SSL-VPN server IDs.
names Sequence[str]
A list of SSL-VPN server names.
servers Sequence[GetSslVpnServersServer]
A list of SSL-VPN servers. Each element contains the following attributes:
name_regex str
output_file str
vpn_gateway_id str
The ID of the VPN gateway instance.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of SSL-VPN server IDs.
names List<String>
A list of SSL-VPN server names.
servers List<Property Map>
A list of SSL-VPN servers. Each element contains the following attributes:
nameRegex String
outputFile String
vpnGatewayId String
The ID of the VPN gateway instance.

Supporting Types

GetSslVpnServersServer

Cipher This property is required. string
The encryption algorithm used.
ClientIpPool This property is required. string
The IP address pool of the client.
Compress This property is required. bool
Whether to compress.
Connections This property is required. int
The number of current connections.
CreateTime This property is required. string
The time of creation.
Id This property is required. string
The ID of the SSL-VPN server.
InternetIp This property is required. string
The public IP.
LocalSubnet This property is required. string
The local subnet of the VPN connection.
MaxConnections This property is required. int
The maximum number of connections.
Name This property is required. string
The name of the SSL-VPN server.
Port This property is required. int
The port used by the SSL-VPN server.
Proto This property is required. string
The protocol used by the SSL-VPN server.
VpnGatewayId This property is required. string
Use the VPN gateway ID as the search key.
Cipher This property is required. string
The encryption algorithm used.
ClientIpPool This property is required. string
The IP address pool of the client.
Compress This property is required. bool
Whether to compress.
Connections This property is required. int
The number of current connections.
CreateTime This property is required. string
The time of creation.
Id This property is required. string
The ID of the SSL-VPN server.
InternetIp This property is required. string
The public IP.
LocalSubnet This property is required. string
The local subnet of the VPN connection.
MaxConnections This property is required. int
The maximum number of connections.
Name This property is required. string
The name of the SSL-VPN server.
Port This property is required. int
The port used by the SSL-VPN server.
Proto This property is required. string
The protocol used by the SSL-VPN server.
VpnGatewayId This property is required. string
Use the VPN gateway ID as the search key.
cipher This property is required. String
The encryption algorithm used.
clientIpPool This property is required. String
The IP address pool of the client.
compress This property is required. Boolean
Whether to compress.
connections This property is required. Integer
The number of current connections.
createTime This property is required. String
The time of creation.
id This property is required. String
The ID of the SSL-VPN server.
internetIp This property is required. String
The public IP.
localSubnet This property is required. String
The local subnet of the VPN connection.
maxConnections This property is required. Integer
The maximum number of connections.
name This property is required. String
The name of the SSL-VPN server.
port This property is required. Integer
The port used by the SSL-VPN server.
proto This property is required. String
The protocol used by the SSL-VPN server.
vpnGatewayId This property is required. String
Use the VPN gateway ID as the search key.
cipher This property is required. string
The encryption algorithm used.
clientIpPool This property is required. string
The IP address pool of the client.
compress This property is required. boolean
Whether to compress.
connections This property is required. number
The number of current connections.
createTime This property is required. string
The time of creation.
id This property is required. string
The ID of the SSL-VPN server.
internetIp This property is required. string
The public IP.
localSubnet This property is required. string
The local subnet of the VPN connection.
maxConnections This property is required. number
The maximum number of connections.
name This property is required. string
The name of the SSL-VPN server.
port This property is required. number
The port used by the SSL-VPN server.
proto This property is required. string
The protocol used by the SSL-VPN server.
vpnGatewayId This property is required. string
Use the VPN gateway ID as the search key.
cipher This property is required. str
The encryption algorithm used.
client_ip_pool This property is required. str
The IP address pool of the client.
compress This property is required. bool
Whether to compress.
connections This property is required. int
The number of current connections.
create_time This property is required. str
The time of creation.
id This property is required. str
The ID of the SSL-VPN server.
internet_ip This property is required. str
The public IP.
local_subnet This property is required. str
The local subnet of the VPN connection.
max_connections This property is required. int
The maximum number of connections.
name This property is required. str
The name of the SSL-VPN server.
port This property is required. int
The port used by the SSL-VPN server.
proto This property is required. str
The protocol used by the SSL-VPN server.
vpn_gateway_id This property is required. str
Use the VPN gateway ID as the search key.
cipher This property is required. String
The encryption algorithm used.
clientIpPool This property is required. String
The IP address pool of the client.
compress This property is required. Boolean
Whether to compress.
connections This property is required. Number
The number of current connections.
createTime This property is required. String
The time of creation.
id This property is required. String
The ID of the SSL-VPN server.
internetIp This property is required. String
The public IP.
localSubnet This property is required. String
The local subnet of the VPN connection.
maxConnections This property is required. Number
The maximum number of connections.
name This property is required. String
The name of the SSL-VPN server.
port This property is required. Number
The port used by the SSL-VPN server.
proto This property is required. String
The protocol used by the SSL-VPN server.
vpnGatewayId This property is required. String
Use the VPN gateway ID as the search key.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi