Creates a new SQL query for execution. Returns a query ID that can be used to check execution status.
Query Created
Bad request
Unauthorized
Internal server error
{- "query": "SELECT * FROM devices WHERE state = 'PROVISIONED'"
}
{- "content": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "running"
}
}
Returns the current status of a query and its results if available.
Query Status
Bad request
Unauthorized
Query not found
Internal server error
{- "content": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "running",
- "result": "string"
}
}