1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VpnSslServer
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.VpnSslServer

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provide a resource to create a VPN SSL Server.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.VpnSslServer("example", {
        compress: true,
        encryptAlgorithm: "AES-128-CBC",
        integrityAlgorithm: "MD5",
        localAddresses: ["10.0.0.0/17"],
        remoteAddress: "11.0.0.0/16",
        sslVpnPort: 1194,
        sslVpnProtocol: "UDP",
        sslVpnServerName: "helloworld",
        vpnGatewayId: "vpngw-335lwf7d",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.VpnSslServer("example",
        compress=True,
        encrypt_algorithm="AES-128-CBC",
        integrity_algorithm="MD5",
        local_addresses=["10.0.0.0/17"],
        remote_address="11.0.0.0/16",
        ssl_vpn_port=1194,
        ssl_vpn_protocol="UDP",
        ssl_vpn_server_name="helloworld",
        vpn_gateway_id="vpngw-335lwf7d")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewVpnSslServer(ctx, "example", &tencentcloud.VpnSslServerArgs{
    			Compress:           pulumi.Bool(true),
    			EncryptAlgorithm:   pulumi.String("AES-128-CBC"),
    			IntegrityAlgorithm: pulumi.String("MD5"),
    			LocalAddresses: pulumi.StringArray{
    				pulumi.String("10.0.0.0/17"),
    			},
    			RemoteAddress:    pulumi.String("11.0.0.0/16"),
    			SslVpnPort:       pulumi.Float64(1194),
    			SslVpnProtocol:   pulumi.String("UDP"),
    			SslVpnServerName: pulumi.String("helloworld"),
    			VpnGatewayId:     pulumi.String("vpngw-335lwf7d"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.VpnSslServer("example", new()
        {
            Compress = true,
            EncryptAlgorithm = "AES-128-CBC",
            IntegrityAlgorithm = "MD5",
            LocalAddresses = new[]
            {
                "10.0.0.0/17",
            },
            RemoteAddress = "11.0.0.0/16",
            SslVpnPort = 1194,
            SslVpnProtocol = "UDP",
            SslVpnServerName = "helloworld",
            VpnGatewayId = "vpngw-335lwf7d",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.VpnSslServer;
    import com.pulumi.tencentcloud.VpnSslServerArgs;
    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) {
            var example = new VpnSslServer("example", VpnSslServerArgs.builder()
                .compress(true)
                .encryptAlgorithm("AES-128-CBC")
                .integrityAlgorithm("MD5")
                .localAddresses("10.0.0.0/17")
                .remoteAddress("11.0.0.0/16")
                .sslVpnPort(1194)
                .sslVpnProtocol("UDP")
                .sslVpnServerName("helloworld")
                .vpnGatewayId("vpngw-335lwf7d")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:VpnSslServer
        properties:
          compress: true
          encryptAlgorithm: AES-128-CBC
          integrityAlgorithm: MD5
          localAddresses:
            - 10.0.0.0/17
          remoteAddress: 11.0.0.0/16
          sslVpnPort: 1194
          sslVpnProtocol: UDP
          sslVpnServerName: helloworld
          vpnGatewayId: vpngw-335lwf7d
    

    Create VpnSslServer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpnSslServer(name: string, args: VpnSslServerArgs, opts?: CustomResourceOptions);
    @overload
    def VpnSslServer(resource_name: str,
                     args: VpnSslServerArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpnSslServer(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     local_addresses: Optional[Sequence[str]] = None,
                     remote_address: Optional[str] = None,
                     ssl_vpn_server_name: Optional[str] = None,
                     vpn_gateway_id: Optional[str] = None,
                     compress: Optional[bool] = None,
                     encrypt_algorithm: Optional[str] = None,
                     integrity_algorithm: Optional[str] = None,
                     ssl_vpn_port: Optional[float] = None,
                     ssl_vpn_protocol: Optional[str] = None,
                     vpn_ssl_server_id: Optional[str] = None)
    func NewVpnSslServer(ctx *Context, name string, args VpnSslServerArgs, opts ...ResourceOption) (*VpnSslServer, error)
    public VpnSslServer(string name, VpnSslServerArgs args, CustomResourceOptions? opts = null)
    public VpnSslServer(String name, VpnSslServerArgs args)
    public VpnSslServer(String name, VpnSslServerArgs args, CustomResourceOptions options)
    
    type: tencentcloud:VpnSslServer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VpnSslServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VpnSslServerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VpnSslServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnSslServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnSslServerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    VpnSslServer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VpnSslServer resource accepts the following input properties:

    LocalAddresses List<string>
    List of local CIDR.
    RemoteAddress string
    Remote CIDR for client.
    SslVpnServerName string
    The name of ssl vpn server to be created.
    VpnGatewayId string
    VPN gateway ID.
    Compress bool
    Need compressed. Currently is not supports compress. Default value: False.
    EncryptAlgorithm string
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    IntegrityAlgorithm string
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    SslVpnPort double
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    SslVpnProtocol string
    The protocol of ssl vpn. Default value: UDP.
    VpnSslServerId string
    ID of the resource.
    LocalAddresses []string
    List of local CIDR.
    RemoteAddress string
    Remote CIDR for client.
    SslVpnServerName string
    The name of ssl vpn server to be created.
    VpnGatewayId string
    VPN gateway ID.
    Compress bool
    Need compressed. Currently is not supports compress. Default value: False.
    EncryptAlgorithm string
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    IntegrityAlgorithm string
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    SslVpnPort float64
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    SslVpnProtocol string
    The protocol of ssl vpn. Default value: UDP.
    VpnSslServerId string
    ID of the resource.
    localAddresses List<String>
    List of local CIDR.
    remoteAddress String
    Remote CIDR for client.
    sslVpnServerName String
    The name of ssl vpn server to be created.
    vpnGatewayId String
    VPN gateway ID.
    compress Boolean
    Need compressed. Currently is not supports compress. Default value: False.
    encryptAlgorithm String
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrityAlgorithm String
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    sslVpnPort Double
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    sslVpnProtocol String
    The protocol of ssl vpn. Default value: UDP.
    vpnSslServerId String
    ID of the resource.
    localAddresses string[]
    List of local CIDR.
    remoteAddress string
    Remote CIDR for client.
    sslVpnServerName string
    The name of ssl vpn server to be created.
    vpnGatewayId string
    VPN gateway ID.
    compress boolean
    Need compressed. Currently is not supports compress. Default value: False.
    encryptAlgorithm string
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrityAlgorithm string
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    sslVpnPort number
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    sslVpnProtocol string
    The protocol of ssl vpn. Default value: UDP.
    vpnSslServerId string
    ID of the resource.
    local_addresses Sequence[str]
    List of local CIDR.
    remote_address str
    Remote CIDR for client.
    ssl_vpn_server_name str
    The name of ssl vpn server to be created.
    vpn_gateway_id str
    VPN gateway ID.
    compress bool
    Need compressed. Currently is not supports compress. Default value: False.
    encrypt_algorithm str
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrity_algorithm str
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    ssl_vpn_port float
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    ssl_vpn_protocol str
    The protocol of ssl vpn. Default value: UDP.
    vpn_ssl_server_id str
    ID of the resource.
    localAddresses List<String>
    List of local CIDR.
    remoteAddress String
    Remote CIDR for client.
    sslVpnServerName String
    The name of ssl vpn server to be created.
    vpnGatewayId String
    VPN gateway ID.
    compress Boolean
    Need compressed. Currently is not supports compress. Default value: False.
    encryptAlgorithm String
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrityAlgorithm String
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    sslVpnPort Number
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    sslVpnProtocol String
    The protocol of ssl vpn. Default value: UDP.
    vpnSslServerId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VpnSslServer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VpnSslServer Resource

    Get an existing VpnSslServer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VpnSslServerState, opts?: CustomResourceOptions): VpnSslServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compress: Optional[bool] = None,
            encrypt_algorithm: Optional[str] = None,
            integrity_algorithm: Optional[str] = None,
            local_addresses: Optional[Sequence[str]] = None,
            remote_address: Optional[str] = None,
            ssl_vpn_port: Optional[float] = None,
            ssl_vpn_protocol: Optional[str] = None,
            ssl_vpn_server_name: Optional[str] = None,
            vpn_gateway_id: Optional[str] = None,
            vpn_ssl_server_id: Optional[str] = None) -> VpnSslServer
    func GetVpnSslServer(ctx *Context, name string, id IDInput, state *VpnSslServerState, opts ...ResourceOption) (*VpnSslServer, error)
    public static VpnSslServer Get(string name, Input<string> id, VpnSslServerState? state, CustomResourceOptions? opts = null)
    public static VpnSslServer get(String name, Output<String> id, VpnSslServerState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:VpnSslServer    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Compress bool
    Need compressed. Currently is not supports compress. Default value: False.
    EncryptAlgorithm string
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    IntegrityAlgorithm string
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    LocalAddresses List<string>
    List of local CIDR.
    RemoteAddress string
    Remote CIDR for client.
    SslVpnPort double
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    SslVpnProtocol string
    The protocol of ssl vpn. Default value: UDP.
    SslVpnServerName string
    The name of ssl vpn server to be created.
    VpnGatewayId string
    VPN gateway ID.
    VpnSslServerId string
    ID of the resource.
    Compress bool
    Need compressed. Currently is not supports compress. Default value: False.
    EncryptAlgorithm string
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    IntegrityAlgorithm string
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    LocalAddresses []string
    List of local CIDR.
    RemoteAddress string
    Remote CIDR for client.
    SslVpnPort float64
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    SslVpnProtocol string
    The protocol of ssl vpn. Default value: UDP.
    SslVpnServerName string
    The name of ssl vpn server to be created.
    VpnGatewayId string
    VPN gateway ID.
    VpnSslServerId string
    ID of the resource.
    compress Boolean
    Need compressed. Currently is not supports compress. Default value: False.
    encryptAlgorithm String
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrityAlgorithm String
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    localAddresses List<String>
    List of local CIDR.
    remoteAddress String
    Remote CIDR for client.
    sslVpnPort Double
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    sslVpnProtocol String
    The protocol of ssl vpn. Default value: UDP.
    sslVpnServerName String
    The name of ssl vpn server to be created.
    vpnGatewayId String
    VPN gateway ID.
    vpnSslServerId String
    ID of the resource.
    compress boolean
    Need compressed. Currently is not supports compress. Default value: False.
    encryptAlgorithm string
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrityAlgorithm string
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    localAddresses string[]
    List of local CIDR.
    remoteAddress string
    Remote CIDR for client.
    sslVpnPort number
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    sslVpnProtocol string
    The protocol of ssl vpn. Default value: UDP.
    sslVpnServerName string
    The name of ssl vpn server to be created.
    vpnGatewayId string
    VPN gateway ID.
    vpnSslServerId string
    ID of the resource.
    compress bool
    Need compressed. Currently is not supports compress. Default value: False.
    encrypt_algorithm str
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrity_algorithm str
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    local_addresses Sequence[str]
    List of local CIDR.
    remote_address str
    Remote CIDR for client.
    ssl_vpn_port float
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    ssl_vpn_protocol str
    The protocol of ssl vpn. Default value: UDP.
    ssl_vpn_server_name str
    The name of ssl vpn server to be created.
    vpn_gateway_id str
    VPN gateway ID.
    vpn_ssl_server_id str
    ID of the resource.
    compress Boolean
    Need compressed. Currently is not supports compress. Default value: False.
    encryptAlgorithm String
    The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
    integrityAlgorithm String
    The integrity algorithm. Valid values: SHA1. Default value: SHA1.
    localAddresses List<String>
    List of local CIDR.
    remoteAddress String
    Remote CIDR for client.
    sslVpnPort Number
    The port of ssl vpn. Currently only supports UDP. Default value: 1194.
    sslVpnProtocol String
    The protocol of ssl vpn. Default value: UDP.
    sslVpnServerName String
    The name of ssl vpn server to be created.
    vpnGatewayId String
    VPN gateway ID.
    vpnSslServerId String
    ID of the resource.

    Import

    VPN SSL Server can be imported, e.g.

    $ pulumi import tencentcloud:index/vpnSslServer:VpnSslServer example vpns-cik6bjct
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack