Compartilhar via


NetworkExtensions.GetVpnGatewayAsync Método

Definição

Recupera os detalhes de um gateway de VPN de wan virtual.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}
  • IdVpnGateways_Get de operação
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VpnGatewayResource>> GetVpnGatewayAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string gatewayName, System.Threading.CancellationToken cancellationToken = default);
static member GetVpnGatewayAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.VpnGatewayResource>>
<Extension()>
Public Function GetVpnGatewayAsync (resourceGroupResource As ResourceGroupResource, gatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VpnGatewayResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual o método será executado.

gatewayName
String

O nome do gateway.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

gatewayName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

gatewayName é nulo.

Aplica-se a