1. Packages
  2. Volcengine
  3. API Docs
  4. vpn
  5. SslVpnServers
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.vpn.SslVpnServers

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of ssl vpn servers

    Example Usage

    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 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
    	})
    }
    
    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());
    
        }
    }
    
    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])
    
    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],
    });
    
    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) SslVpnServersResultOutput
    public 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:vpn:SslVpnServers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    The ids list.
    OutputFile string
    File name where to save data source results.
    SslVpnServerName string
    The name of the ssl vpn server.
    VpnGatewayId string
    The id of the vpn gateway.
    Ids []string
    The ids list.
    OutputFile string
    File name where to save data source results.
    SslVpnServerName string
    The name of the ssl vpn server.
    VpnGatewayId string
    The id of the vpn gateway.
    ids List<String>
    The ids list.
    outputFile String
    File name where to save data source results.
    sslVpnServerName String
    The name of the ssl vpn server.
    vpnGatewayId String
    The id of the vpn gateway.
    ids string[]
    The ids list.
    outputFile string
    File name where to save data source results.
    sslVpnServerName string
    The name of the ssl vpn server.
    vpnGatewayId string
    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_server_name str
    The name of the ssl vpn server.
    vpn_gateway_id str
    The id of the vpn gateway.
    ids List<String>
    The ids list.
    outputFile String
    File name where to save data source results.
    sslVpnServerName String
    The name of the ssl vpn server.
    vpnGatewayId String
    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.
    SslVpnServers List<SslVpnServersSslVpnServer>
    List of SSL VPN servers.
    TotalCount int
    The total count of SSL VPN server query.
    Ids List<string>
    OutputFile string
    SslVpnServerName string
    The name of the SSL server.
    VpnGatewayId string
    The vpn gateway id.
    Id string
    The provider-assigned unique ID for this managed resource.
    SslVpnServers []SslVpnServersSslVpnServer
    List of SSL VPN servers.
    TotalCount int
    The total count of SSL VPN server query.
    Ids []string
    OutputFile string
    SslVpnServerName string
    The name of the SSL server.
    VpnGatewayId string
    The vpn gateway id.
    id String
    The provider-assigned unique ID for this managed resource.
    sslVpnServers List<SslVpnServersSslVpnServer>
    List of SSL VPN servers.
    totalCount Integer
    The total count of SSL VPN server query.
    ids List<String>
    outputFile String
    sslVpnServerName String
    The name of the SSL server.
    vpnGatewayId String
    The vpn gateway id.
    id string
    The provider-assigned unique ID for this managed resource.
    sslVpnServers SslVpnServersSslVpnServer[]
    List of SSL VPN servers.
    totalCount number
    The total count of SSL VPN server query.
    ids string[]
    outputFile string
    sslVpnServerName string
    The name of the SSL server.
    vpnGatewayId string
    The vpn gateway id.
    id str
    The provider-assigned unique ID for this managed resource.
    ssl_vpn_servers Sequence[SslVpnServersSslVpnServer]
    List of SSL VPN servers.
    total_count int
    The total count of SSL VPN server query.
    ids Sequence[str]
    output_file str
    ssl_vpn_server_name str
    The name of the SSL server.
    vpn_gateway_id str
    The vpn gateway id.
    id String
    The provider-assigned unique ID for this managed resource.
    sslVpnServers List<Property Map>
    List of SSL VPN servers.
    totalCount Number
    The total count of SSL VPN server query.
    ids List<String>
    outputFile String
    sslVpnServerName String
    The name of the SSL server.
    vpnGatewayId String
    The vpn gateway id.

    Supporting Types

    SslVpnServersSslVpnServer

    Auth string
    The authentication algorithm of the SSL server. Values: SHA1 (default) MD5 None (do not use encryption).
    Cipher string
    The encryption algorithm of the SSL server. Values: AES-128-CBC (default) AES-192-CBC AES-256-CBC None (do not use encryption).
    ClientIpPool string
    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.
    Protocol string
    The protocol used by the SSL server. Valid values are TCP, UDP. Default Value: UDP.
    SslVpnServerId string
    The id of the ssl vpn server.
    SslVpnServerName string
    The name of the ssl vpn server.
    Status string
    The status of the ssl vpn server.
    UpdateTime string
    The update time.
    VpnGatewayId string
    The id of the vpn gateway.
    Auth string
    The authentication algorithm of the SSL server. Values: SHA1 (default) MD5 None (do not use encryption).
    Cipher string
    The encryption algorithm of the SSL server. Values: AES-128-CBC (default) AES-192-CBC AES-256-CBC None (do not use encryption).
    ClientIpPool string
    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.
    Protocol string
    The protocol used by the SSL server. Valid values are TCP, UDP. Default Value: UDP.
    SslVpnServerId string
    The id of the ssl vpn server.
    SslVpnServerName string
    The name of the ssl vpn server.
    Status string
    The status of the ssl vpn server.
    UpdateTime string
    The update time.
    VpnGatewayId string
    The id of the vpn gateway.
    auth String
    The authentication algorithm of the SSL server. Values: SHA1 (default) MD5 None (do not use encryption).
    cipher String
    The encryption algorithm of the SSL server. Values: AES-128-CBC (default) AES-192-CBC AES-256-CBC None (do not use encryption).
    clientIpPool String
    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.
    protocol String
    The protocol used by the SSL server. Valid values are TCP, UDP. Default Value: UDP.
    sslVpnServerId String
    The id of the ssl vpn server.
    sslVpnServerName String
    The name of the ssl vpn server.
    status String
    The status of the ssl vpn server.
    updateTime String
    The update time.
    vpnGatewayId String
    The id of the vpn gateway.
    auth string
    The authentication algorithm of the SSL server. Values: SHA1 (default) MD5 None (do not use encryption).
    cipher string
    The encryption algorithm of the SSL server. Values: AES-128-CBC (default) AES-192-CBC AES-256-CBC None (do not use encryption).
    clientIpPool string
    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.
    protocol string
    The protocol used by the SSL server. Valid values are TCP, UDP. Default Value: UDP.
    sslVpnServerId string
    The id of the ssl vpn server.
    sslVpnServerName string
    The name of the ssl vpn server.
    status string
    The status of the ssl vpn server.
    updateTime string
    The update time.
    vpnGatewayId string
    The id of the vpn gateway.
    auth str
    The authentication algorithm of the SSL server. Values: SHA1 (default) MD5 None (do not use encryption).
    cipher str
    The encryption algorithm of the SSL server. Values: AES-128-CBC (default) AES-192-CBC AES-256-CBC None (do not use encryption).
    client_ip_pool str
    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.
    protocol str
    The protocol used by the SSL server. Valid values are TCP, UDP. Default Value: UDP.
    ssl_vpn_server_id str
    The id of the ssl vpn server.
    ssl_vpn_server_name str
    The name of the ssl vpn server.
    status str
    The status of the ssl vpn server.
    update_time str
    The update time.
    vpn_gateway_id str
    The id of the vpn gateway.
    auth String
    The authentication algorithm of the SSL server. Values: SHA1 (default) MD5 None (do not use encryption).
    cipher String
    The encryption algorithm of the SSL server. Values: AES-128-CBC (default) AES-192-CBC AES-256-CBC None (do not use encryption).
    clientIpPool String
    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.
    protocol String
    The protocol used by the SSL server. Valid values are TCP, UDP. Default Value: UDP.
    sslVpnServerId String
    The id of the ssl vpn server.
    sslVpnServerName String
    The name of the ssl vpn server.
    status String
    The status of the ssl vpn server.
    updateTime String
    The update time.
    vpnGatewayId String
    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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine