Partager via


PeeringExtensions.InvokeLookingGlassAsync Méthode

Définition

Fonctionnalité d’exécution en verre de recherche

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.Peering/lookingGlass
  • IdLookingGlass_Invoke d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Peering.Models.LookingGlassOutput>> InvokeLookingGlassAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Peering.Models.LookingGlassCommand command, Azure.ResourceManager.Peering.Models.LookingGlassSourceType sourceType, string sourceLocation, string destinationIP, System.Threading.CancellationToken cancellationToken = default);
static member InvokeLookingGlassAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Peering.Models.LookingGlassCommand * Azure.ResourceManager.Peering.Models.LookingGlassSourceType * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Peering.Models.LookingGlassOutput>>
<Extension()>
Public Function InvokeLookingGlassAsync (subscriptionResource As SubscriptionResource, command As LookingGlassCommand, sourceType As LookingGlassSourceType, sourceLocation As String, destinationIP As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LookingGlassOutput))

Paramètres

subscriptionResource
SubscriptionResource

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

command
LookingGlassCommand

Commande à exécuter : ping, traceroute, bgpRoute.

sourceType
LookingGlassSourceType

Type de la source : Site edge ou Région Azure.

sourceLocation
String

Emplacement de la source.

destinationIP
String

Adresse IP de la destination.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

sourceLocation ou destinationIP est null.

S’applique à