Gateway

Import

VPN gateway can be imported using the id, e.g.

 $ pulumi import alicloud:vpn/gateway:Gateway example vpn-abc123456

Create Gateway Resource

new Gateway(name: string, args: GatewayArgs, opts?: CustomResourceOptions);
@overload
def Gateway(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            auto_pay: Optional[bool] = None,
            bandwidth: Optional[int] = None,
            description: Optional[str] = None,
            enable_ipsec: Optional[bool] = None,
            enable_ssl: Optional[bool] = None,
            instance_charge_type: Optional[str] = None,
            name: Optional[str] = None,
            period: Optional[int] = None,
            ssl_connections: Optional[int] = None,
            tags: Optional[Mapping[str, Any]] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None)
@overload
def Gateway(resource_name: str,
            args: GatewayArgs,
            opts: Optional[ResourceOptions] = None)
func NewGateway(ctx *Context, name string, args GatewayArgs, opts ...ResourceOption) (*Gateway, error)
public Gateway(string name, GatewayArgs args, CustomResourceOptions? opts = null)
public Gateway(String name, GatewayArgs args)
public Gateway(String name, GatewayArgs args, CustomResourceOptions options)
type: alicloud:vpn:Gateway
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GatewayArgs
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 GatewayArgs
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 GatewayArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GatewayArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GatewayArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Gateway Resource Properties

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

Inputs

The Gateway resource accepts the following input properties:

Bandwidth int
VpcId string

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

AutoPay bool

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

Description string

The description of the VPN instance.

EnableIpsec bool

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

EnableSsl bool

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

InstanceChargeType string

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

Name string

The name of the VPN. Defaults to null.

Period int

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

SslConnections int

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.

Tags Dictionary<string, object>

The tags of VPN gateway.

VswitchId string

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

Bandwidth int
VpcId string

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

AutoPay bool

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

Description string

The description of the VPN instance.

EnableIpsec bool

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

EnableSsl bool

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

InstanceChargeType string

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

Name string

The name of the VPN. Defaults to null.

Period int

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

SslConnections int

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.

Tags map[string]interface{}

The tags of VPN gateway.

VswitchId string

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

bandwidth Integer
vpcId String

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

autoPay Boolean

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

description String

The description of the VPN instance.

enableIpsec Boolean

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

enableSsl Boolean

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

instanceChargeType String

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

name String

The name of the VPN. Defaults to null.

period Integer

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

sslConnections Integer

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.

tags Map<String,Object>

The tags of VPN gateway.

vswitchId String

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

bandwidth number
vpcId string

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

autoPay boolean

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

description string

The description of the VPN instance.

enableIpsec boolean

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

enableSsl boolean

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

instanceChargeType string

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

name string

The name of the VPN. Defaults to null.

period number

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

sslConnections number

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.

tags {[key: string]: any}

The tags of VPN gateway.

vswitchId string

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

bandwidth int
vpc_id str

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

auto_pay bool

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

description str

The description of the VPN instance.

enable_ipsec bool

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

enable_ssl bool

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

instance_charge_type str

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

name str

The name of the VPN. Defaults to null.

period int

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

ssl_connections int

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.

tags Mapping[str, Any]

The tags of VPN gateway.

vswitch_id str

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

bandwidth Number
vpcId String

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

autoPay Boolean

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

description String

The description of the VPN instance.

enableIpsec Boolean

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

enableSsl Boolean

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

instanceChargeType String

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

name String

The name of the VPN. Defaults to null.

period Number

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

sslConnections Number

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.

tags Map<Any>

The tags of VPN gateway.

vswitchId String

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

Outputs

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

BusinessStatus string

The business status of the VPN gateway.

Id string

The provider-assigned unique ID for this managed resource.

InternetIp string

The internet ip of the VPN.

Status string

The status of the VPN gateway.

BusinessStatus string

The business status of the VPN gateway.

Id string

The provider-assigned unique ID for this managed resource.

InternetIp string

The internet ip of the VPN.

Status string

The status of the VPN gateway.

businessStatus String

The business status of the VPN gateway.

id String

The provider-assigned unique ID for this managed resource.

internetIp String

The internet ip of the VPN.

status String

The status of the VPN gateway.

businessStatus string

The business status of the VPN gateway.

id string

The provider-assigned unique ID for this managed resource.

internetIp string

The internet ip of the VPN.

status string

The status of the VPN gateway.

business_status str

The business status of the VPN gateway.

id str

