Partager via


OperationalInsightsExtensions.CreateOrUpdateWithoutNameQueryPack Méthode

Définition

Crée un QueryPack Log Analytics. Remarque : vous ne pouvez pas spécifier une valeur différente pour InstrumentationKey ou AppId dans l’opération Put.

  • Chemin de la requête/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks
  • IdQueryPacks_CreateOrUpdateWithoutName d’opération
public static Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource> CreateOrUpdateWithoutNameQueryPack (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateWithoutNameQueryPack : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackData * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>
<Extension()>
Public Function CreateOrUpdateWithoutNameQueryPack (resourceGroupResource As ResourceGroupResource, data As LogAnalyticsQueryPackData, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LogAnalyticsQueryPackResource)

Paramètres

resourceGroupResource
ResourceGroupResource

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

data
LogAnalyticsQueryPackData

Propriétés qui doivent être spécifiées pour créer ou mettre à jour un QueryPack Log Analytics.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

data a la valeur null.

S’applique à