This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.

vpn

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-alicloud repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-alicloud repo.

class pulumi_alicloud.vpn.AwaitableGetConnectionsResult(connections=None, customer_gateway_id=None, id=None, ids=None, name_regex=None, names=None, output_file=None, vpn_gateway_id=None)
class pulumi_alicloud.vpn.AwaitableGetCustomerGatewaysResult(gateways=None, id=None, ids=None, name_regex=None, names=None, output_file=None)
class pulumi_alicloud.vpn.AwaitableGetGatewaysResult(business_status=None, gateways=None, id=None, ids=None, name_regex=None, names=None, output_file=None, status=None, vpc_id=None)
class pulumi_alicloud.vpn.Connection(resource_name, opts=None, customer_gateway_id=None, effect_immediately=None, ike_configs=None, ipsec_configs=None, local_subnets=None, name=None, remote_subnets=None, vpn_gateway_id=None, __props__=None, __name__=None, __opts__=None)

Create a Connection resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] customer_gateway_id: The ID of the customer gateway. :param pulumi.Input[bool] effect_immediately: Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false. :param pulumi.Input[list] ike_configs: The configurations of phase-one negotiation. :param pulumi.Input[list] ipsec_configs: The configurations of phase-two negotiation. :param pulumi.Input[list] local_subnets: The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation. :param pulumi.Input[str] name: The name of the IPsec connection. :param pulumi.Input[list] remote_subnets: The CIDR block of the local data center. This parameter is used for phase-two negotiation. :param pulumi.Input[str] vpn_gateway_id: The ID of the VPN gateway.

The ike_configs object supports the following:

  • ikeAuthAlg (pulumi.Input[str]) - The authentication algorithm of phase-one negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1

  • ikeEncAlg (pulumi.Input[str]) - The encryption algorithm of phase-one negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default Valid value: aes

  • ikeLifetime (pulumi.Input[float]) - The SA lifecycle as the result of phase-one negotiation. The valid value of n is [0, 86400], the unit is second and the default value is 86400.

  • ikeLocalId (pulumi.Input[str]) - The identification of the VPN gateway.

  • ikeMode (pulumi.Input[str]) - The negotiation mode of IKE V1. Valid value: main (main mode) | aggressive (aggressive mode). Default value: main

  • ikePfs (pulumi.Input[str]) - The Diffie-Hellman key exchange algorithm used by phase-one negotiation. Valid value: group1 | group2 | group5 | group14 | group24. Default value: group2

  • ikeRemoteId (pulumi.Input[str]) - The identification of the customer gateway.

  • ikeVersion (pulumi.Input[str]) - The version of the IKE protocol. Valid value: ikev1 | ikev2. Default value: ikev1

  • psk (pulumi.Input[str]) - Used for authentication between the IPsec VPN gateway and the customer gateway.

The ipsec_configs object supports the following:

  • ipsecAuthAlg (pulumi.Input[str]) - The authentication algorithm of phase-two negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1

  • ipsecEncAlg (pulumi.Input[str]) - The encryption algorithm of phase-two negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default value: aes

  • ipsecLifetime (pulumi.Input[float]) - The SA lifecycle as the result of phase-two negotiation. The valid value is [0, 86400], the unit is second and the default value is 86400.

  • ipsecPfs (pulumi.Input[str]) - The Diffie-Hellman key exchange algorithm used by phase-two negotiation. Valid value: group1 | group2 | group5 | group14 | group24| disabled. Default value: group2

customer_gateway_id: pulumi.Output[str] = None

The ID of the customer gateway.

effect_immediately: pulumi.Output[bool] = None

Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.

ike_configs: pulumi.Output[list] = None

The configurations of phase-one negotiation.

  • ikeAuthAlg (str) - The authentication algorithm of phase-one negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1

  • ikeEncAlg (str) - The encryption algorithm of phase-one negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default Valid value: aes

  • ikeLifetime (float) - The SA lifecycle as the result of phase-one negotiation. The valid value of n is [0, 86400], the unit is second and the default value is 86400.

  • ikeLocalId (str) - The identification of the VPN gateway.

  • ikeMode (str) - The negotiation mode of IKE V1. Valid value: main (main mode) | aggressive (aggressive mode). Default value: main

  • ikePfs (str) - The Diffie-Hellman key exchange algorithm used by phase-one negotiation. Valid value: group1 | group2 | group5 | group14 | group24. Default value: group2

  • ikeRemoteId (str) - The identification of the customer gateway.

  • ikeVersion (str) - The version of the IKE protocol. Valid value: ikev1 | ikev2. Default value: ikev1

  • psk (str) - Used for authentication between the IPsec VPN gateway and the customer gateway.

