This topic describes the GET command in VMware Tanzu GemFire to list all parameterized queries by ID or name.
http://<hostname_or_http-service-bind-address>:<http-service-port>/gemfire-api/v1/queries
None
Request Payload: null
GET /gemfire-api/v1/queries/
Accept: application/json
Response Payload: application/json
200 OK
Content-Type: application/json
Location: http://localhost:8080/gemfire-api/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"
}
]
}
Status Code | Description |
---|---|
401 UNAUTHORIZED | Invalid Username or Password |
403 FORBIDDEN | Insufficient privileges for operation |
500 INTERNAL SERVER ERROR | Error encountered at Tanzu GemFire server. Check the HTTP response body for a stack trace of the exception. |