Compartilhar via


OperationalInsightsExtensions.GetLogAnalyticsQueryPackAsync Método

Definição

Retorna um QueryPack do Log Analytics.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
  • Operação IdQueryPacks_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>> GetLogAnalyticsQueryPackAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string queryPackName, System.Threading.CancellationToken cancellationToken = default);
static member GetLogAnalyticsQueryPackAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>>
<Extension()>
Public Function GetLogAnalyticsQueryPackAsync (resourceGroupResource As ResourceGroupResource, queryPackName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LogAnalyticsQueryPackResource))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

queryPackName
String

O nome do recurso QueryPack do Log Analytics.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

queryPackName é uma cadeia de caracteres vazia e esperava-se que não estivesse vazia.

queryPackName é nulo.

Aplica-se a