Compartilhar via


VpnConnectionCollection.GetAsync(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>> GetAsync (string connectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VpnConnectionResource>>
Public Overridable Function GetAsync (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