Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.vpn.SslVpnServers
Explore with Pulumi AI
Use this data source to query detailed information of ssl vpn servers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
import * as volcengine from "@volcengine/pulumi";
const fooZones = volcengine.ecs.Zones({});
const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
    vpcName: "acc-test-vpc",
    cidrBlock: "172.16.0.0/16",
});
const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
    subnetName: "acc-test-subnet",
    cidrBlock: "172.16.0.0/24",
    zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
    vpcId: fooVpc.id,
});
const fooGateway = new volcengine.vpn.Gateway("fooGateway", {
    vpcId: fooVpc.id,
    subnetId: fooSubnet.id,
    bandwidth: 5,
    vpnGatewayName: "acc-test1",
    description: "acc-test1",
    period: 7,
    projectName: "default",
    sslEnabled: true,
    sslMaxConnections: 5,
});
const fooSslVpnServer = new volcengine.vpn.SslVpnServer("fooSslVpnServer", {
    vpnGatewayId: fooGateway.id,
    localSubnets: [fooSubnet.cidrBlock],
    clientIpPool: "172.16.2.0/24",
    sslVpnServerName: "acc-test-ssl",
    description: "acc-test",
    protocol: "UDP",
    cipher: "AES-128-CBC",
    auth: "SHA1",
    compress: true,
});
const fooSslVpnServers = volcengine.vpn.SslVpnServersOutput({
    ids: [fooSslVpnServer.id],
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.zones()
foo_vpc = volcengine.vpc.Vpc("fooVpc",
    vpc_name="acc-test-vpc",
    cidr_block="172.16.0.0/16")
foo_subnet = volcengine.vpc.Subnet("fooSubnet",
    subnet_name="acc-test-subnet",
    cidr_block="172.16.0.0/24",
    zone_id=foo_zones.zones[0].id,
    vpc_id=foo_vpc.id)
foo_gateway = volcengine.vpn.Gateway("fooGateway",
    vpc_id=foo_vpc.id,
    subnet_id=foo_subnet.id,
    bandwidth=5,
    vpn_gateway_name="acc-test1",
    description="acc-test1",
    period=7,
    project_name="default",
    ssl_enabled=True,
    ssl_max_connections=5)
foo_ssl_vpn_server = volcengine.vpn.SslVpnServer("fooSslVpnServer",
    vpn_gateway_id=foo_gateway.id,
    local_subnets=[foo_subnet.cidr_block],
    client_ip_pool="172.16.2.0/24",
    ssl_vpn_server_name="acc-test-ssl",
    description="acc-test",
    protocol="UDP",
    cipher="AES-128-CBC",
    auth="SHA1",
    compress=True)
foo_ssl_vpn_servers = volcengine.vpn.ssl_vpn_servers_output(ids=[foo_ssl_vpn_server.id])
package main
import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpn"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		fooZones, err := ecs.Zones(ctx, nil, nil)
		if err != nil {
			return err
		}
		fooVpc, err := vpc.NewVpc(ctx, "fooVpc", &vpc.VpcArgs{
			VpcName:   pulumi.String("acc-test-vpc"),
			CidrBlock: pulumi.String("172.16.0.0/16"),
		})
		if err != nil {
			return err
		}
		fooSubnet, err := vpc.NewSubnet(ctx, "fooSubnet", &vpc.SubnetArgs{
			SubnetName: pulumi.String("acc-test-subnet"),
			CidrBlock:  pulumi.String("172.16.0.0/24"),
			ZoneId:     pulumi.String(fooZones.Zones[0].Id),
			VpcId:      fooVpc.ID(),
		})
		if err != nil {
			return err
		}
		fooGateway, err := vpn.NewGateway(ctx, "fooGateway", &vpn.GatewayArgs{
			VpcId:             fooVpc.ID(),
			SubnetId:          fooSubnet.ID(),
			Bandwidth:         pulumi.Int(5),
			VpnGatewayName:    pulumi.String("acc-test1"),
			Description:       pulumi.String("acc-test1"),
			Period:            pulumi.Int(7),
			ProjectName:       pulumi.String("default"),
			SslEnabled:        pulumi.Bool(true),
			SslMaxConnections: pulumi.Int(5),
		})
		if err != nil {
			return err
		}
		fooSslVpnServer, err := vpn.NewSslVpnServer(ctx, "fooSslVpnServer", &vpn.SslVpnServerArgs{
			VpnGatewayId: fooGateway.ID(),
			LocalSubnets: pulumi.StringArray{
				fooSubnet.CidrBlock,
			},
			ClientIpPool:     pulumi.String("172.16.2.0/24"),
			SslVpnServerName: pulumi.String("acc-test-ssl"),
			Description:      pulumi.String("acc-test"),
			Protocol:         pulumi.String("UDP"),
			Cipher:           pulumi.String("AES-128-CBC"),
			Auth:             pulumi.String("SHA1"),
			Compress:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_ = vpn.SslVpnServersOutput(ctx, vpn.SslVpnServersOutputArgs{
			Ids: pulumi.StringArray{
				fooSslVpnServer.ID(),
			},
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() => 
{
    var fooZones = Volcengine.Ecs.Zones.Invoke();
    var fooVpc = new Volcengine.Vpc.Vpc("fooVpc", new()
    {
        VpcName = "acc-test-vpc",
        CidrBlock = "172.16.0.0/16",
    });
    var fooSubnet = new Volcengine.Vpc.Subnet("fooSubnet", new()
    {
        SubnetName = "acc-test-subnet",
        CidrBlock = "172.16.0.0/24",
        ZoneId = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Id),
        VpcId = fooVpc.Id,
    });
    var fooGateway = new Volcengine.Vpn.Gateway("fooGateway", new()
    {
        VpcId = fooVpc.Id,
        SubnetId = fooSubnet.Id,
        Bandwidth = 5,
        VpnGatewayName = "acc-test1",
        Description = "acc-test1",
        Period = 7,
        ProjectName = "default",
        SslEnabled = true,
        SslMaxConnections = 5,
    });
    var fooSslVpnServer = new Volcengine.Vpn.SslVpnServer("fooSslVpnServer", new()
    {
        VpnGatewayId = fooGateway.Id,
        LocalSubnets = new[]
        {
            fooSubnet.CidrBlock,
        },
        ClientIpPool = "172.16.2.0/24",
        SslVpnServerName = "acc-test-ssl",
        Description = "acc-test",
        Protocol = "UDP",
        Cipher = "AES-128-CBC",
        Auth = "SHA1",
        Compress = true,
    });
    var fooSslVpnServers = Volcengine.Vpn.SslVpnServers.Invoke(new()
    {
        Ids = new[]
        {
            fooSslVpnServer.Id,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.ZonesArgs;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.vpc.Subnet;
import com.pulumi.volcengine.vpc.SubnetArgs;
import com.pulumi.volcengine.vpn.Gateway;
import com.pulumi.volcengine.vpn.GatewayArgs;
import com.pulumi.volcengine.vpn.SslVpnServer;
import com.pulumi.volcengine.vpn.SslVpnServerArgs;
import com.pulumi.volcengine.vpn.VpnFunctions;
import com.pulumi.volcengine.vpn.inputs.SslVpnServersArgs;
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 fooZones = EcsFunctions.Zones();
        var fooVpc = new Vpc("fooVpc", VpcArgs.builder()        
            .vpcName("acc-test-vpc")
            .cidrBlock("172.16.0.0/16")
            .build());
        var fooSubnet = new Subnet("fooSubnet", SubnetArgs.builder()        
            .subnetName("acc-test-subnet")
            .cidrBlock("172.16.0.0/24")
            .zoneId(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].id()))
            .vpcId(fooVpc.id())
            .build());
        var fooGateway = new Gateway("fooGateway", GatewayArgs.builder()        
            .vpcId(fooVpc.id())
            .subnetId(fooSubnet.id())
            .bandwidth(5)
            .vpnGatewayName("acc-test1")
            .description("acc-test1")
            .period(7)
            .projectName("default")
            .sslEnabled(true)
            .sslMaxConnections(5)
            .build());
        var fooSslVpnServer = new SslVpnServer("fooSslVpnServer", SslVpnServerArgs.builder()        
            .vpnGatewayId(fooGateway.id())
            .localSubnets(fooSubnet.cidrBlock())
            .clientIpPool("172.16.2.0/24")
            .sslVpnServerName("acc-test-ssl")
            .description("acc-test")
            .protocol("UDP")
            .cipher("AES-128-CBC")
            .auth("SHA1")
            .compress(true)
            .build());
        final var fooSslVpnServers = VpnFunctions.SslVpnServers(SslVpnServersArgs.builder()
            .ids(fooSslVpnServer.id())
            .build());
    }
}
resources:
  fooVpc:
    type: volcengine:vpc:Vpc
    properties:
      vpcName: acc-test-vpc
      cidrBlock: 172.16.0.0/16
  fooSubnet:
    type: volcengine:vpc:Subnet
    properties:
      subnetName: acc-test-subnet
      cidrBlock: 172.16.0.0/24
      zoneId: ${fooZones.zones[0].id}
      vpcId: ${fooVpc.id}
  fooGateway:
    type: volcengine:vpn:Gateway
    properties:
      vpcId: ${fooVpc.id}
      subnetId: ${fooSubnet.id}
      bandwidth: 5
      vpnGatewayName: acc-test1
      description: acc-test1
      period: 7
      projectName: default
      sslEnabled: true
      sslMaxConnections: 5
  fooSslVpnServer:
    type: volcengine:vpn:SslVpnServer
    properties:
      vpnGatewayId: ${fooGateway.id}
      localSubnets:
        - ${fooSubnet.cidrBlock}
      clientIpPool: 172.16.2.0/24
      sslVpnServerName: acc-test-ssl
      description: acc-test
      protocol: UDP
      cipher: AES-128-CBC
      auth: SHA1
      compress: true
variables:
  fooZones:
    fn::invoke:
      Function: volcengine:ecs:Zones
      Arguments: {}
  fooSslVpnServers:
    fn::invoke:
      Function: volcengine:vpn:SslVpnServers
      Arguments:
        ids:
          - ${fooSslVpnServer.id}
Using SslVpnServers
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 sslVpnServers(args: SslVpnServersArgs, opts?: InvokeOptions): Promise<SslVpnServersResult>
function sslVpnServersOutput(args: SslVpnServersOutputArgs, opts?: InvokeOptions): Output<SslVpnServersResult>def ssl_vpn_servers(ids: Optional[Sequence[str]] = None,
                    output_file: Optional[str] = None,
                    ssl_vpn_server_name: Optional[str] = None,
                    vpn_gateway_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> SslVpnServersResult
def ssl_vpn_servers_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    ssl_vpn_server_name: Optional[pulumi.Input[str]] = None,
                    vpn_gateway_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[SslVpnServersResult]func SslVpnServers(ctx *Context, args *SslVpnServersArgs, opts ...InvokeOption) (*SslVpnServersResult, error)
func SslVpnServersOutput(ctx *Context, args *SslVpnServersOutputArgs, opts ...InvokeOption) SslVpnServersResultOutputpublic static class SslVpnServers 
{
    public static Task<SslVpnServersResult> InvokeAsync(SslVpnServersArgs args, InvokeOptions? opts = null)
    public static Output<SslVpnServersResult> Invoke(SslVpnServersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<SslVpnServersResult> sslVpnServers(SslVpnServersArgs args, InvokeOptions options)
public static Output<SslVpnServersResult> sslVpnServers(SslVpnServersArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:vpn:SslVpnServers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ids List<string>
- The ids list.
- OutputFile string
- File name where to save data source results.
- SslVpn stringServer Name 
- The name of the ssl vpn server.
- VpnGateway stringId 
- The id of the vpn gateway.
- Ids []string
- The ids list.
- OutputFile string
- File name where to save data source results.
- SslVpn stringServer Name 
- The name of the ssl vpn server.
- VpnGateway stringId 
- The id of the vpn gateway.
- ids List<String>
- The ids list.
- outputFile String
- File name where to save data source results.
- sslVpn StringServer Name 
- The name of the ssl vpn server.
- vpnGateway StringId 
- The id of the vpn gateway.
- ids string[]
- The ids list.
- outputFile string
- File name where to save data source results.
- sslVpn stringServer Name 
- The name of the ssl vpn server.
- vpnGateway stringId 
- The id of the vpn gateway.
- ids Sequence[str]
- The ids list.
- output_file str
- File name where to save data source results.
- ssl_vpn_ strserver_ name 
- The name of the ssl vpn server.
- vpn_gateway_ strid 
- The id of the vpn gateway.
- ids List<String>
- The ids list.
- outputFile String
- File name where to save data source results.
- sslVpn StringServer Name 
- The name of the ssl vpn server.
- vpnGateway StringId 
- The id of the vpn gateway.
SslVpnServers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- SslVpn List<SslServers Vpn Servers Ssl Vpn Server> 
- List of SSL VPN servers.
- TotalCount int
- The total count of SSL VPN server query.
- Ids List<string>
- OutputFile string
- SslVpn stringServer Name 
- The name of the SSL server.
- VpnGateway stringId 
- The vpn gateway id.
- Id string
- The provider-assigned unique ID for this managed resource.
- SslVpn []SslServers Vpn Servers Ssl Vpn Server 
- List of SSL VPN servers.
- TotalCount int
- The total count of SSL VPN server query.
- Ids []string
- OutputFile string
- SslVpn stringServer Name 
- The name of the SSL server.
- VpnGateway stringId 
- The vpn gateway id.
- id String
- The provider-assigned unique ID for this managed resource.
- sslVpn List<SslServers Vpn Servers Ssl Vpn Server> 
- List of SSL VPN servers.
- totalCount Integer
- The total count of SSL VPN server query.
- ids List<String>
- outputFile String
- sslVpn StringServer Name 
- The name of the SSL server.
- vpnGateway StringId 
- The vpn gateway id.
- id string
- The provider-assigned unique ID for this managed resource.
- sslVpn SslServers Vpn Servers Ssl Vpn Server[] 
- List of SSL VPN servers.
- totalCount number
- The total count of SSL VPN server query.
- ids string[]
- outputFile string
- sslVpn stringServer Name 
- The name of the SSL server.
- vpnGateway stringId 
- The vpn gateway id.
- id str
- The provider-assigned unique ID for this managed resource.
- ssl_vpn_ Sequence[Sslservers Vpn Servers Ssl Vpn Server] 
- List of SSL VPN servers.
- total_count int
- The total count of SSL VPN server query.
- ids Sequence[str]
- output_file str
- ssl_vpn_ strserver_ name 
- The name of the SSL server.
- vpn_gateway_ strid 
- The vpn gateway id.
- id String
- The provider-assigned unique ID for this managed resource.
- sslVpn List<Property Map>Servers 
- List of SSL VPN servers.
- totalCount Number
- The total count of SSL VPN server query.
- ids List<String>
- outputFile String
- sslVpn StringServer Name 
- The name of the SSL server.
- vpnGateway StringId 
- The vpn gateway id.
Supporting Types
SslVpnServersSslVpnServer     
- Auth string
- The authentication algorithm of the SSL server.
Values:
SHA1(default)MD5None(do not use encryption).
- Cipher string
- The encryption algorithm of the SSL server.
Values:
AES-128-CBC(default)AES-192-CBCAES-256-CBCNone(do not use encryption).
- ClientIp stringPool 
- SSL client network segment.
- Compress bool
- Whether to compress the transmitted data. The default value is false.
- CreationTime string
- The creation time.
- Description string
- The description of the ssl server.
- Id string
- The SSL VPN server id.
- LocalSubnets List<string>
- The local network segment of the SSL server. The local network segment is the address segment that the client accesses through the SSL VPN connection.
- Port int
- The port of the ssl server.
- ProjectName string
- The project name of the ssl server.
- Protocol string
- The protocol used by the SSL server. Valid values are TCP,UDP. Default Value:UDP.
- SslVpn stringServer Id 
- The id of the ssl vpn server.
- SslVpn stringServer Name 
- The name of the ssl vpn server.
- Status string
- The status of the ssl vpn server.
- UpdateTime string
- The update time.
- VpnGateway stringId 
- The id of the vpn gateway.
- Auth string
- The authentication algorithm of the SSL server.
Values:
SHA1(default)MD5None(do not use encryption).
- Cipher string
- The encryption algorithm of the SSL server.
Values:
AES-128-CBC(default)AES-192-CBCAES-256-CBCNone(do not use encryption).
- ClientIp stringPool 
- SSL client network segment.
- Compress bool
- Whether to compress the transmitted data. The default value is false.
- CreationTime string
- The creation time.
- Description string
- The description of the ssl server.
- Id string
- The SSL VPN server id.
- LocalSubnets []string
- The local network segment of the SSL server. The local network segment is the address segment that the client accesses through the SSL VPN connection.
- Port int
- The port of the ssl server.
- ProjectName string
- The project name of the ssl server.
- Protocol string
- The protocol used by the SSL server. Valid values are TCP,UDP. Default Value:UDP.
- SslVpn stringServer Id 
- The id of the ssl vpn server.
- SslVpn stringServer Name 
- The name of the ssl vpn server.
- Status string
- The status of the ssl vpn server.
- UpdateTime string
- The update time.
- VpnGateway stringId 
- The id of the vpn gateway.
- auth String
- The authentication algorithm of the SSL server.
Values:
SHA1(default)MD5None(do not use encryption).
- cipher String
- The encryption algorithm of the SSL server.
Values:
AES-128-CBC(default)AES-192-CBCAES-256-CBCNone(do not use encryption).
- clientIp StringPool 
- SSL client network segment.
- compress Boolean
- Whether to compress the transmitted data. The default value is false.
- creationTime String
- The creation time.
- description String
- The description of the ssl server.
- id String
- The SSL VPN server id.
- localSubnets List<String>
- The local network segment of the SSL server. The local network segment is the address segment that the client accesses through the SSL VPN connection.
- port Integer
- The port of the ssl server.
- projectName String
- The project name of the ssl server.
- protocol String
- The protocol used by the SSL server. Valid values are TCP,UDP. Default Value:UDP.
- sslVpn StringServer Id 
- The id of the ssl vpn server.
- sslVpn StringServer Name 
- The name of the ssl vpn server.
- status String
- The status of the ssl vpn server.
- updateTime String
- The update time.
- vpnGateway StringId 
- The id of the vpn gateway.
- auth string
- The authentication algorithm of the SSL server.
Values:
SHA1(default)MD5None(do not use encryption).
- cipher string
- The encryption algorithm of the SSL server.
Values:
AES-128-CBC(default)AES-192-CBCAES-256-CBCNone(do not use encryption).
- clientIp stringPool 
- SSL client network segment.
- compress boolean
- Whether to compress the transmitted data. The default value is false.
- creationTime string
- The creation time.
- description string
- The description of the ssl server.
- id string
- The SSL VPN server id.
- localSubnets string[]
- The local network segment of the SSL server. The local network segment is the address segment that the client accesses through the SSL VPN connection.
- port number
- The port of the ssl server.
- projectName string
- The project name of the ssl server.
- protocol string
- The protocol used by the SSL server. Valid values are TCP,UDP. Default Value:UDP.
- sslVpn stringServer Id 
- The id of the ssl vpn server.
- sslVpn stringServer Name 
- The name of the ssl vpn server.
- status string
- The status of the ssl vpn server.
- updateTime string
- The update time.
- vpnGateway stringId 
- The id of the vpn gateway.
- auth str
- The authentication algorithm of the SSL server.
Values:
SHA1(default)MD5None(do not use encryption).
- cipher str
- The encryption algorithm of the SSL server.
Values:
AES-128-CBC(default)AES-192-CBCAES-256-CBCNone(do not use encryption).
- client_ip_ strpool 
- SSL client network segment.
- compress bool
- Whether to compress the transmitted data. The default value is false.
- creation_time str
- The creation time.
- description str
- The description of the ssl server.
- id str
- The SSL VPN server id.
- local_subnets Sequence[str]
- The local network segment of the SSL server. The local network segment is the address segment that the client accesses through the SSL VPN connection.
- port int
- The port of the ssl server.
- project_name str
- The project name of the ssl server.
- protocol str
- The protocol used by the SSL server. Valid values are TCP,UDP. Default Value:UDP.
- ssl_vpn_ strserver_ id 
- The id of the ssl vpn server.
- ssl_vpn_ strserver_ name 
- The name of the ssl vpn server.
- status str
- The status of the ssl vpn server.
- update_time str
- The update time.
- vpn_gateway_ strid 
- The id of the vpn gateway.
- auth String
- The authentication algorithm of the SSL server.
Values:
SHA1(default)MD5None(do not use encryption).
- cipher String
- The encryption algorithm of the SSL server.
Values:
AES-128-CBC(default)AES-192-CBCAES-256-CBCNone(do not use encryption).
- clientIp StringPool 
- SSL client network segment.
- compress Boolean
- Whether to compress the transmitted data. The default value is false.
- creationTime String
- The creation time.
- description String
- The description of the ssl server.
- id String
- The SSL VPN server id.
- localSubnets List<String>
- The local network segment of the SSL server. The local network segment is the address segment that the client accesses through the SSL VPN connection.
- port Number
- The port of the ssl server.
- projectName String
- The project name of the ssl server.
- protocol String
- The protocol used by the SSL server. Valid values are TCP,UDP. Default Value:UDP.
- sslVpn StringServer Id 
- The id of the ssl vpn server.
- sslVpn StringServer Name 
- The name of the ssl vpn server.
- status String
- The status of the ssl vpn server.
- updateTime String
- The update time.
- vpnGateway StringId 
- The id of the vpn gateway.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the volcengineTerraform Provider.