1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. getSslVpnServers
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.vpc.getSslVpnServers

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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",
    });
    
    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")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: alicloud:vpc:getSslVpnServers
          Arguments:
            ids:
              - fake-server-id
            vpnGatewayId: fake-vpn-id
            outputFile: /tmp/sslserver
            nameRegex: ^foo
    

    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>
    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]
    func GetSslVpnServers(ctx *Context, args *GetSslVpnServersArgs, opts ...InvokeOption) (*GetSslVpnServersResult, error)
    func GetSslVpnServersOutput(ctx *Context, args *GetSslVpnServersOutputArgs, opts ...InvokeOption) GetSslVpnServersResultOutput

    > 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)
    }
    public static CompletableFuture<GetSslVpnServersResult> getSslVpnServers(GetSslVpnServersArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:vpc/getSslVpnServers:getSslVpnServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    IDs of the SSL-VPN servers.
    NameRegex 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 []string
    IDs of the SSL-VPN servers.
    NameRegex 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 List<String>
    IDs of the SSL-VPN servers.
    nameRegex 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 string[]
    IDs of the SSL-VPN servers.
    nameRegex 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 Sequence[str]
    IDs of the SSL-VPN servers.
    name_regex 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 List<String>
    IDs of the SSL-VPN servers.
    nameRegex 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 string
    The encryption algorithm used.
    ClientIpPool string
    The IP address pool of the client.
    Compress bool
    Whether to compress.
    Connections int
    The number of current connections.
    CreateTime string
    The time of creation.
    Id string
    The ID of the SSL-VPN server.
    InternetIp string
    The public IP.
    LocalSubnet string
    The local subnet of the VPN connection.
    MaxConnections int
    The maximum number of connections.
    Name string
    The name of the SSL-VPN server.
    Port int
    The port used by the SSL-VPN server.
    Proto string
    The protocol used by the SSL-VPN server.
    VpnGatewayId string
    Use the VPN gateway ID as the search key.
    Cipher string
    The encryption algorithm used.
    ClientIpPool string
    The IP address pool of the client.
    Compress bool
    Whether to compress.
    Connections int
    The number of current connections.
    CreateTime string
    The time of creation.
    Id string
    The ID of the SSL-VPN server.
    InternetIp string
    The public IP.
    LocalSubnet string
    The local subnet of the VPN connection.
    MaxConnections int
    The maximum number of connections.
    Name string
    The name of the SSL-VPN server.
    Port int
    The port used by the SSL-VPN server.
    Proto string
    The protocol used by the SSL-VPN server.
    VpnGatewayId string
    Use the VPN gateway ID as the search key.
    cipher String
    The encryption algorithm used.
    clientIpPool String
    The IP address pool of the client.
    compress Boolean
    Whether to compress.
    connections Integer
    The number of current connections.
    createTime String
    The time of creation.
    id String
    The ID of the SSL-VPN server.
    internetIp String
    The public IP.
    localSubnet String
    The local subnet of the VPN connection.
    maxConnections Integer
    The maximum number of connections.
    name String
    The name of the SSL-VPN server.
    port Integer
    The port used by the SSL-VPN server.
    proto String
    The protocol used by the SSL-VPN server.
    vpnGatewayId String
    Use the VPN gateway ID as the search key.
    cipher string
    The encryption algorithm used.
    clientIpPool string
    The IP address pool of the client.
    compress boolean
    Whether to compress.
    connections number
    The number of current connections.
    createTime string
    The time of creation.
    id string
    The ID of the SSL-VPN server.
    internetIp string
    The public IP.
    localSubnet string
    The local subnet of the VPN connection.
    maxConnections number
    The maximum number of connections.
    name string
    The name of the SSL-VPN server.
    port number
    The port used by the SSL-VPN server.
    proto string
    The protocol used by the SSL-VPN server.
    vpnGatewayId string
    Use the VPN gateway ID as the search key.
    cipher str
    The encryption algorithm used.
    client_ip_pool str
    The IP address pool of the client.
    compress bool
    Whether to compress.
    connections int
    The number of current connections.
    create_time str
    The time of creation.
    id str
    The ID of the SSL-VPN server.
    internet_ip str
    The public IP.
    local_subnet str
    The local subnet of the VPN connection.
    max_connections int
    The maximum number of connections.
    name str
    The name of the SSL-VPN server.
    port int
    The port used by the SSL-VPN server.
    proto str
    The protocol used by the SSL-VPN server.
    vpn_gateway_id str
    Use the VPN gateway ID as the search key.
    cipher String
    The encryption algorithm used.
    clientIpPool String
    The IP address pool of the client.
    compress Boolean
    Whether to compress.
    connections Number
    The number of current connections.
    createTime String
    The time of creation.
    id String
    The ID of the SSL-VPN server.
    internetIp String
    The public IP.
    localSubnet String
    The local subnet of the VPN connection.
    maxConnections Number
    The maximum number of connections.
    name String
    The name of the SSL-VPN server.
    port Number
    The port used by the SSL-VPN server.
    proto String
    The protocol used by the SSL-VPN server.
    vpnGatewayId 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.
    alicloud logo
    Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi