Microsoft.OperationalInsights (preview:2019-09-01)

2025/10/23 • 13 new, 13 deleted methods

Queries_List (new)
Description Gets a list of Queries defined within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
api-version: string ,
$top: integer ,
includeBody: boolean ,
$skipToken: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Get (new)
Description Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Put (new)
Description Adds or Updates a specific Query within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
QueryPayload:
{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Update (new)
Description Adds or Updates a specific Query within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
QueryPayload:
{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Delete (new)
Description Deletes a specific Query defined within an Log Analytics QueryPack.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Operations_List (new)
Description Lists all of the available insights REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.OperationalInsights/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
isDataAction: boolean ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
origin: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
QueryPacks_List (new)
Description Gets a list of all Log Analytics QueryPacks within a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
,
]
,
nextLink: string ,
}
QueryPacks_ListByResourceGroup (new)
Description Gets a list of Log Analytics QueryPacks within a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
,
]
,
nextLink: string ,
}
QueryPacks_Delete (new)
Description Deletes a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{}

⚐ Response (204)

{}
QueryPacks_Get (new)
Description Returns a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
QueryPacks_CreateOrUpdate (new)
Description Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
LogAnalyticsQueryPackPayload:
{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
QueryPacks_UpdateTags (new)
Description Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
QueryPackTags:
{
tags: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
Queries_List (removed)
Description Gets a list of Queries defined within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
api-version: string ,
$top: integer ,
includeBody: boolean ,
$skipToken: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Get (removed)
Description Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Put (removed)
Description Adds or Updates a specific Query within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
QueryPayload:
{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Update (removed)
Description Adds or Updates a specific Query within a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
QueryPayload:
{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
id: string ,
displayName: string ,
timeCreated: string ,
timeModified: string ,
author: string ,
description: string ,
body: string ,
related:
{
categories:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
tags: object ,
properties: object ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Queries_Delete (removed)
Description Deletes a specific Query defined within an Log Analytics QueryPack.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}/queries/{id}
{
subscriptionId: string ,
resourceGroupName: string ,
queryPackName: string ,
id: string ,
api-version: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
Operations_List (removed)
Description Lists all of the available insights REST API operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.OperationalInsights/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
isDataAction: boolean ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
origin: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
QueryPacks_List (removed)
Description Gets a list of all Log Analytics QueryPacks within a subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/queryPacks
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
,
]
,
nextLink: string ,
}
QueryPacks_ListByResourceGroup (removed)
Description Gets a list of Log Analytics QueryPacks within a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
value:
[
{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
,
]
,
nextLink: string ,
}
QueryPacks_Delete (removed)
Description Deletes a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{}

⚐ Response (204)

{}
QueryPacks_Get (removed)
Description Returns a Log Analytics QueryPack.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
QueryPacks_CreateOrUpdate (removed)
Description Creates (or updates) a Log Analytics QueryPack. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
LogAnalyticsQueryPackPayload:
{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}
QueryPacks_UpdateTags (removed)
Description Updates an existing QueryPack's tags. To update other fields use the CreateOrUpdate method.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks/{queryPackName}
{
resourceGroupName: string ,
api-version: string ,
subscriptionId: string ,
queryPackName: string ,
QueryPackTags:
{
tags: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}

⚐ Response (200)

{
properties:
{
queryPackId: string ,
timeCreated: string ,
timeModified: string ,
provisioningState: string ,
}
,
}