Compartir a través de


OperationalInsightsExtensions.GetLogAnalyticsQueryPackAsync Método

Definición

Devuelve un queryPack de Log Analytics.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
  • IdQueryPacks_Get de operaciones
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

Instancia ResourceGroupResource en la que se ejecutará el método.

queryPackName
String

Nombre del recurso QueryPack de Log Analytics.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

queryPackName es una cadena vacía y se esperaba que no estuviera vacía.

queryPackName es null.

Se aplica a