Compartilhar via


NetworkExtensions.GetExpressRouteGatewayAsync Método

Definição

Busca os detalhes de um gateway do ExpressRoute em um grupo de recursos.

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

Parâmetros

resourceGroupResource
ResourceGroupResource

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

expressRouteGatewayName
String

O nome do gateway do ExpressRoute.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

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

expressRouteGatewayName é nulo.

Aplica-se a