Perform search (JSON)

post

/serviceapi/querylanguage.query

Perform a search by using the ExportRequest object. The only mandatory body parameter is queryString. To learn more about how queries work, see Get Started With Log Analytics.

This API will output the query results as a JSON.

Request

Supported Media Types
Header Parameters
Body ()
Query to be executed.
Root Schema : QueryRequest
Type: object
Show Source
Nested Schema : TargetFilters
Type: object
Show Source
Nested Schema : TimeFilter
Type: object
Discriminator: type
Nested Schema : filters
Type: array
Show Source
Nested Schema : TargetFilter
Type: object
Show Source
Nested Schema : values
Type: array
Show Source
Back to Top

Response

Supported Media Types

200 Response

Operation succeeded
Body ()
Root Schema : QueryResultResponse
Type: object
Show Source
Nested Schema : columns
Type: array
Show Source
Nested Schema : fields
Type: array
Show Source
Nested Schema : Insights
Type: object
Show Source
Nested Schema : results
Type: array
Show Source
Nested Schema : ColumnDescriptor
Type: object
Discriminator: type
Show Source
Nested Schema : values
Type: array
Show Source
Nested Schema : FieldValue
Type: object
Show Source
Nested Schema : internalValue
Type: object
Nested Schema : fields
Type: array
Show Source
Nested Schema : sampledValues
Type: array
Show Source
Nested Schema : InsightsField
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object

400 Response

Bad request. See response body for explanation.
Body ()
Root Schema : InternalErrorResponse
Type: object
Show Source
Nested Schema : messages
Type: array
Show Source
Nested Schema : violations
Type: array
Show Source
Nested Schema : ParserViolation
Type: object
Show Source

403 Response

Forbidden. User does not have required privileges.

500 Response

Internal server error. See response body for explanation.
Body ()
Root Schema : InternalErrorResponse
Type: object
Show Source
Nested Schema : messages
Type: array
Show Source
Nested Schema : violations
Type: array
Show Source
Nested Schema : ParserViolation
Type: object
Show Source
Back to Top