Compartilhar via


OperationalInsightsExtensions.GetLogAnalyticsQueryPack Método

Definição

Retorna um QueryPack do Log Analytics.

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

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância na qual 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 era esperado que não estivesse vazio.

queryPackName é nulo.

Aplica-se a