QueryPacks interface

Interface representing a QueryPacks.

Methods

createOrUpdate(string, string, LogAnalyticsQueryPack, QueryPacksCreateOrUpdateOptionalParams)

Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

createOrUpdateWithoutName(string, LogAnalyticsQueryPack, QueryPacksCreateOrUpdateWithoutNameOptionalParams)

Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

delete(string, string, QueryPacksDeleteOptionalParams)

Deletes a Log Analytics QueryPack.

get(string, string, QueryPacksGetOptionalParams)

Returns a Log Analytics QueryPack.

list(QueryPacksListOptionalParams)

Gets a list of all Log Analytics QueryPacks within a subscription.

listByResourceGroup(string, QueryPacksListByResourceGroupOptionalParams)

Gets a list of Log Analytics QueryPacks within a resource group.

updateTags(string, string, TagsResource, QueryPacksUpdateTagsOptionalParams)

Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.

Method Details

createOrUpdate(string, string, LogAnalyticsQueryPack, QueryPacksCreateOrUpdateOptionalParams)

Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

function createOrUpdate(resourceGroupName: string, queryPackName: string, logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, options?: QueryPacksCreateOrUpdateOptionalParams): Promise<LogAnalyticsQueryPack>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

queryPackName

string

The name of the Log Analytics QueryPack resource.

logAnalyticsQueryPackPayload
LogAnalyticsQueryPack

Properties that need to be specified to create or update a Log Analytics QueryPack.

options
QueryPacksCreateOrUpdateOptionalParams

The options parameters.

Returns

createOrUpdateWithoutName(string, LogAnalyticsQueryPack, QueryPacksCreateOrUpdateWithoutNameOptionalParams)

Creates a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

function createOrUpdateWithoutName(resourceGroupName: string, logAnalyticsQueryPackPayload: LogAnalyticsQueryPack, options?: QueryPacksCreateOrUpdateWithoutNameOptionalParams): Promise<LogAnalyticsQueryPack>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

logAnalyticsQueryPackPayload
LogAnalyticsQueryPack

Properties that need to be specified to create or update a Log Analytics QueryPack.

options
QueryPacksCreateOrUpdateWithoutNameOptionalParams

The options parameters.

Returns

delete(string, string, QueryPacksDeleteOptionalParams)

Deletes a Log Analytics QueryPack.

function delete(resourceGroupName: string, queryPackName: string, options?: QueryPacksDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

queryPackName

string

The name of the Log Analytics QueryPack resource.

options
QueryPacksDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, QueryPacksGetOptionalParams)

Returns a Log Analytics QueryPack.

function get(resourceGroupName: string, queryPackName: string, options?: QueryPacksGetOptionalParams): Promise<LogAnalyticsQueryPack>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

queryPackName

string

The name of the Log Analytics QueryPack resource.

options
QueryPacksGetOptionalParams

The options parameters.

Returns

list(QueryPacksListOptionalParams)

Gets a list of all Log Analytics QueryPacks within a subscription.

function list(options?: QueryPacksListOptionalParams): PagedAsyncIterableIterator<LogAnalyticsQueryPack, LogAnalyticsQueryPack[], PageSettings>

Parameters

options
QueryPacksListOptionalParams

The options parameters.

Returns

listByResourceGroup(string, QueryPacksListByResourceGroupOptionalParams)

Gets a list of Log Analytics QueryPacks within a resource group.

function listByResourceGroup(resourceGroupName: string, options?: QueryPacksListByResourceGroupOptionalParams): PagedAsyncIterableIterator<LogAnalyticsQueryPack, LogAnalyticsQueryPack[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
QueryPacksListByResourceGroupOptionalParams

The options parameters.

Returns

updateTags(string, string, TagsResource, QueryPacksUpdateTagsOptionalParams)

Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.

function updateTags(resourceGroupName: string, queryPackName: string, queryPackTags: TagsResource, options?: QueryPacksUpdateTagsOptionalParams): Promise<LogAnalyticsQueryPack>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

queryPackName

string

The name of the Log Analytics QueryPack resource.

queryPackTags
TagsResource

Updated tag information to set into the QueryPack instance.

options
QueryPacksUpdateTagsOptionalParams

The options parameters.

Returns