Partilhar via


VpnGatewayResource.GetVpnConnection(String, CancellationToken) Método

Definição

Recupera os detalhes de uma conexão vpn.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}
  • Operação IdVpnConnections_Get
public virtual Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource> GetVpnConnection (string connectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVpnConnection : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource>
override this.GetVpnConnection : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource>
Public Overridable Function GetVpnConnection (connectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of VpnConnectionResource)

Parâmetros

connectionName
String

O nome da conexão vpn.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

connectionName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

connectionName é nulo.

Aplica-se a