Execute a saved SQL query by query name
get
/PASService/rest/services/queries/{queryname}
Executes a specific query and returns the response
Request
Path Parameters
-
queryname: string
Query Name
Query Parameters
-
q(optional): string
Execute a specific query and returns a query response as a JSON. Query parameter ???applicationName??? is madatory.
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to execute a specific query and returns the response.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/queries/test"
Example Response Body
The following shows an example of the response body in JSON format:
"{ "count": 1, "offset": 1, "limit": 100, "results": [ { "1": 1 } ] }"