REST API - lookupQueryByTag

The table summarizes the REST API - lookupQueryByTag.

Request

Format
GET <baseurl>/audit/query/lookup/<tag>
Path parameters tag: Name that was given to the query when it was registered with the registerQuery operation.

Response

JSON Returns a JSON representation of the content of a QueryInfo element.
XML Returns the content of a QueryInfo element (from the EventCollectorQueryService schema)

Example

Request
GET <baseurl>/audit/query/lookup/EventTag123
Response
{
  "xml-fragment": {
    "query": {
      "correlate": "false",
      "filter": "severity='AUDIT'",
      "requireAllAttributes": "false"
    },
    "identifier": {
      "guid": "1",
      "tag": "EventTag123"
    }
  }
}