tencentcloud.VpnSslServer
Explore with Pulumi AI
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:
- Local
Addresses List<string> - List of local CIDR.
- Remote
Address string - Remote CIDR for client.
- Ssl
Vpn stringServer Name - The name of ssl vpn server to be created.
- Vpn
Gateway stringId - VPN gateway ID.
- Compress bool
- Need compressed. Currently is not supports compress. Default value: False.
- Encrypt
Algorithm string - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- Integrity
Algorithm string - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- Ssl
Vpn doublePort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- Ssl
Vpn stringProtocol - The protocol of ssl vpn. Default value: UDP.
- Vpn
Ssl stringServer Id - ID of the resource.
- Local
Addresses []string - List of local CIDR.
- Remote
Address string - Remote CIDR for client.
- Ssl
Vpn stringServer Name - The name of ssl vpn server to be created.
- Vpn
Gateway stringId - VPN gateway ID.
- Compress bool
- Need compressed. Currently is not supports compress. Default value: False.
- Encrypt
Algorithm string - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- Integrity
Algorithm string - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- Ssl
Vpn float64Port - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- Ssl
Vpn stringProtocol - The protocol of ssl vpn. Default value: UDP.
- Vpn
Ssl stringServer Id - ID of the resource.
- local
Addresses List<String> - List of local CIDR.
- remote
Address String - Remote CIDR for client.
- ssl
Vpn StringServer Name - The name of ssl vpn server to be created.
- vpn
Gateway StringId - VPN gateway ID.
- compress Boolean
- Need compressed. Currently is not supports compress. Default value: False.
- encrypt
Algorithm String - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- integrity
Algorithm String - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- ssl
Vpn DoublePort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl
Vpn StringProtocol - The protocol of ssl vpn. Default value: UDP.
- vpn
Ssl StringServer Id - ID of the resource.
- local
Addresses string[] - List of local CIDR.
- remote
Address string - Remote CIDR for client.
- ssl
Vpn stringServer Name - The name of ssl vpn server to be created.
- vpn
Gateway stringId - VPN gateway ID.
- compress boolean
- Need compressed. Currently is not supports compress. Default value: False.
- encrypt
Algorithm string - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- integrity
Algorithm string - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- ssl
Vpn numberPort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl
Vpn stringProtocol - The protocol of ssl vpn. Default value: UDP.
- vpn
Ssl stringServer Id - ID of the resource.
- local_
addresses Sequence[str] - List of local CIDR.
- remote_
address str - Remote CIDR for client.
- ssl_
vpn_ strserver_ name - The name of ssl vpn server to be created.
- vpn_
gateway_ strid - 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_ floatport - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl_
vpn_ strprotocol - The protocol of ssl vpn. Default value: UDP.
- vpn_
ssl_ strserver_ id - ID of the resource.
- local
Addresses List<String> - List of local CIDR.
- remote
Address String - Remote CIDR for client.
- ssl
Vpn StringServer Name - The name of ssl vpn server to be created.
- vpn
Gateway StringId - VPN gateway ID.
- compress Boolean
- Need compressed. Currently is not supports compress. Default value: False.
- encrypt
Algorithm String - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- integrity
Algorithm String - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- ssl
Vpn NumberPort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl
Vpn StringProtocol - The protocol of ssl vpn. Default value: UDP.
- vpn
Ssl StringServer Id - 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.
- Compress bool
- Need compressed. Currently is not supports compress. Default value: False.
- Encrypt
Algorithm string - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- Integrity
Algorithm string - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- Local
Addresses List<string> - List of local CIDR.
- Remote
Address string - Remote CIDR for client.
- Ssl
Vpn doublePort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- Ssl
Vpn stringProtocol - The protocol of ssl vpn. Default value: UDP.
- Ssl
Vpn stringServer Name - The name of ssl vpn server to be created.
- Vpn
Gateway stringId - VPN gateway ID.
- Vpn
Ssl stringServer Id - ID of the resource.
- Compress bool
- Need compressed. Currently is not supports compress. Default value: False.
- Encrypt
Algorithm string - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- Integrity
Algorithm string - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- Local
Addresses []string - List of local CIDR.
- Remote
Address string - Remote CIDR for client.
- Ssl
Vpn float64Port - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- Ssl
Vpn stringProtocol - The protocol of ssl vpn. Default value: UDP.
- Ssl
Vpn stringServer Name - The name of ssl vpn server to be created.
- Vpn
Gateway stringId - VPN gateway ID.
- Vpn
Ssl stringServer Id - ID of the resource.
- compress Boolean
- Need compressed. Currently is not supports compress. Default value: False.
- encrypt
Algorithm String - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- integrity
Algorithm String - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- local
Addresses List<String> - List of local CIDR.
- remote
Address String - Remote CIDR for client.
- ssl
Vpn DoublePort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl
Vpn StringProtocol - The protocol of ssl vpn. Default value: UDP.
- ssl
Vpn StringServer Name - The name of ssl vpn server to be created.
- vpn
Gateway StringId - VPN gateway ID.
- vpn
Ssl StringServer Id - ID of the resource.
- compress boolean
- Need compressed. Currently is not supports compress. Default value: False.
- encrypt
Algorithm string - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- integrity
Algorithm string - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- local
Addresses string[] - List of local CIDR.
- remote
Address string - Remote CIDR for client.
- ssl
Vpn numberPort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl
Vpn stringProtocol - The protocol of ssl vpn. Default value: UDP.
- ssl
Vpn stringServer Name - The name of ssl vpn server to be created.
- vpn
Gateway stringId - VPN gateway ID.
- vpn
Ssl stringServer Id - 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_ floatport - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl_
vpn_ strprotocol - The protocol of ssl vpn. Default value: UDP.
- ssl_
vpn_ strserver_ name - The name of ssl vpn server to be created.
- vpn_
gateway_ strid - VPN gateway ID.
- vpn_
ssl_ strserver_ id - ID of the resource.
- compress Boolean
- Need compressed. Currently is not supports compress. Default value: False.
- encrypt
Algorithm String - The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
- integrity
Algorithm String - The integrity algorithm. Valid values: SHA1. Default value: SHA1.
- local
Addresses List<String> - List of local CIDR.
- remote
Address String - Remote CIDR for client.
- ssl
Vpn NumberPort - The port of ssl vpn. Currently only supports UDP. Default value: 1194.
- ssl
Vpn StringProtocol - The protocol of ssl vpn. Default value: UDP.
- ssl
Vpn StringServer Name - The name of ssl vpn server to be created.
- vpn
Gateway StringId - VPN gateway ID.
- vpn
Ssl StringServer Id - 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.