Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OperationalInsightsExtensions.CreateOrUpdateWithoutNameQueryPack 方法

定义

创建 Log Analytics QueryPack。 注意:不能在 Put 操作中为 InstrumentationKey 或 AppId 指定其他值。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks
  • 操作IdQueryPacks_CreateOrUpdateWithoutName
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)

参数

resourceGroupResource
ResourceGroupResource

方法 ResourceGroupResource 将对其执行的实例。

data
LogAnalyticsQueryPackData

需要指定以创建或更新 Log Analytics QueryPack 的属性。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

data 为 null。

适用于