Class Gateway
Inherited Members
Namespace: Pulumi.AliCloud.Vpn
Assembly: Pulumi.AliCloud.dll
Syntax
public class Gateway : CustomResource
Constructors
View SourceGateway(String, GatewayArgs, CustomResourceOptions)
Create a Gateway resource with the given unique name, arguments, and options.
Declaration
public Gateway(string name, GatewayArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| GatewayArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBandwidth
Declaration
public Output<int> Bandwidth { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
BusinessStatus
The business status of the VPN gateway.
Declaration
public Output<string> BusinessStatus { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The description of the VPN instance.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EnableIpsec
Enable or Disable IPSec VPN. At least one type of VPN should be enabled.
Declaration
public Output<bool?> EnableIpsec { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
EnableSsl
Enable or Disable SSL VPN. At least one type of VPN should be enabled.
Declaration
public Output<bool?> EnableSsl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
InstanceChargeType
The charge type for instance. If it is an international site account, the valid value is PostPaid, otherwise PrePaid. Default to PostPaid.
Declaration
public Output<string> InstanceChargeType { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InternetIp
The internet ip of the VPN.
Declaration
public Output<string> InternetIp { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the VPN. Defaults to null.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Period
The filed is only required while the InstanceChargeType is PrePaid. Valid values: [1-9, 12, 24, 36]. Default to 1.
Declaration
public Output<int?> Period { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
SslConnections
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.
Declaration
public Output<int?> SslConnections { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Status
The status of the VPN gateway.
Declaration
public Output<string> Status { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VpcId
The VPN belongs the vpc_id, the field can't be changed.
Declaration
public Output<string> VpcId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
VswitchId
The VPN belongs the vswitch_id, the field can't be changed.
Declaration
public Output<string> VswitchId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, GatewayState, CustomResourceOptions)
Get an existing Gateway resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Gateway Get(string name, Input<string> id, GatewayState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| GatewayState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Gateway |