Delen via


VirtualNetworkGatewayConnection Constructors

Definition

Overloads

VirtualNetworkGatewayConnection()

Initializes a new instance of the VirtualNetworkGatewayConnection class.

VirtualNetworkGatewayConnection(VirtualNetworkGateway, String, String, String, String, String, IDictionary<String,String>, String, VirtualNetworkGateway, LocalNetworkGateway, IList<SubResource>, IList<SubResource>, String, Nullable<Int32>, Nullable<Int32>, String, String, String, IList<TunnelConnectionHealth>, Nullable<Int64>, Nullable<Int64>, SubResource, Nullable<Boolean>, IList<GatewayCustomBgpIpAddressIpConfiguration>, Nullable<Boolean>, Nullable<Boolean>, IList<IpsecPolicy>, IList<TrafficSelectorPolicy>, String, String, Nullable<Boolean>, Nullable<Boolean>, String)

Initializes a new instance of the VirtualNetworkGatewayConnection class.

VirtualNetworkGatewayConnection()

Initializes a new instance of the VirtualNetworkGatewayConnection class.

public VirtualNetworkGatewayConnection ();
Public Sub New ()

Applies to

VirtualNetworkGatewayConnection(VirtualNetworkGateway, String, String, String, String, String, IDictionary<String,String>, String, VirtualNetworkGateway, LocalNetworkGateway, IList<SubResource>, IList<SubResource>, String, Nullable<Int32>, Nullable<Int32>, String, String, String, IList<TunnelConnectionHealth>, Nullable<Int64>, Nullable<Int64>, SubResource, Nullable<Boolean>, IList<GatewayCustomBgpIpAddressIpConfiguration>, Nullable<Boolean>, Nullable<Boolean>, IList<IpsecPolicy>, IList<TrafficSelectorPolicy>, String, String, Nullable<Boolean>, Nullable<Boolean>, String)

Initializes a new instance of the VirtualNetworkGatewayConnection class.

public VirtualNetworkGatewayConnection (Microsoft.Azure.Management.Network.Models.VirtualNetworkGateway virtualNetworkGateway1, string connectionType, string id = default, string name = default, string type = default, string location = default, System.Collections.Generic.IDictionary<string,string> tags = default, string authorizationKey = default, Microsoft.Azure.Management.Network.Models.VirtualNetworkGateway virtualNetworkGateway2 = default, Microsoft.Azure.Management.Network.Models.LocalNetworkGateway localNetworkGateway2 = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> ingressNatRules = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> egressNatRules = default, string connectionProtocol = default, int? routingWeight = default, int? dpdTimeoutSeconds = default, string connectionMode = default, string sharedKey = default, string connectionStatus = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.TunnelConnectionHealth> tunnelConnectionStatus = default, long? egressBytesTransferred = default, long? ingressBytesTransferred = default, Microsoft.Azure.Management.Network.Models.SubResource peer = default, bool? enableBgp = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.GatewayCustomBgpIpAddressIpConfiguration> gatewayCustomBgpIpAddresses = default, bool? useLocalAzureIpAddress = default, bool? usePolicyBasedTrafficSelectors = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.IpsecPolicy> ipsecPolicies = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.TrafficSelectorPolicy> trafficSelectorPolicies = default, string resourceGuid = default, string provisioningState = default, bool? expressRouteGatewayBypass = default, bool? enablePrivateLinkFastPath = default, string etag = default);
new Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayConnection : Microsoft.Azure.Management.Network.Models.VirtualNetworkGateway * string * string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * Microsoft.Azure.Management.Network.Models.VirtualNetworkGateway * Microsoft.Azure.Management.Network.Models.LocalNetworkGateway * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.SubResource> * string * Nullable<int> * Nullable<int> * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.TunnelConnectionHealth> * Nullable<int64> * Nullable<int64> * Microsoft.Azure.Management.Network.Models.SubResource * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.GatewayCustomBgpIpAddressIpConfiguration> * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.IpsecPolicy> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.TrafficSelectorPolicy> * string * string * Nullable<bool> * Nullable<bool> * string -> Microsoft.Azure.Management.Network.Models.VirtualNetworkGatewayConnection
Public Sub New (virtualNetworkGateway1 As VirtualNetworkGateway, connectionType As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional authorizationKey As String = Nothing, Optional virtualNetworkGateway2 As VirtualNetworkGateway = Nothing, Optional localNetworkGateway2 As LocalNetworkGateway = Nothing, Optional ingressNatRules As IList(Of SubResource) = Nothing, Optional egressNatRules As IList(Of SubResource) = Nothing, Optional connectionProtocol As String = Nothing, Optional routingWeight As Nullable(Of Integer) = Nothing, Optional dpdTimeoutSeconds As Nullable(Of Integer) = Nothing, Optional connectionMode As String = Nothing, Optional sharedKey As String = Nothing, Optional connectionStatus As String = Nothing, Optional tunnelConnectionStatus As IList(Of TunnelConnectionHealth) = Nothing, Optional egressBytesTransferred As Nullable(Of Long) = Nothing, Optional ingressBytesTransferred As Nullable(Of Long) = Nothing, Optional peer As SubResource = Nothing, Optional enableBgp As Nullable(Of Boolean) = Nothing, Optional gatewayCustomBgpIpAddresses As IList(Of GatewayCustomBgpIpAddressIpConfiguration) = Nothing, Optional useLocalAzureIpAddress As Nullable(Of Boolean) = Nothing, Optional usePolicyBasedTrafficSelectors As Nullable(Of Boolean) = Nothing, Optional ipsecPolicies As IList(Of IpsecPolicy) = Nothing, Optional trafficSelectorPolicies As IList(Of TrafficSelectorPolicy) = Nothing, Optional resourceGuid As String = Nothing, Optional provisioningState As String = Nothing, Optional expressRouteGatewayBypass As Nullable(Of Boolean) = Nothing, Optional enablePrivateLinkFastPath As Nullable(Of Boolean) = Nothing, Optional etag As String = Nothing)

