NetworkExtensions.GetLocalNetworkGatewayAsync Método

Definição

Obtém o gateway de rede local especificado em um grupo de recursos.

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

Parâmetros

resourceGroupResource
ResourceGroupResource

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

localNetworkGatewayName
String

O nome do gateway de rede local.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

localNetworkGatewayName é nulo.

Aplica-se a