Partilhar via


VpnGatewayResource.GetVpnConnectionAsync(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}
  • IdVpnConnections_Get de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource>> GetVpnConnectionAsync (string connectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVpnConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource>>
override this.GetVpnConnectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource>>
Public Overridable Function GetVpnConnectionAsync (connectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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 era esperado que não estivesse vazio.

connectionName é nulo.

Aplica-se a