Parameters

virtualNetworkGateway1
VirtualNetworkGateway

The reference to virtual network gateway resource.

connectionType
String

Gateway connection type. Possible values include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient'

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

location
String

Resource location.

tags
IDictionary<String,String>

Resource tags.

authorizationKey
String

The authorizationKey.

virtualNetworkGateway2
VirtualNetworkGateway

The reference to virtual network gateway resource.

localNetworkGateway2
LocalNetworkGateway

The reference to local network gateway resource.

ingressNatRules
IList<SubResource>

List of ingress NatRules.

egressNatRules
IList<SubResource>

List of egress NatRules.

connectionProtocol
String

Connection protocol used for this connection. Possible values include: 'IKEv2', 'IKEv1'

routingWeight
Nullable<Int32>

The routing weight.

dpdTimeoutSeconds
Nullable<Int32>

The dead peer detection timeout of this connection in seconds.

connectionMode
String

The connection mode for this connection. Possible values include: 'Default', 'ResponderOnly', 'InitiatorOnly'

sharedKey
String

The IPSec shared key.

connectionStatus
String

Virtual Network Gateway connection status. Possible values include: 'Unknown', 'Connecting', 'Connected', 'NotConnected'

tunnelConnectionStatus
IList<TunnelConnectionHealth>

Collection of all tunnels' connection health status.

egressBytesTransferred
Nullable<Int64>

The egress bytes transferred in this connection.

ingressBytesTransferred
Nullable<Int64>

The ingress bytes transferred in this connection.

peer
SubResource

The reference to peerings resource.

enableBgp
Nullable<Boolean>

EnableBgp flag.

gatewayCustomBgpIpAddresses
IList<GatewayCustomBgpIpAddressIpConfiguration>

GatewayCustomBgpIpAddresses to be used for virtual network gateway Connection.

useLocalAzureIpAddress
Nullable<Boolean>

Use private local Azure IP for the connection.

usePolicyBasedTrafficSelectors
Nullable<Boolean>

Enable policy-based traffic selectors.

ipsecPolicies
IList<IpsecPolicy>

The IPSec Policies to be considered by this connection.

trafficSelectorPolicies
IList<TrafficSelectorPolicy>

The Traffic Selector Policies to be considered by this connection.

resourceGuid
String

The resource GUID property of the virtual network gateway connection resource.

provisioningState
String

The provisioning state of the virtual network gateway connection resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

expressRouteGatewayBypass
Nullable<Boolean>

Bypass ExpressRoute Gateway for data forwarding.

enablePrivateLinkFastPath
Nullable<Boolean>

Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled.

etag
String

A unique read-only string that changes whenever the resource is updated.

Applies to