你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PeeringExtensions.InvokeLookingGlassAsync 方法

定义

运行外观玻璃功能

  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Peering/lookingGlass
  • 操作IdLookingGlass_Invoke
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))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

command
LookingGlassCommand

要执行的命令:ping、traceroute、bgpRoute。

sourceType
LookingGlassSourceType

源的类型:Edge 站点或 Azure 区域。

sourceLocation
String

源的位置。

destinationIP
String

目标的 IP 地址。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

sourceLocationdestinationIP 为 null。

适用于