MockablePeeringSubscriptionResource.InvokeLookingGlassAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Run looking glass functionality
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Peering/lookingGlass
- Operation Id: LookingGlass_Invoke
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Peering.Models.LookingGlassOutput>> InvokeLookingGlassAsync (Azure.ResourceManager.Peering.Models.LookingGlassCommand command, Azure.ResourceManager.Peering.Models.LookingGlassSourceType sourceType, string sourceLocation, string destinationIP, System.Threading.CancellationToken cancellationToken = default);
abstract member InvokeLookingGlassAsync : 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>>
override this.InvokeLookingGlassAsync : 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>>
Public Overridable Function InvokeLookingGlassAsync (command As LookingGlassCommand, sourceType As LookingGlassSourceType, sourceLocation As String, destinationIP As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LookingGlassOutput))
Parameters
- command
- LookingGlassCommand
The command to be executed: ping, traceroute, bgpRoute.
- sourceType
- LookingGlassSourceType
The type of the source: Edge site or Azure Region.
- sourceLocation
- String
The location of the source.
- destinationIP
- String
The IP address of the destination.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
sourceLocation
or destinationIP
is null.
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.