Partager via


OperationalInsightsExtensions.GetLogAnalyticsQueryPackAsync Méthode

Définition

Retourne un QueryPack Log Analytics.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
  • IdQueryPacks_Get d’opération
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))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

queryPackName
String

Nom de la ressource QueryPack Log Analytics.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

queryPackName est une chaîne vide et devait être non vide.

queryPackName a la valeur null.

S’applique à