Skip to main content

GET /geode/v1/queries

List all parameterized queries by ID or name.

Resource URL

http://<hostname_or_http-service-bind-address>:<http-service-port>/geode/v1/queries

Parameters

None

Example Request

Request Payload: null
GET /geode/v1/queries/
Accept: application/json

Example Response


Response Payload: application/json

200 OK
Content-Type: application/json
Location: http://localhost:8080/geode/v1/queries

{
"queries": [
{
"id": "selectCustomer",
"oql": "SELECT c FROM /customers c WHERE c.customerId = $1"
},
{
"id": "selectHighRollers",
"oql": "SELECT DISTINCT c FROM /customers c, /orders o WHERE o.totalprice > $1 AND c.customerId = o.customerId"
}
]
}

Error Codes

Status CodeDescription
401 UNAUTHORIZEDInvalid Username or Password
403 FORBIDDENInsufficient privileges for operation
500 INTERNAL SERVER ERRORError encountered at Geode server. Check the HTTP response body for a stack trace of the exception.