你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualNetworkGatewayConnection 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
VirtualNetworkGatewayConnection()
初始化 VirtualNetworkGatewayConnection 类的新实例。
public VirtualNetworkGatewayConnection ();
Public Sub New ()
适用于
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)
初始化 VirtualNetworkGatewayConnection 类的新实例。
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)
参数
- virtualNetworkGateway1
- VirtualNetworkGateway
对虚拟网络网关资源的引用。
- connectionType
- String
网关连接类型。 可能的值包括:“IPsec”、“Vnet2Vnet”、“ExpressRoute”、“VPNClient”
- id
- String
资源 ID。
- name
- String
资源名称。
- type
- String
资源类型。
- location
- String
资源位置。
- tags
- IDictionary<String,String>
资源标记。
- authorizationKey
- String
authorizationKey。
- virtualNetworkGateway2
- VirtualNetworkGateway
对虚拟网络网关资源的引用。
- localNetworkGateway2
- LocalNetworkGateway
对本地网络网关资源的引用。
- ingressNatRules
- IList<SubResource>
入口 NatRules 列表。
- egressNatRules
- IList<SubResource>
出口 NatRules 列表。
- connectionProtocol
- String
用于此连接的连接协议。 可能的值包括:“IKEv2”、“IKEv1”
- connectionMode
- String
此连接的连接模式。 可能的值包括:“Default”、“ResponderOnly”、“InitiatorOnly”
- sharedKey
- String
IPSec 共享密钥。
- connectionStatus
- String
虚拟网络网关连接状态。 可能的值包括:“Unknown”、“Connecting”、“Connected”、“NotConnected”
- tunnelConnectionStatus
- IList<TunnelConnectionHealth>
所有隧道的连接运行状况的集合。
- peer
- SubResource
对等互连资源的引用。
- gatewayCustomBgpIpAddresses
- IList<GatewayCustomBgpIpAddressIpConfiguration>
用于虚拟网络网关连接的 GatewayCustomBgpIpAddresses。
- ipsecPolicies
- IList<IpsecPolicy>
此连接要考虑的 IPSec 策略。
- trafficSelectorPolicies
- IList<TrafficSelectorPolicy>
此连接要考虑的流量选择器策略。
- resourceGuid
- String
虚拟网络网关连接资源的资源 GUID 属性。
- provisioningState
- String
虚拟网络网关连接资源的预配状态。 可能的值包括:“Succeeded”、“Updating”、“Deleting”、“Failed”
访问专用链接时绕过 ExpressRoute 网关。 必须启用 ExpressRoute FastPath (expressRouteGatewayBypass) 。
- etag
- String
一个唯一的只读字符串,每当资源更新时都会更改。