Partager via


NetworkExtensions.GetApplicationGatewayAsync Méthode

Définition

Obtient la passerelle d’application spécifiée.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}
  • IdApplicationGateways_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ApplicationGatewayResource>> GetApplicationGatewayAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string applicationGatewayName, System.Threading.CancellationToken cancellationToken = default);
static member GetApplicationGatewayAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.ApplicationGatewayResource>>
<Extension()>
Public Function GetApplicationGatewayAsync (resourceGroupResource As ResourceGroupResource, applicationGatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApplicationGatewayResource))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

applicationGatewayName
String

Nom de la passerelle Application Gateway.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

applicationGatewayName est une chaîne vide et devait être non vide.

applicationGatewayName a la valeur null.

S’applique à