This documentation is for WSO2 Stream Processor 4.4.0 (the latest version of WSO2 SP. View documentation for the Streaming Integrator, the successor of WSO2 SP.

All docs This doc
                                                                                                                                                                                                                                                                                                                                   
||
Skip to end of metadata
Go to start of metadata

Query records in Siddhi store

Overview

DescriptionQueries records in the Siddhi store. For more information, see Managing Stored Data via REST API.
API Context/stores/query
HTTP MethodPOST
Request/Response Formatapplication/json
AuthenticationBasic
Usernameadmin
Passwordadmin
RuntimeWorker

curl command syntax

curl -X POST https://localhost:9443/stores/query -H "content-type: application/json" -u "admin:admin" 
-d '{"appName" : "AggregationTest", "query" : "from stockAggregation select *" }' -k


Sample curl command

curl -X POST https://localhost:9443/stores/query -H "content-type: application/json" -u "admin:admin" -d '{"appName" : "RoomService", "query" : "select 10 as roomNumber, 1 as arrival update RoomTypeTable  set RoomTypeTable.people = RoomTypeTable.people + arrival on RoomTypeTable.roomNo == roomNumber;" }' -k

Sample output

 

Response

HTTP Status Code

200 or 404

For descriptions of the HTTP status codes, see HTTP Status Codes.

  • No labels