你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VpnConnectionInner 构造函数

定义

重载

VpnConnectionInner()

初始化 VpnConnectionInner 类的新实例。

VpnConnectionInner(String, SubResource, Nullable<Int32>, VpnConnectionStatus, VirtualNetworkGatewayConnectionProtocol, Nullable<Int64>, Nullable<Int64>, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>, IList<IpsecPolicy>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ProvisioningState, IList<VpnSiteLinkConnectionInner>, String, String)

初始化 VpnConnectionInner 类的新实例。

VpnConnectionInner()

初始化 VpnConnectionInner 类的新实例。

public VpnConnectionInner ();
Public Sub New ()

适用于

VpnConnectionInner(String, SubResource, Nullable<Int32>, VpnConnectionStatus, VirtualNetworkGatewayConnectionProtocol, Nullable<Int64>, Nullable<Int64>, Nullable<Int32>, String, Nullable<Boolean>, Nullable<Boolean>, IList<IpsecPolicy>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ProvisioningState, IList<VpnSiteLinkConnectionInner>, String, String)

初始化 VpnConnectionInner 类的新实例。

public VpnConnectionInner (string id = default, Microsoft.Azure.Management.ResourceManager.Fluent.SubResource remoteVpnSite = default, int? routingWeight = default, Microsoft.Azure.Management.Network.Fluent.Models.VpnConnectionStatus connectionStatus = default, Microsoft.Azure.Management.Network.Fluent.Models.VirtualNetworkGatewayConnectionProtocol vpnConnectionProtocolType = default, long? ingressBytesTransferred = default, long? egressBytesTransferred = default, int? connectionBandwidth = default, string sharedKey = default, bool? enableBgp = default, bool? usePolicyBasedTrafficSelectors = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.IpsecPolicy> ipsecPolicies = default, bool? enableRateLimiting = default, bool? enableInternetSecurity = default, bool? useLocalAzureIpAddress = default, Microsoft.Azure.Management.Network.Fluent.Models.ProvisioningState provisioningState = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.VpnSiteLinkConnectionInner> vpnLinkConnections = default, string name = default, string etag = default);
new Microsoft.Azure.Management.Network.Fluent.Models.VpnConnectionInner : string * Microsoft.Azure.Management.ResourceManager.Fluent.SubResource * Nullable<int> * Microsoft.Azure.Management.Network.Fluent.Models.VpnConnectionStatus * Microsoft.Azure.Management.Network.Fluent.Models.VirtualNetworkGatewayConnectionProtocol * Nullable<int64> * Nullable<int64> * Nullable<int> * string * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.IpsecPolicy> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Management.Network.Fluent.Models.ProvisioningState * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Fluent.Models.VpnSiteLinkConnectionInner> * string * string -> Microsoft.Azure.Management.Network.Fluent.Models.VpnConnectionInner
Public Sub New (Optional id As String = Nothing, Optional remoteVpnSite As SubResource = Nothing, Optional routingWeight As Nullable(Of Integer) = Nothing, Optional connectionStatus As VpnConnectionStatus = Nothing, Optional vpnConnectionProtocolType As VirtualNetworkGatewayConnectionProtocol = Nothing, Optional ingressBytesTransferred As Nullable(Of Long) = Nothing, Optional egressBytesTransferred As Nullable(Of Long) = Nothing, Optional connectionBandwidth As Nullable(Of Integer) = Nothing, Optional sharedKey As String = Nothing, Optional enableBgp As Nullable(Of Boolean) = Nothing, Optional usePolicyBasedTrafficSelectors As Nullable(Of Boolean) = Nothing, Optional ipsecPolicies As IList(Of IpsecPolicy) = Nothing, Optional enableRateLimiting As Nullable(Of Boolean) = Nothing, Optional enableInternetSecurity As Nullable(Of Boolean) = Nothing, Optional useLocalAzureIpAddress As Nullable(Of Boolean) = Nothing, Optional provisioningState As ProvisioningState = Nothing, Optional vpnLinkConnections As IList(Of VpnSiteLinkConnectionInner) = Nothing, Optional name As String = Nothing, Optional etag As String = Nothing)

参数

id
String
remoteVpnSite
SubResource

连接的 VPN 站点的 ID。

routingWeight
Nullable<Int32>

VPN 连接的路由权重。

connectionStatus
VpnConnectionStatus

连接状态。 可能的值包括:“Unknown”、“Connected”、“Connected”、“NotConnected”

vpnConnectionProtocolType
VirtualNetworkGatewayConnectionProtocol

用于此连接的连接协议。 可能的值包括:“IKEv2”、“IKEv1”

ingressBytesTransferred
Nullable<Int64>

传输的入口字节数。

egressBytesTransferred
Nullable<Int64>

传输的出口字节数。

connectionBandwidth
Nullable<Int32>

预期带宽(以 MBPS 为单位)。

sharedKey
String

Vpn 连接的 SharedKey。

enableBgp
Nullable<Boolean>

EnableBgp 标志。

usePolicyBasedTrafficSelectors
Nullable<Boolean>

启用基于策略的流量选择器。

ipsecPolicies
IList<IpsecPolicy>

此连接要考虑的 IPSec 策略。

enableRateLimiting
Nullable<Boolean>

EnableBgp 标志。

enableInternetSecurity
Nullable<Boolean>

启用 Internet 安全性。

useLocalAzureIpAddress
Nullable<Boolean>

使用本地 azure IP 启动连接。

provisioningState
ProvisioningState

VPN 连接资源的预配状态。 可能的值包括:“Succeeded”、“Updateing”、“删除”、“Failed”

vpnLinkConnections
IList<VpnSiteLinkConnectionInner>

到网关的所有 VPN 站点链接连接的列表。

name
String

资源组中唯一的资源的名称。 此名称可用于访问资源。

etag
String

一个唯一的只读字符串,每当资源更新时都会更改。

适用于