Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
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.getZones({});
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.getSslVpnServersOutput({
ids: [fooSslVpnServer.id],
});
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.ecs.get_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.get_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.GetZones(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.GetSslVpnServersOutput(ctx, vpn.GetSslVpnServersOutputArgs{
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.GetZones.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(getZonesResult => getZonesResult.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.GetSslVpnServers.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.GetZonesArgs;
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.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 fooZones = EcsFunctions.getZones();
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(getZonesResult -> getZonesResult.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.getSslVpnServers(GetSslVpnServersArgs.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:getZones
Arguments: {}
fooSslVpnServers:
fn::invoke:
Function: volcengine:vpn:getSslVpnServers
Arguments:
ids:
- ${fooSslVpnServer.id}
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,
output_file: Optional[str] = None,
ssl_vpn_server_name: 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,
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[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)
public static Output<GetSslVpnServersResult> getSslVpnServers(GetSslVpnServersArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vpn/getSslVpnServers:getSslVpnServers
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- The ids list.
- Output
File string - File name where to save data source results.
- Ssl
Vpn stringServer Name - The name of the ssl vpn server.
- Vpn
Gateway stringId - The id of the vpn gateway.
- Ids []string
- The ids list.
- Output
File string - File name where to save data source results.
- Ssl
Vpn stringServer Name - The name of the ssl vpn server.
- Vpn
Gateway stringId - The id of the vpn gateway.
- ids List<String>
- The ids list.
- output
File String - File name where to save data source results.
- ssl
Vpn StringServer Name - The name of the ssl vpn server.
- vpn
Gateway StringId - The id of the vpn gateway.
- ids string[]
- The ids list.
- output
File string - File name where to save data source results.
- ssl
Vpn stringServer Name - The name of the ssl vpn server.
- vpn
Gateway 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.
- output
File String - File name where to save data source results.
- ssl
Vpn StringServer Name - The name of the ssl vpn server.
- vpn
Gateway StringId - The id of the vpn gateway.
getSslVpnServers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssl
Vpn List<GetServers Ssl Vpn Servers Ssl Vpn Server> - List of SSL VPN servers.
- Total
Count int - The total count of SSL VPN server query.
- Ids List<string>
- Output
File string - Ssl
Vpn stringServer Name - The name of the SSL server.
- Vpn
Gateway stringId - The vpn gateway id.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ssl
Vpn []GetServers Ssl Vpn Servers Ssl Vpn Server - List of SSL VPN servers.
- Total
Count int - The total count of SSL VPN server query.
- Ids []string
- Output
File string - Ssl
Vpn stringServer Name - The name of the SSL server.
- Vpn
Gateway stringId - The vpn gateway id.
- id String
- The provider-assigned unique ID for this managed resource.
- ssl
Vpn List<GetServers Ssl Vpn Servers Ssl Vpn Server> - List of SSL VPN servers.
- total
Count Integer - The total count of SSL VPN server query.
- ids List<String>
- output
File String - ssl
Vpn StringServer Name - The name of the SSL server.
- vpn
Gateway StringId - The vpn gateway id.
- id string
- The provider-assigned unique ID for this managed resource.
- ssl
Vpn GetServers Ssl Vpn Servers Ssl Vpn Server[] - List of SSL VPN servers.
- total
Count number - The total count of SSL VPN server query.
- ids string[]
- output
File string - ssl
Vpn stringServer Name - The name of the SSL server.
- vpn
Gateway stringId - The vpn gateway id.
- id str
- The provider-assigned unique ID for this managed resource.
- ssl_
vpn_ Sequence[Getservers Ssl 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.
- ssl
Vpn List<Property Map>Servers - List of SSL VPN servers.
- total
Count Number - The total count of SSL VPN server query.
- ids List<String>
- output
File String - ssl
Vpn StringServer Name - The name of the SSL server.
- vpn
Gateway StringId - The vpn gateway id.
Supporting Types
GetSslVpnServersSslVpnServer
- 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). - Client
Ip stringPool - SSL client network segment.
- Compress bool
- Whether to compress the transmitted data. The default value is false.
- Creation
Time string - The creation time.
- Description string
- The description of the ssl server.
- Id string
- The SSL VPN server id.
- Local
Subnets 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.
- Project
Name 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. - Ssl
Vpn stringServer Id - The id of the ssl vpn server.
- Ssl
Vpn stringServer Name - The name of the ssl vpn server.
- Status string
- The status of the ssl vpn server.
- Update
Time string - The update time.
- Vpn
Gateway 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). - Client
Ip stringPool - SSL client network segment.
- Compress bool
- Whether to compress the transmitted data. The default value is false.
- Creation
Time string - The creation time.
- Description string
- The description of the ssl server.
- Id string
- The SSL VPN server id.
- Local
Subnets []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.
- Project
Name 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. - Ssl
Vpn stringServer Id - The id of the ssl vpn server.
- Ssl
Vpn stringServer Name - The name of the ssl vpn server.
- Status string
- The status of the ssl vpn server.
- Update
Time string - The update time.
- Vpn
Gateway 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). - client
Ip StringPool - SSL client network segment.
- compress Boolean
- Whether to compress the transmitted data. The default value is false.
- creation
Time String - The creation time.
- description String
- The description of the ssl server.
- id String
- The SSL VPN server id.
- local
Subnets 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.
- project
Name 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. - ssl
Vpn StringServer Id - The id of the ssl vpn server.
- ssl
Vpn StringServer Name - The name of the ssl vpn server.
- status String
- The status of the ssl vpn server.
- update
Time String - The update time.
- vpn
Gateway 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). - client
Ip stringPool - SSL client network segment.
- compress boolean
- Whether to compress the transmitted data. The default value is false.
- creation
Time string - The creation time.
- description string
- The description of the ssl server.
- id string
- The SSL VPN server id.
- local
Subnets 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.
- project
Name 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. - ssl
Vpn stringServer Id - The id of the ssl vpn server.
- ssl
Vpn stringServer Name - The name of the ssl vpn server.
- status string
- The status of the ssl vpn server.
- update
Time string - The update time.
- vpn
Gateway 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). - client
Ip StringPool - SSL client network segment.
- compress Boolean
- Whether to compress the transmitted data. The default value is false.
- creation
Time String - The creation time.
- description String
- The description of the ssl server.
- id String
- The SSL VPN server id.
- local
Subnets 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.
- project
Name 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. - ssl
Vpn StringServer Id - The id of the ssl vpn server.
- ssl
Vpn StringServer Name - The name of the ssl vpn server.
- status String
- The status of the ssl vpn server.
- update
Time String - The update time.
- vpn
Gateway 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.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
