Microsoft.OperationalInsights (stable:v1)

2025/07/17 • 7 new methods

Query_GetWithResourceId (new)
Description Executes an Analytics query for data in the context of a resource. [Here](https://learn.microsoft.com/azure/azure-monitor/logs/api/azure-resource-queries) is an example for using POST with an Analytics query.
Reference Link ¶

⚼ Request

GET:  /{resourceId}/query
{
resourceId: string ,
query: string ,
timespan: string ,
}

⚐ Response (200)

{
tables:
[
{
name: string ,
columns:
[
{
name: string ,
type: enum ,
}
,
]
,
rows:
[
string ,
]
,
}
,
]
,
statistics: object ,
render: object ,
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: 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 ,
}
,
}
Query_ExecuteWithResourceId (new)
Description Executes an Analytics query for data in the context of a resource. [Here](https://learn.microsoft.com/azure/azure-monitor/logs/api/azure-resource-queries) is an example for using POST with an Analytics query.
Reference Link ¶

⚼ Request

POST:  /{resourceId}/query
{
resourceId: string ,
Prefer: string ,
body:
{
query: string ,
timespan: string ,
workspaces:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
tables:
[
{
name: string ,
columns:
[
{
name: string ,
type: enum ,
}
,
]
,
rows:
[
string ,
]
,
}
,
]
,
statistics: object ,
render: object ,
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: 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 ,
}
,
}
Query_Batch (new)
Description Executes a batch of Analytics queries for data. [Here](https://learn.microsoft.com/azure/azure-monitor/logs/api/batch-queries) is an example for using POST with an Analytics query.
Reference Link ¶

⚼ Request

POST:  /$batch
{
body:
{
requests:
[
{
id: string ,
headers: object ,
body:
{
query: string ,
timespan: string ,
workspaces:
[
string ,
]
,
}
,
path: enum ,
method: enum ,
workspace: string ,
}
,
]
,
}
,
}

⚐ Response (200)

{
responses:
[
{
id: string ,
status: integer ,
body:
{
tables:
[
{
name: string ,
columns:
[
{
name: string ,
type: enum ,
}
,
]
,
rows:
[
string ,
]
,
}
,
]
,
statistics: object ,
render: object ,
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: object ,
}
,
}
,
headers: 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 ,
}
,
}
Metadata_Get (new)
Description Retrieve the metadata information for the workspace, including its schema, functions, workspace info, categories etc.
Reference Link ¶

⚼ Request

GET:  /workspaces/{workspaceId}/metadata
{
workspaceId: string ,
}

⚐ Response (200)

{
categories:
[
{
id: string ,
displayName: string ,
description: string ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
queries:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
}
,
]
,
resourceTypes:
[
{
id: string ,
type: string ,
displayName: string ,
description: string ,
labels:
[
string ,
]
,
tags: object ,
properties: object ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
categories:
[
string ,
]
,
queries:
[
string ,
]
,
workspaces:
[
string ,
]
,
resources:
[
string ,
]
,
}
,
}
,
]
,
solutions:
[
{
id: string ,
name: string ,
displayName: string ,
description: string ,
tags: object ,
properties: object ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
categories:
[
string ,
]
,
queries:
[
string ,
]
,
workspaces:
[
string ,
]
,
}
,
}
,
]
,
tables:
[
{
id: string ,
name: string ,
description: string ,
timespanColumn: string ,
labels:
[
string ,
]
,
tags: object ,
properties: object ,
columns:
[
{
name: string ,
description: string ,
type: enum ,
isPreferredFacet: boolean ,
source: object ,
}
,
]
,
related:
{
categories:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
workspaces:
[
string ,
]
,
functions:
[
string ,
]
,
queries:
[
string ,
]
,
}
,
}
,
]
,
functions:
[
{
id: string ,
name: string ,
parameters: string ,
displayName: string ,
description: string ,
body: string ,
tags: object ,
properties: object ,
related:
{
tables:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
categories:
[
string ,
]
,
workspaces:
[
string ,
]
,
}
,
}
,
]
,
queries:
[
{
id: string ,
displayName: string ,
description: string ,
body: string ,
labels:
[
string ,
]
,
tags: object ,
properties: object ,
related:
{
categories:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
tables:
[
string ,
]
,
}
,
}
,
]
,
applications:
[
{
id: string ,
resourceId: string ,
name: string ,
region: string ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
}
,
}
,
]
,
workspaces:
[
{
id: string ,
resourceId: string ,
name: string ,
region: string ,
related:
{
tables:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
functions:
[
string ,
]
,
resources:
[
string ,
]
,
}
,
}
,
]
,
resources:
[
string ,
]
,
permissions:
[
{
workspaces:
[
{
resourceId: string ,
denyTables:
[
string ,
]
,
}
,
]
,
resources:
[
{
resourceId: string ,
denyTables:
[
string ,
]
,
}
,
]
,
applications:
[
{
resourceId: 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 ,
}
,
}
Metadata_Post (new)
Description Retrieve the metadata information for the workspace, including its schema, functions, workspace info, categories etc.
Reference Link ¶

⚼ Request

POST:  /workspaces/{workspaceId}/metadata
{
workspaceId: string ,
}

⚐ Response (200)

{
categories:
[
{
id: string ,
displayName: string ,
description: string ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
queries:
[
string ,
]
,
solutions:
[
string ,
]
,
}
,
}
,
]
,
resourceTypes:
[
{
id: string ,
type: string ,
displayName: string ,
description: string ,
labels:
[
string ,
]
,
tags: object ,
properties: object ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
categories:
[
string ,
]
,
queries:
[
string ,
]
,
workspaces:
[
string ,
]
,
resources:
[
string ,
]
,
}
,
}
,
]
,
solutions:
[
{
id: string ,
name: string ,
displayName: string ,
description: string ,
tags: object ,
properties: object ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
categories:
[
string ,
]
,
queries:
[
string ,
]
,
workspaces:
[
string ,
]
,
}
,
}
,
]
,
tables:
[
{
id: string ,
name: string ,
description: string ,
timespanColumn: string ,
labels:
[
string ,
]
,
tags: object ,
properties: object ,
columns:
[
{
name: string ,
description: string ,
type: enum ,
isPreferredFacet: boolean ,
source: object ,
}
,
]
,
related:
{
categories:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
workspaces:
[
string ,
]
,
functions:
[
string ,
]
,
queries:
[
string ,
]
,
}
,
}
,
]
,
functions:
[
{
id: string ,
name: string ,
parameters: string ,
displayName: string ,
description: string ,
body: string ,
tags: object ,
properties: object ,
related:
{
tables:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
categories:
[
string ,
]
,
workspaces:
[
string ,
]
,
}
,
}
,
]
,
queries:
[
{
id: string ,
displayName: string ,
description: string ,
body: string ,
labels:
[
string ,
]
,
tags: object ,
properties: object ,
related:
{
categories:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
tables:
[
string ,
]
,
}
,
}
,
]
,
applications:
[
{
id: string ,
resourceId: string ,
name: string ,
region: string ,
related:
{
tables:
[
string ,
]
,
functions:
[
string ,
]
,
}
,
}
,
]
,
workspaces:
[
{
id: string ,
resourceId: string ,
name: string ,
region: string ,
related:
{
tables:
[
string ,
]
,
solutions:
[
string ,
]
,
resourceTypes:
[
string ,
]
,
functions:
[
string ,
]
,
resources:
[
string ,
]
,
}
,
}
,
]
,
resources:
[
string ,
]
,
permissions:
[
{
workspaces:
[
{
resourceId: string ,
denyTables:
[
string ,
]
,
}
,
]
,
resources:
[
{
resourceId: string ,
denyTables:
[
string ,
]
,
}
,
]
,
applications:
[
{
resourceId: 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 ,
}
,
}
Query_Get (new)
Description Executes an Analytics query for data.
Reference Link ¶

⚼ Request

GET:  /workspaces/{workspaceId}/query
{
workspaceId: string ,
query: string ,
timespan: string ,
}

⚐ Response (200)

{
tables:
[
{
name: string ,
columns:
[
{
name: string ,
type: enum ,
}
,
]
,
rows:
[
string ,
]
,
}
,
]
,
statistics: object ,
render: object ,
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: 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 ,
}
,
}
Query_Execute (new)
Description Executes an Analytics query for data. [Here](https://learn.microsoft.com/azure/azure-monitor/logs/api/request-format) is an example for using POST with an Analytics query.
Reference Link ¶

⚼ Request

POST:  /workspaces/{workspaceId}/query
{
workspaceId: string ,
Prefer: string ,
body:
{
query: string ,
timespan: string ,
workspaces:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
tables:
[
{
name: string ,
columns:
[
{
name: string ,
type: enum ,
}
,
]
,
rows:
[
string ,
]
,
}
,
]
,
statistics: object ,
render: object ,
error:
{
code: string ,
message: string ,
details:
[
{
code: string ,
message: string ,
target: string ,
value: string ,
resources:
[
string ,
]
,
additionalProperties: object ,
}
,
]
,
innererror: string ,
additionalProperties: 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 ,
}
,
}