Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.vpc.getSslVpnServers
Explore with Pulumi AI
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.
- Name
Regex string - A regex string of SSL-VPN server name.
- Output
File string - Save the result to the file.
- Vpn
Gateway stringId - Use the VPN gateway ID as the search key.
- Ids []string
- IDs of the SSL-VPN servers.
- Name
Regex string - A regex string of SSL-VPN server name.
- Output
File string - Save the result to the file.
- Vpn
Gateway stringId - Use the VPN gateway ID as the search key.
- ids List<String>
- IDs of the SSL-VPN servers.
- name
Regex String - A regex string of SSL-VPN server name.
- output
File String - Save the result to the file.
- vpn
Gateway StringId - Use the VPN gateway ID as the search key.
- ids string[]
- IDs of the SSL-VPN servers.
- name
Regex string - A regex string of SSL-VPN server name.
- output
File string - Save the result to the file.
- vpn
Gateway stringId - 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_ strid - Use the VPN gateway ID as the search key.
- ids List<String>
- IDs of the SSL-VPN servers.
- name
Regex String - A regex string of SSL-VPN server name.
- output
File String - Save the result to the file.
- vpn
Gateway StringId - 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.
Ali Cloud. Vpc. Outputs. Get Ssl Vpn Servers Server> - A list of SSL-VPN servers. Each element contains the following attributes:
- Name
Regex string - Output
File string - Vpn
Gateway stringId - 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
[]Get
Ssl Vpn Servers Server - A list of SSL-VPN servers. Each element contains the following attributes:
- Name
Regex string - Output
File string - Vpn
Gateway stringId - 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<Get
Ssl Vpn Servers Server> - A list of SSL-VPN servers. Each element contains the following attributes:
- name
Regex String - output
File String - vpn
Gateway StringId - 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
Get
Ssl Vpn Servers Server[] - A list of SSL-VPN servers. Each element contains the following attributes:
- name
Regex string - output
File string - vpn
Gateway stringId - 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[Get
Ssl Vpn Servers Server] - A list of SSL-VPN servers. Each element contains the following attributes:
- name_
regex str - output_
file str - vpn_
gateway_ strid - 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:
- name
Regex String - output
File String - vpn
Gateway StringId - The ID of the VPN gateway instance.
Supporting Types
GetSslVpnServersServer
- Cipher string
- The encryption algorithm used.
- Client
Ip stringPool - The IP address pool of the client.
- Compress bool
- Whether to compress.
- Connections int
- The number of current connections.
- Create
Time string - The time of creation.
- Id string
- The ID of the SSL-VPN server.
- Internet
Ip string - The public IP.
- Local
Subnet string - The local subnet of the VPN connection.
- Max
Connections 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.
- Vpn
Gateway stringId - Use the VPN gateway ID as the search key.
- Cipher string
- The encryption algorithm used.
- Client
Ip stringPool - The IP address pool of the client.
- Compress bool
- Whether to compress.
- Connections int
- The number of current connections.
- Create
Time string - The time of creation.
- Id string
- The ID of the SSL-VPN server.
- Internet
Ip string - The public IP.
- Local
Subnet string - The local subnet of the VPN connection.
- Max
Connections 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.
- Vpn
Gateway stringId - Use the VPN gateway ID as the search key.
- cipher String
- The encryption algorithm used.
- client
Ip StringPool - The IP address pool of the client.
- compress Boolean
- Whether to compress.
- connections Integer
- The number of current connections.
- create
Time String - The time of creation.
- id String
- The ID of the SSL-VPN server.
- internet
Ip String - The public IP.
- local
Subnet String - The local subnet of the VPN connection.
- max
Connections 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.
- vpn
Gateway StringId - Use the VPN gateway ID as the search key.
- cipher string
- The encryption algorithm used.
- client
Ip stringPool - The IP address pool of the client.
- compress boolean
- Whether to compress.
- connections number
- The number of current connections.
- create
Time string - The time of creation.
- id string
- The ID of the SSL-VPN server.
- internet
Ip string - The public IP.
- local
Subnet string - The local subnet of the VPN connection.
- max
Connections 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.
- vpn
Gateway stringId - Use the VPN gateway ID as the search key.
- cipher str
- The encryption algorithm used.
- client_
ip_ strpool - 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_ strid - Use the VPN gateway ID as the search key.
- cipher String
- The encryption algorithm used.
- client
Ip StringPool - The IP address pool of the client.
- compress Boolean
- Whether to compress.
- connections Number
- The number of current connections.
- create
Time String - The time of creation.
- id String
- The ID of the SSL-VPN server.
- internet
Ip String - The public IP.
- local
Subnet String - The local subnet of the VPN connection.
- max
Connections 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.
- vpn
Gateway StringId - 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.