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 ¶ |
⚶ Changes
{ "#id": "Query_Batch", "$parameters": { "body": { "$properties": { "requests": { "$properties": [ { "#name": "path", "Description": { "new": "The query path of a single request in a batch.", "old": "The query path of a single request in a batch, defaults to /query" }, "Required": { "new": true, "old": false }, "$enum": { "new": [], "old": [ [ "/query", "" ] ] } }, { "#name": "method", "Description": { "new": "The method of a single request in a batch, defaults to GET", "old": "The method of a single request in a batch, defaults to POST" }, "Required": { "new": true, "old": false }, "$enum": { "new": [], "old": [ [ "POST", "" ] ] } } ] } } } } }
⚼ Request
POST:
/$batch
{
body:
}
{
,
requests:
}
[
]
,
{
,
id:
string
,
headers:
object
,
body:
{
,
query:
string
,
timespan:
string
,
workspaces:
}
[
,
string
,
]
path:
string
,
method:
string
,
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
,
}