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
,
}