Virtual Network Gateways - List Connections
获取虚拟网络网关中的所有连接。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections?api-version=2024-05-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
资源组的名称。 |
subscription
|
path | True |
string |
唯一标识 Azure 订阅Microsoft的订阅凭据。 订阅 ID 构成了每个服务调用的 URI 的一部分。 |
virtual
|
path | True |
string |
虚拟网络网关的名称。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
请求成功。 该操作返回 VirtualNetworkGatewayConnection 资源的列表。 |
|
Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
VirtualNetworkGatewaysListConnections
示例请求
示例响应
{
"value": [
{
"name": "test-vpn-connection",
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/connections/test-vpn-connection",
"etag": "W/\\\"00000000-0000-0000-0000-000000000000\\\"",
"type": "Microsoft.Network/connections",
"location": "eastus",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "00000000-0000-0000-0000-000000000000",
"virtualNetworkGateway1": {
"id": "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkGateways/test-vpn-gateway-1"
},
"virtualNetworkGateway2": {
"id": "/subscriptions/subid/resourceGroups/testrg-2/providers/Microsoft.Network/virtualNetworkGateways/test-vpn-gateway-2"
},
"connectionType": "Vnet2Vnet",
"routingWeight": 22,
"enableBgp": true,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": [],
"trafficSelectorPolicies": [],
"ingressBytesTransferred": 0,
"egressBytesTransferred": 0
}
}
]
}
定义
名称 | 说明 |
---|---|
Cloud |
服务的错误响应。 |
Cloud |
服务的错误响应。 |
Dh |
IKE 阶段 1 中使用的 DH 组用于初始 SA。 |
Gateway |
虚拟网络网关连接的 GatewayCustomBgpIpAddressIpConfiguration。 |
Ike |
IKE 加密算法(IKE 阶段 2)。 |
Ike |
IKE 完整性算法(IKE 阶段 2)。 |
Ipsec |
IPSec 加密算法(IKE 阶段 1)。 |
Ipsec |
IPSec 完整性算法(IKE 阶段 1)。 |
Ipsec |
虚拟网络网关连接的 IPSec 策略配置。 |
Pfs |
IKE 阶段 2 中用于新子 SA 的 Pfs 组。 |
Provisioning |
当前预配状态。 |
Sub |
对另一个子资源的引用。 |
Traffic |
虚拟网络网关连接的流量选择器策略。 |
Tunnel |
VirtualNetworkGatewayConnection 属性。 |
Virtual |
对 VirtualNetworkGateway 或 LocalNetworkGateway 资源的引用。 |
Virtual |
常规资源信息的通用类。 |
Virtual |
网关连接类型。 |
Virtual |
用于此连接的连接协议。 |
Virtual |
虚拟网络网关连接状态。 |
Virtual |
网关连接类型。 |
Virtual |
VirtualNetworkGatewayListConnections API 服务调用的响应。 |
CloudError
服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
云错误正文。 |
CloudErrorBody
服务的错误响应。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误的标识符。 代码是固定的,旨在以编程方式使用。 |
details |
有关错误的其他详细信息的列表。 |
|
message |
string |
描述错误的消息,旨在适合在用户界面中显示。 |
target |
string |
特定错误的目标。 例如,错误属性的名称。 |
DhGroup
IKE 阶段 1 中使用的 DH 组用于初始 SA。
值 | 说明 |
---|---|
DHGroup1 | |
DHGroup14 | |
DHGroup2 | |
DHGroup2048 | |
DHGroup24 | |
ECP256 | |
ECP384 | |
None |
GatewayCustomBgpIpAddressIpConfiguration
虚拟网络网关连接的 GatewayCustomBgpIpAddressIpConfiguration。
名称 | 类型 | 说明 |
---|---|---|
customBgpIpAddress |
string |
属于 IpconfigurationId 的自定义 BgpPeeringAddress。 |
ipConfigurationId |
string |
属于网关的 ipconfiguration 的 IpconfigurationId。 |
IkeEncryption
IKE 加密算法(IKE 阶段 2)。
值 | 说明 |
---|---|
AES128 | |
AES192 | |
AES256 | |
DES | |
DES3 | |
GCMAES128 | |
GCMAES256 |
IkeIntegrity
IKE 完整性算法(IKE 阶段 2)。
值 | 说明 |
---|---|
GCMAES128 | |
GCMAES256 | |
MD5 | |
SHA1 | |
SHA256 | |
SHA384 |
IpsecEncryption
IPSec 加密算法(IKE 阶段 1)。
值 | 说明 |
---|---|
AES128 | |
AES192 | |
AES256 | |
DES | |
DES3 | |
GCMAES128 | |
GCMAES192 | |
GCMAES256 | |
None |
IpsecIntegrity
IPSec 完整性算法(IKE 阶段 1)。
值 | 说明 |
---|---|
GCMAES128 | |
GCMAES192 | |
GCMAES256 | |
MD5 | |
SHA1 | |
SHA256 |
IpsecPolicy
虚拟网络网关连接的 IPSec 策略配置。
名称 | 类型 | 说明 |
---|---|---|
dhGroup |
IKE 阶段 1 中用于初始 SA 的 DH 组。 |
|
ikeEncryption |
IKE 加密算法(IKE 阶段 2)。 |
|
ikeIntegrity |
IKE 完整性算法(IKE 阶段 2)。 |
|
ipsecEncryption |
IPSec 加密算法(IKE 阶段 1)。 |
|
ipsecIntegrity |
IPSec 完整性算法(IKE 阶段 1)。 |
|
pfsGroup |
IKE 阶段 2 中使用的 Pfs 组用于新的子 SA。 |
|
saDataSizeKilobytes |
integer (int32) |
IPSec 安全关联(也称为快速模式或阶段 2 SA)有效负载大小(以 KB 为单位),用于站点到站点 VPN 隧道。 |
saLifeTimeSeconds |
integer (int32) |
站点到站点 VPN 隧道的 IPSec 安全关联(也称为快速模式或阶段 2 SA)生存期(以秒为单位)。 |
PfsGroup
IKE 阶段 2 中用于新子 SA 的 Pfs 组。
值 | 说明 |
---|---|
ECP256 | |
ECP384 | |
None | |
PFS1 | |
PFS14 | |
PFS2 | |
PFS2048 | |
PFS24 | |
PFSMM |
ProvisioningState
当前预配状态。
值 | 说明 |
---|---|
Deleting | |
Failed | |
Succeeded | |
Updating |
SubResource
对另一个子资源的引用。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
TrafficSelectorPolicy
虚拟网络网关连接的流量选择器策略。
名称 | 类型 | 说明 |
---|---|---|
localAddressRanges |
string[] |
CIDR 格式的本地地址空间的集合。 |
remoteAddressRanges |
string[] |
采用 CIDR 格式的远程地址空间集合。 |
TunnelConnectionHealth
VirtualNetworkGatewayConnection 属性。
名称 | 类型 | 说明 |
---|---|---|
connectionStatus |
虚拟网络网关连接状态。 |
|
egressBytesTransferred |
integer (int64) |
在此连接中传输的出口字节数。 |
ingressBytesTransferred |
integer (int64) |
在此连接中传输的入口字节数。 |
lastConnectionEstablishedUtcTime |
string |
以 Utc 格式建立连接的时间。 |
tunnel |
string |
隧道名称。 |
VirtualNetworkConnectionGatewayReference
对 VirtualNetworkGateway 或 LocalNetworkGateway 资源的引用。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
VirtualNetworkGateway 或 LocalNetworkGateway 资源的 ID。 |
VirtualNetworkGatewayConnectionListEntity
常规资源信息的通用类。
名称 | 类型 | 说明 |
---|---|---|
etag |
string |
一个唯一的只读字符串,每当更新资源时更改。 |
id |
string |
资源 ID。 |
location |
string |
资源位置。 |
name |
string |
资源名称。 |
properties.authorizationKey |
string |
authorizationKey。 |
properties.connectionMode |
此连接的连接模式。 |
|
properties.connectionProtocol |
用于此连接的连接协议。 |
|
properties.connectionStatus |
虚拟网络网关连接状态。 |
|
properties.connectionType |
网关连接类型。 |
|
properties.egressBytesTransferred |
integer (int64) |
在此连接中传输的出口字节数。 |
properties.enableBgp |
boolean |
EnableBgp 标志。 |
properties.enablePrivateLinkFastPath |
boolean |
访问专用链接时绕过 ExpressRoute 网关。 必须启用 ExpressRoute FastPath (expressRouteGatewayBypass)。 |
properties.expressRouteGatewayBypass |
boolean |
绕过 ExpressRoute 网关进行数据转发。 |
properties.gatewayCustomBgpIpAddresses |
用于虚拟网络网关连接的 GatewayCustomBgpIpAddresses。 |
|
properties.ingressBytesTransferred |
integer (int64) |
在此连接中传输的入口字节数。 |
properties.ipsecPolicies |
此连接要考虑的 IPSec 策略。 |
|
properties.localNetworkGateway2 |
对本地网络网关资源的引用。 |
|
properties.peer |
对等互连资源的引用。 |
|
properties.provisioningState |
虚拟网络网关连接资源的预配状态。 |
|
properties.resourceGuid |
string |
虚拟网络网关连接资源的资源 GUID 属性。 |
properties.routingWeight |
integer (int32) |
路由权重。 |
properties.sharedKey |
string |
IPSec 共享密钥。 |
properties.trafficSelectorPolicies |
此连接要考虑的流量选择器策略。 |
|
properties.tunnelConnectionStatus |
所有隧道的连接运行状况的集合。 |
|
properties.usePolicyBasedTrafficSelectors |
boolean |
启用基于策略的流量选择器。 |
properties.virtualNetworkGateway1 |
对虚拟网络网关资源的引用。 |
|
properties.virtualNetworkGateway2 |
对虚拟网络网关资源的引用。 |
|
tags |
object |
资源标记。 |
type |
string |
资源类型。 |
VirtualNetworkGatewayConnectionMode
网关连接类型。
值 | 说明 |
---|---|
Default | |
InitiatorOnly | |
ResponderOnly |
VirtualNetworkGatewayConnectionProtocol
用于此连接的连接协议。
值 | 说明 |
---|---|
IKEv1 | |
IKEv2 |
VirtualNetworkGatewayConnectionStatus
虚拟网络网关连接状态。
值 | 说明 |
---|---|
Connected | |
Connecting | |
NotConnected | |
Unknown |
VirtualNetworkGatewayConnectionType
网关连接类型。
值 | 说明 |
---|---|
ExpressRoute | |
IPsec | |
VPNClient | |
Vnet2Vnet |
VirtualNetworkGatewayListConnectionsResult
VirtualNetworkGatewayListConnections API 服务调用的响应。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于获取下一组结果的 URL。 |
value |
资源组中存在的 VirtualNetworkGatewayConnection 资源的列表。 |