alicloud.vpn.SslVpnServer
Explore with Pulumi AI
Example Usage
Basic Usage
Create SslVpnServer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SslVpnServer(name: string, args: SslVpnServerArgs, opts?: CustomResourceOptions);
@overload
def SslVpnServer(resource_name: str,
args: SslVpnServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SslVpnServer(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_ip_pool: Optional[str] = None,
local_subnet: Optional[str] = None,
vpn_gateway_id: Optional[str] = None,
cipher: Optional[str] = None,
compress: Optional[bool] = None,
name: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None)
func NewSslVpnServer(ctx *Context, name string, args SslVpnServerArgs, opts ...ResourceOption) (*SslVpnServer, error)
public SslVpnServer(string name, SslVpnServerArgs args, CustomResourceOptions? opts = null)
public SslVpnServer(String name, SslVpnServerArgs args)
public SslVpnServer(String name, SslVpnServerArgs args, CustomResourceOptions options)
type: alicloud:vpn:SslVpnServer
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 SslVpnServerArgs
- 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 SslVpnServerArgs
- 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 SslVpnServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SslVpnServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SslVpnServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sslVpnServerResource = new AliCloud.Vpn.SslVpnServer("sslVpnServerResource", new()
{
ClientIpPool = "string",
LocalSubnet = "string",
VpnGatewayId = "string",
Cipher = "string",
Compress = false,
Name = "string",
Port = 0,
Protocol = "string",
});
example, err := vpn.NewSslVpnServer(ctx, "sslVpnServerResource", &vpn.SslVpnServerArgs{
ClientIpPool: pulumi.String("string"),
LocalSubnet: pulumi.String("string"),
VpnGatewayId: pulumi.String("string"),
Cipher: pulumi.String("string"),
Compress: pulumi.Bool(false),
Name: pulumi.String("string"),
Port: pulumi.Int(0),
Protocol: pulumi.String("string"),
})
var sslVpnServerResource = new SslVpnServer("sslVpnServerResource", SslVpnServerArgs.builder()
.clientIpPool("string")
.localSubnet("string")
.vpnGatewayId("string")
.cipher("string")
.compress(false)
.name("string")
.port(0)
.protocol("string")
.build());
ssl_vpn_server_resource = alicloud.vpn.SslVpnServer("sslVpnServerResource",
client_ip_pool="string",
local_subnet="string",
vpn_gateway_id="string",
cipher="string",
compress=False,
name="string",
port=0,
protocol="string")
const sslVpnServerResource = new alicloud.vpn.SslVpnServer("sslVpnServerResource", {
clientIpPool: "string",
localSubnet: "string",
vpnGatewayId: "string",
cipher: "string",
compress: false,
name: "string",
port: 0,
protocol: "string",
});
type: alicloud:vpn:SslVpnServer
properties:
cipher: string
clientIpPool: string
compress: false
localSubnet: string
name: string
port: 0
protocol: string
vpnGatewayId: string
SslVpnServer 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 SslVpnServer resource accepts the following input properties:
- Client
Ip stringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- Local
Subnet string - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - Vpn
Gateway stringId - The ID of the VPN gateway.
- Cipher string
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- Compress bool
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- Name string
- The name of the SSL-VPN server.
- Port int
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - Protocol string
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- Client
Ip stringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- Local
Subnet string - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - Vpn
Gateway stringId - The ID of the VPN gateway.
- Cipher string
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- Compress bool
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- Name string
- The name of the SSL-VPN server.
- Port int
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - Protocol string
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- client
Ip StringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- local
Subnet String - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - vpn
Gateway StringId - The ID of the VPN gateway.
- cipher String
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- compress Boolean
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- name String
- The name of the SSL-VPN server.
- port Integer
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol String
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- client
Ip stringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- local
Subnet string - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - vpn
Gateway stringId - The ID of the VPN gateway.
- cipher string
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- compress boolean
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- name string
- The name of the SSL-VPN server.
- port number
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol string
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- client_
ip_ strpool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- local_
subnet str - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - vpn_
gateway_ strid - The ID of the VPN gateway.
- cipher str
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- compress bool
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- name str
- The name of the SSL-VPN server.
- port int
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol str
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- client
Ip StringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- local
Subnet String - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - vpn
Gateway StringId - The ID of the VPN gateway.
- cipher String
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- compress Boolean
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- name String
- The name of the SSL-VPN server.
- port Number
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol String
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
Outputs
All input properties are implicitly available as output properties. Additionally, the SslVpnServer resource produces the following output properties:
- Connections int
- The number of current connections.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Ip string - The internet IP of the SSL-VPN server.
- Max
Connections int - The maximum number of connections.
- Connections int
- The number of current connections.
- Id string
- The provider-assigned unique ID for this managed resource.
- Internet
Ip string - The internet IP of the SSL-VPN server.
- Max
Connections int - The maximum number of connections.
- connections Integer
- The number of current connections.
- id String
- The provider-assigned unique ID for this managed resource.
- internet
Ip String - The internet IP of the SSL-VPN server.
- max
Connections Integer - The maximum number of connections.
- connections number
- The number of current connections.
- id string
- The provider-assigned unique ID for this managed resource.
- internet
Ip string - The internet IP of the SSL-VPN server.
- max
Connections number - The maximum number of connections.
- connections int
- The number of current connections.
- id str
- The provider-assigned unique ID for this managed resource.
- internet_
ip str - The internet IP of the SSL-VPN server.
- max_
connections int - The maximum number of connections.
- connections Number
- The number of current connections.
- id String
- The provider-assigned unique ID for this managed resource.
- internet
Ip String - The internet IP of the SSL-VPN server.
- max
Connections Number - The maximum number of connections.
Look up Existing SslVpnServer Resource
Get an existing SslVpnServer 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?: SslVpnServerState, opts?: CustomResourceOptions): SslVpnServer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cipher: Optional[str] = None,
client_ip_pool: Optional[str] = None,
compress: Optional[bool] = None,
connections: Optional[int] = None,
internet_ip: Optional[str] = None,
local_subnet: Optional[str] = None,
max_connections: Optional[int] = None,
name: Optional[str] = None,
port: Optional[int] = None,
protocol: Optional[str] = None,
vpn_gateway_id: Optional[str] = None) -> SslVpnServer
func GetSslVpnServer(ctx *Context, name string, id IDInput, state *SslVpnServerState, opts ...ResourceOption) (*SslVpnServer, error)
public static SslVpnServer Get(string name, Input<string> id, SslVpnServerState? state, CustomResourceOptions? opts = null)
public static SslVpnServer get(String name, Output<String> id, SslVpnServerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cipher string
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- Client
Ip stringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- Compress bool
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- Connections int
- The number of current connections.
- Internet
Ip string - The internet IP of the SSL-VPN server.
- Local
Subnet string - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - Max
Connections int - The maximum number of connections.
- Name string
- The name of the SSL-VPN server.
- Port int
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - Protocol string
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- Vpn
Gateway stringId - The ID of the VPN gateway.
- Cipher string
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- Client
Ip stringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- Compress bool
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- Connections int
- The number of current connections.
- Internet
Ip string - The internet IP of the SSL-VPN server.
- Local
Subnet string - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - Max
Connections int - The maximum number of connections.
- Name string
- The name of the SSL-VPN server.
- Port int
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - Protocol string
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- Vpn
Gateway stringId - The ID of the VPN gateway.
- cipher String
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- client
Ip StringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- compress Boolean
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- connections Integer
- The number of current connections.
- internet
Ip String - The internet IP of the SSL-VPN server.
- local
Subnet String - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - max
Connections Integer - The maximum number of connections.
- name String
- The name of the SSL-VPN server.
- port Integer
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol String
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- vpn
Gateway StringId - The ID of the VPN gateway.
- cipher string
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- client
Ip stringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- compress boolean
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- connections number
- The number of current connections.
- internet
Ip string - The internet IP of the SSL-VPN server.
- local
Subnet string - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - max
Connections number - The maximum number of connections.
- name string
- The name of the SSL-VPN server.
- port number
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol string
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- vpn
Gateway stringId - The ID of the VPN gateway.
- cipher str
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- client_
ip_ strpool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- compress bool
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- connections int
- The number of current connections.
- internet_
ip str - The internet IP of the SSL-VPN server.
- local_
subnet str - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - max_
connections int - The maximum number of connections.
- name str
- The name of the SSL-VPN server.
- port int
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol str
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- vpn_
gateway_ strid - The ID of the VPN gateway.
- cipher String
- The encryption algorithm that is used in the SSL-VPN connection. Valid values:
AES-128-CBC
,AES-192-CBC
,AES-256-CBC
,none
. Default value:AES-128-CBC
.AES-128-CBC
- the AES-128-CBC algorithm.AES-192-CBC
- the AES-192-CBC algorithm.AES-256-CBC
- the AES-256-CBC algorithm.
- client
Ip StringPool - The CIDR block from which access addresses are allocated to the virtual network interface card of the client.
- compress Boolean
- Specifies whether to enable data compression. Valid values:
true
,false
. Default value:false
- connections Number
- The number of current connections.
- internet
Ip String - The internet IP of the SSL-VPN server.
- local
Subnet String - The CIDR block to be accessed by the client through the SSL-VPN connection. It supports to set multi CIDRs by comma join ways, like
10.0.1.0/24,10.0.2.0/24,10.0.3.0/24
. - max
Connections Number - The maximum number of connections.
- name String
- The name of the SSL-VPN server.
- port Number
- The port used by the SSL-VPN server. The default value is
1194
.The following ports cannot be used: [22, 2222, 22222, 9000, 9001, 9002, 7505, 80, 443, 53, 68, 123, 4510, 4560, 500, 4500]. - protocol String
- The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP
- vpn
Gateway StringId - The ID of the VPN gateway.
Import
SSL-VPN server can be imported using the id, e.g.
$ pulumi import alicloud:vpn/sslVpnServer:SslVpnServer example vss-abc123456
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.