ipsec_configs: pulumi.Output[list] = None

The configurations of phase-two negotiation.

  • ipsecAuthAlg (str) - The authentication algorithm of phase-two negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1

  • ipsecEncAlg (str) - The encryption algorithm of phase-two negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default value: aes

  • ipsecLifetime (float) - The SA lifecycle as the result of phase-two negotiation. The valid value is [0, 86400], the unit is second and the default value is 86400.

  • ipsecPfs (str) - The Diffie-Hellman key exchange algorithm used by phase-two negotiation. Valid value: group1 | group2 | group5 | group14 | group24| disabled. Default value: group2

local_subnets: pulumi.Output[list] = None

The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.

name: pulumi.Output[str] = None

The name of the IPsec connection.

remote_subnets: pulumi.Output[list] = None

The CIDR block of the local data center. This parameter is used for phase-two negotiation.

status: pulumi.Output[str] = None

The status of VPN connection.

vpn_gateway_id: pulumi.Output[str] = None

The ID of the VPN gateway.

static get(resource_name, id, opts=None, customer_gateway_id=None, effect_immediately=None, ike_configs=None, ipsec_configs=None, local_subnets=None, name=None, remote_subnets=None, status=None, vpn_gateway_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • customer_gateway_id (pulumi.Input[str]) – The ID of the customer gateway.

  • effect_immediately (pulumi.Input[bool]) – Whether to delete a successfully negotiated IPsec tunnel and initiate a negotiation again. Valid value:true,false.

  • ike_configs (pulumi.Input[list]) – The configurations of phase-one negotiation.

  • ipsec_configs (pulumi.Input[list]) – The configurations of phase-two negotiation.

  • local_subnets (pulumi.Input[list]) – The CIDR block of the VPC to be connected with the local data center. This parameter is used for phase-two negotiation.

  • name (pulumi.Input[str]) – The name of the IPsec connection.

  • remote_subnets (pulumi.Input[list]) – The CIDR block of the local data center. This parameter is used for phase-two negotiation.

  • status (pulumi.Input[str]) – The status of VPN connection.

  • vpn_gateway_id (pulumi.Input[str]) – The ID of the VPN gateway.

The ike_configs object supports the following:

  • ikeAuthAlg (pulumi.Input[str]) - The authentication algorithm of phase-one negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1

  • ikeEncAlg (pulumi.Input[str]) - The encryption algorithm of phase-one negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default Valid value: aes

  • ikeLifetime (pulumi.Input[float]) - The SA lifecycle as the result of phase-one negotiation. The valid value of n is [0, 86400], the unit is second and the default value is 86400.

  • ikeLocalId (pulumi.Input[str]) - The identification of the VPN gateway.

  • ikeMode (pulumi.Input[str]) - The negotiation mode of IKE V1. Valid value: main (main mode) | aggressive (aggressive mode). Default value: main

  • ikePfs (pulumi.Input[str]) - The Diffie-Hellman key exchange algorithm used by phase-one negotiation. Valid value: group1 | group2 | group5 | group14 | group24. Default value: group2

  • ikeRemoteId (pulumi.Input[str]) - The identification of the customer gateway.

  • ikeVersion (pulumi.Input[str]) - The version of the IKE protocol. Valid value: ikev1 | ikev2. Default value: ikev1

  • psk (pulumi.Input[str]) - Used for authentication between the IPsec VPN gateway and the customer gateway.

The ipsec_configs object supports the following:

  • ipsecAuthAlg (pulumi.Input[str]) - The authentication algorithm of phase-two negotiation. Valid value: md5 | sha1 | sha256 | sha384 | sha512 |. Default value: sha1

  • ipsecEncAlg (pulumi.Input[str]) - The encryption algorithm of phase-two negotiation. Valid value: aes | aes192 | aes256 | des | 3des. Default value: aes

  • ipsecLifetime (pulumi.Input[float]) - The SA lifecycle as the result of phase-two negotiation. The valid value is [0, 86400], the unit is second and the default value is 86400.

  • ipsecPfs (pulumi.Input[str]) - The Diffie-Hellman key exchange algorithm used by phase-two negotiation. Valid value: group1 | group2 | group5 | group14 | group24| disabled. Default value: group2

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.vpn.CustomerGateway(resource_name, opts=None, description=None, ip_address=None, name=None, __props__=None, __name__=None, __opts__=None)

Create a CustomerGateway resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description of the VPN customer gateway instance. :param pulumi.Input[str] ip_address: The IP address of the customer gateway. :param pulumi.Input[str] name: The name of the VPN customer gateway. Defaults to null.

description: pulumi.Output[str] = None

The description of the VPN customer gateway instance.

ip_address: pulumi.Output[str] = None

The IP address of the customer gateway.

name: pulumi.Output[str] = None

The name of the VPN customer gateway. Defaults to null.

static get(resource_name, id, opts=None, description=None, ip_address=None, name=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • description (pulumi.Input[str]) – The description of the VPN customer gateway instance.

  • ip_address (pulumi.Input[str]) – The IP address of the customer gateway.

  • name (pulumi.Input[str]) – The name of the VPN customer gateway. Defaults to null.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.vpn.Gateway(resource_name, opts=None, bandwidth=None, description=None, enable_ipsec=None, enable_ssl=None, instance_charge_type=None, name=None, period=None, ssl_connections=None, vpc_id=None, vswitch_id=None, __props__=None, __name__=None, __opts__=None)

Create a Gateway resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] description: The description of the VPN instance. :param pulumi.Input[bool] enable_ipsec: Enable or Disable IPSec VPN. At least one type of VPN should be enabled. :param pulumi.Input[bool] enable_ssl: Enable or Disable SSL VPN. At least one type of VPN should be enabled. :param pulumi.Input[str] instance_charge_type: The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid.

Default to PostPaid.

Parameters
  • name (pulumi.Input[str]) – The name of the VPN. Defaults to null.

  • period (pulumi.Input[float]) – The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.

  • ssl_connections (pulumi.Input[float]) – The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.

  • vpc_id (pulumi.Input[str]) – The VPN belongs the vpc_id, the field can’t be changed.

  • vswitch_id (pulumi.Input[str]) – The VPN belongs the vswitch_id, the field can’t be changed.

business_status: pulumi.Output[str] = None

The business status of the VPN gateway.

description: pulumi.Output[str] = None

The description of the VPN instance.

enable_ipsec: pulumi.Output[bool] = None

Enable or Disable IPSec VPN. At least one type of VPN should be enabled.

enable_ssl: pulumi.Output[bool] = None

Enable or Disable SSL VPN. At least one type of VPN should be enabled.

instance_charge_type: pulumi.Output[str] = None

The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.

internet_ip: pulumi.Output[str] = None

The internet ip of the VPN.

name: pulumi.Output[str] = None

The name of the VPN. Defaults to null.

period: pulumi.Output[float] = None

The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.

ssl_connections: pulumi.Output[float] = None

The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.

status: pulumi.Output[str] = None

The status of the VPN gateway.

vpc_id: pulumi.Output[str] = None

The VPN belongs the vpc_id, the field can’t be changed.

vswitch_id: pulumi.Output[str] = None

The VPN belongs the vswitch_id, the field can’t be changed.

static get(resource_name, id, opts=None, bandwidth=None, business_status=None, description=None, enable_ipsec=None, enable_ssl=None, instance_charge_type=None, internet_ip=None, name=None, period=None, ssl_connections=None, status=None, vpc_id=None, vswitch_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • business_status (pulumi.Input[str]) – The business status of the VPN gateway.

  • description (pulumi.Input[str]) – The description of the VPN instance.

  • enable_ipsec (pulumi.Input[bool]) – Enable or Disable IPSec VPN. At least one type of VPN should be enabled.

  • enable_ssl (pulumi.Input[bool]) – Enable or Disable SSL VPN. At least one type of VPN should be enabled.

  • instance_charge_type (pulumi.Input[str]) – The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.

  • internet_ip (pulumi.Input[str]) – The internet ip of the VPN.

  • name (pulumi.Input[str]) – The name of the VPN. Defaults to null.

  • period (pulumi.Input[float]) – The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.

  • ssl_connections (pulumi.Input[float]) – The max connections of SSL VPN. Default to 5. The number of connections supported by each account is different. This field is ignored when enable_ssl is false.

  • status (pulumi.Input[str]) – The status of the VPN gateway.

  • vpc_id (pulumi.Input[str]) – The VPN belongs the vpc_id, the field can’t be changed.

  • vswitch_id (pulumi.Input[str]) – The VPN belongs the vswitch_id, the field can’t be changed.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.vpn.GetConnectionsResult(connections=None, customer_gateway_id=None, id=None, ids=None, name_regex=None, names=None, output_file=None, vpn_gateway_id=None)

A collection of values returned by getConnections.

connections = None

A list of VPN connections. Each element contains the following attributes:

customer_gateway_id = None

ID of the VPN customer gateway.

id = None

The provider-assigned unique ID for this managed resource.

ids = None

(Optional) IDs of the VPN connections.

names = None

(Optional) names of the VPN connections.

vpn_gateway_id = None

ID of the VPN gateway.

class pulumi_alicloud.vpn.GetCustomerGatewaysResult(gateways=None, id=None, ids=None, name_regex=None, names=None, output_file=None)

A collection of values returned by getCustomerGateways.

gateways = None

A list of VPN customer gateways. Each element contains the following attributes:

id = None

The provider-assigned unique ID for this managed resource.

class pulumi_alicloud.vpn.GetGatewaysResult(business_status=None, gateways=None, id=None, ids=None, name_regex=None, names=None, output_file=None, status=None, vpc_id=None)

A collection of values returned by getGateways.

business_status = None

The business status of the VPN gateway.

gateways = None

A list of VPN gateways. Each element contains the following attributes:

id = None

The provider-assigned unique ID for this managed resource.

ids = None

IDs of the VPN.

names = None

names of the VPN.

status = None

The status of the VPN

vpc_id = None

ID of the VPC that the VPN belongs.

class pulumi_alicloud.vpn.RouteEntry(resource_name, opts=None, next_hop=None, publish_vpc=None, route_dest=None, vpn_gateway_id=None, weight=None, __props__=None, __name__=None, __opts__=None)

Create a RouteEntry resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] next_hop: The next hop of the destination route. :param pulumi.Input[bool] publish_vpc: Whether to issue the destination route to the VPC. :param pulumi.Input[str] route_dest: The destination network segment of the destination route. :param pulumi.Input[str] vpn_gateway_id: The id of the vpn gateway. :param pulumi.Input[float] weight: The value should be 0 or 100.

next_hop: pulumi.Output[str] = None

The next hop of the destination route.

publish_vpc: pulumi.Output[bool] = None

Whether to issue the destination route to the VPC.

route_dest: pulumi.Output[str] = None

The destination network segment of the destination route.

vpn_gateway_id: pulumi.Output[str] = None

The id of the vpn gateway.

weight: pulumi.Output[float] = None

The value should be 0 or 100.

static get(resource_name, id, opts=None, next_hop=None, publish_vpc=None, route_dest=None, vpn_gateway_id=None, weight=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • next_hop (pulumi.Input[str]) – The next hop of the destination route.

  • publish_vpc (pulumi.Input[bool]) – Whether to issue the destination route to the VPC.

  • route_dest (pulumi.Input[str]) – The destination network segment of the destination route.

  • vpn_gateway_id (pulumi.Input[str]) – The id of the vpn gateway.

  • weight (pulumi.Input[float]) – The value should be 0 or 100.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.vpn.SslVpnClientCert(resource_name, opts=None, name=None, ssl_vpn_server_id=None, __props__=None, __name__=None, __opts__=None)

Create a SslVpnClientCert resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource.

static get(resource_name, id, opts=None, ca_cert=None, client_cert=None, client_config=None, client_key=None, name=None, ssl_vpn_server_id=None, status=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

class pulumi_alicloud.vpn.SslVpnServer(resource_name, opts=None, cipher=None, client_ip_pool=None, compress=None, local_subnet=None, name=None, port=None, protocol=None, vpn_gateway_id=None, __props__=None, __name__=None, __opts__=None)

Create a SslVpnServer resource with the given unique name, props, and options. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] cipher: The encryption algorithm used by the SSL-VPN server. Valid value: AES-128-CBC (default)| AES-192-CBC | AES-256-CBC | none :param pulumi.Input[str] client_ip_pool: The CIDR block from which access addresses are allocated to the virtual network interface card of the client. :param pulumi.Input[bool] compress: Specify whether to compress the communication. Valid value: true (default) | false :param pulumi.Input[str] local_subnet: 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. :param pulumi.Input[str] name: The name of the SSL-VPN server. :param pulumi.Input[float] port: 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]. :param pulumi.Input[str] protocol: The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP :param pulumi.Input[str] vpn_gateway_id: The ID of the VPN gateway.

cipher: pulumi.Output[str] = None

The encryption algorithm used by the SSL-VPN server. Valid value: AES-128-CBC (default)| AES-192-CBC | AES-256-CBC | none

client_ip_pool: pulumi.Output[str] = None

The CIDR block from which access addresses are allocated to the virtual network interface card of the client.

compress: pulumi.Output[bool] = None

Specify whether to compress the communication. Valid value: true (default) | false

connections: pulumi.Output[float] = None

The number of current connections.

internet_ip: pulumi.Output[str] = None

The internet IP of the SSL-VPN server.

local_subnet: pulumi.Output[str] = None

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: pulumi.Output[float] = None

The maximum number of connections.

name: pulumi.Output[str] = None

The name of the SSL-VPN server.

port: pulumi.Output[float] = None

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: pulumi.Output[str] = None

The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP

vpn_gateway_id: pulumi.Output[str] = None

The ID of the VPN gateway.

static get(resource_name, id, opts=None, cipher=None, client_ip_pool=None, compress=None, connections=None, internet_ip=None, local_subnet=None, max_connections=None, name=None, port=None, protocol=None, vpn_gateway_id=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • cipher (pulumi.Input[str]) – The encryption algorithm used by the SSL-VPN server. Valid value: AES-128-CBC (default)| AES-192-CBC | AES-256-CBC | none

  • client_ip_pool (pulumi.Input[str]) – The CIDR block from which access addresses are allocated to the virtual network interface card of the client.

  • compress (pulumi.Input[bool]) – Specify whether to compress the communication. Valid value: true (default) | false

  • connections (pulumi.Input[float]) – The number of current connections.

  • internet_ip (pulumi.Input[str]) – The internet IP of the SSL-VPN server.

  • local_subnet (pulumi.Input[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 (pulumi.Input[float]) – The maximum number of connections.

  • name (pulumi.Input[str]) – The name of the SSL-VPN server.

  • port (pulumi.Input[float]) – 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 (pulumi.Input[str]) – The protocol used by the SSL-VPN server. Valid value: UDP(default) |TCP

  • vpn_gateway_id (pulumi.Input[str]) – The ID of the VPN gateway.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

pulumi_alicloud.vpn.get_connections(customer_gateway_id=None, ids=None, name_regex=None, output_file=None, vpn_gateway_id=None, opts=None)

The VPN connections data source lists lots of VPN connections resource information owned by an Alicloud account.

import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.vpn.get_connections(customer_gateway_id="fake-cgw-id",
    ids=["fake-conn-id"],
    output_file="/tmp/vpnconn",
    vpn_gateway_id="fake-vpn-id")
Parameters
  • customer_gateway_id (str) – Use the VPN customer gateway ID as the search key.

  • ids (list) – IDs of the VPN connections.

  • name_regex (str) – A regex string of VPN connection name.

  • output_file (str) – Save the result to the file.

  • vpn_gateway_id (str) – Use the VPN gateway ID as the search key.

pulumi_alicloud.vpn.get_customer_gateways(ids=None, name_regex=None, output_file=None, opts=None)

The VPN customers gateways data source lists a number of VPN customer gateways resource information owned by an Alicloud account.

import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.vpn.get_customer_gateways(ids=[
        "fake-id1",
        "fake-id2",
    ],
    name_regex="testAcc*",
    output_file="/tmp/cgws")
Parameters
  • ids (list) – ID of the VPN customer gateways.

  • name_regex (str) – A regex string of VPN customer gateways name.

  • output_file (str) – Save the result to the file.

pulumi_alicloud.vpn.get_gateways(business_status=None, ids=None, name_regex=None, output_file=None, status=None, vpc_id=None, opts=None)

The VPNs data source lists a number of VPNs resource information owned by an Alicloud account.

import pulumi
import pulumi_alicloud as alicloud

vpn_gateways = alicloud.vpn.get_gateways(business_status="Normal",
    ids=[
        "fake-vpn-id1",
        "fake-vpn-id2",
    ],
    name_regex="testAcc*",
    output_file="/tmp/vpns",
    status="active",
    vpc_id="fake-vpc-id")
Parameters
  • business_status (str) – Limit search to specific business status - valid value is “Normal”, “FinancialLocked”.

  • ids (list) – IDs of the VPN.

  • name_regex (str) – A regex string of VPN name.

  • output_file (str) – Save the result to the file.

  • status (str) – Limit search to specific status - valid value is “Init”, “Provisioning”, “Active”, “Updating”, “Deleting”.

  • vpc_id (str) – Use the VPC ID as the search key.