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
Query Parameters
  • Execute a specific query and returns a query response as a JSON. Query parameter ???applicationName??? is madatory.
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

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
    }
  ]
}"
Back to Top