The provider-assigned unique ID for this managed resource.

internet_ip str

The internet ip of the VPN.

status str

The status of the VPN gateway.

businessStatus String

The business status of the VPN gateway.

id String

The provider-assigned unique ID for this managed resource.

internetIp String

The internet ip of the VPN.

status String

The status of the VPN gateway.

Look up Existing Gateway Resource

Get an existing Gateway 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?: GatewayState, opts?: CustomResourceOptions): Gateway
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_pay: Optional[bool] = None,
        bandwidth: Optional[int] = None,
        business_status: Optional[str] = None,
        description: Optional[str] = None,
        enable_ipsec: Optional[bool] = None,
        enable_ssl: Optional[bool] = None,
        instance_charge_type: Optional[str] = None,
        internet_ip: Optional[str] = None,
        name: Optional[str] = None,
        period: Optional[int] = None,
        ssl_connections: Optional[int] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, Any]] = None,
        vpc_id: Optional[str] = None,
        vswitch_id: Optional[str] = None) -> Gateway
func GetGateway(ctx *Context, name string, id IDInput, state *GatewayState, opts ...ResourceOption) (*Gateway, error)
public static Gateway Get(string name, Input<string> id, GatewayState? state, CustomResourceOptions? opts = null)
public static Gateway get(String name, Output<String> id, GatewayState 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.
The following state arguments are supported:
AutoPay bool

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

Bandwidth int
BusinessStatus string

The business status of the VPN gateway.

Description string

The description of the VPN instance.

EnableIpsec bool

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

EnableSsl bool

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

InstanceChargeType string

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

InternetIp string

The internet ip of the VPN.

Name string

The name of the VPN. Defaults to null.

Period int

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

SslConnections int

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 string

The status of the VPN gateway.

Tags Dictionary<string, object>

The tags of VPN gateway.

VpcId string

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

VswitchId string

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

AutoPay bool

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

Bandwidth int
BusinessStatus string

The business status of the VPN gateway.

Description string

The description of the VPN instance.

EnableIpsec bool

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

EnableSsl bool

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

InstanceChargeType string

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

InternetIp string

The internet ip of the VPN.

Name string

The name of the VPN. Defaults to null.

Period int

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

SslConnections int

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 string

The status of the VPN gateway.

Tags map[string]interface{}

The tags of VPN gateway.

VpcId string

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

VswitchId string

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

autoPay Boolean

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

bandwidth Integer
businessStatus String

The business status of the VPN gateway.

description String

The description of the VPN instance.

enableIpsec Boolean

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

enableSsl Boolean

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

instanceChargeType String

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

internetIp String

The internet ip of the VPN.

name String

The name of the VPN. Defaults to null.

period Integer

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

sslConnections Integer

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 String

The status of the VPN gateway.

tags Map<String,Object>

The tags of VPN gateway.

vpcId String

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

vswitchId String

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

autoPay boolean

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

bandwidth number
businessStatus string

The business status of the VPN gateway.

description string

The description of the VPN instance.

enableIpsec boolean

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

enableSsl boolean

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

instanceChargeType string

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

internetIp string

The internet ip of the VPN.

name string

The name of the VPN. Defaults to null.

period number

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

sslConnections number

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 string

The status of the VPN gateway.

tags {[key: string]: any}

The tags of VPN gateway.

vpcId string

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

vswitchId string

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

auto_pay bool

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

bandwidth int
business_status str

The business status of the VPN gateway.

description str

The description of the VPN instance.

enable_ipsec bool

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

enable_ssl bool

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

instance_charge_type 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 str

The internet ip of the VPN.

name str

The name of the VPN. Defaults to null.

period int

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

ssl_connections int

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 str

The status of the VPN gateway.

tags Mapping[str, Any]

The tags of VPN gateway.

vpc_id str

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

vswitch_id str

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

autoPay Boolean

Whether to pay automatically. Default value: true. Valid values: false: If automatic payment is not enabled, you need to go to the order center to complete the payment after the order is generated. true: Enable automatic payment, automatic payment order.

bandwidth Number
businessStatus String

The business status of the VPN gateway.

description String

The description of the VPN instance.

enableIpsec Boolean

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

enableSsl Boolean

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

instanceChargeType String

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

internetIp String

The internet ip of the VPN.

name String

The name of the VPN. Defaults to null.

period Number

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

sslConnections Number

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 String

The status of the VPN gateway.

tags Map<Any>

The tags of VPN gateway.

vpcId String

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

vswitchId String

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

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.