REST API - registerQuery
The table summarizes the REST API - registerQuery.
Request
| Format | POST <baseurl>/audit/query/register/<tag> |
| Path parameters | tag: Tag of the query to be registered. Must be unique among registered queries on the system. |
| Query parameters |
|
| Body | Query element (mandatory): Text of the query to be registered. |
Response
| JSON | Returns a JSON representation of the content of a QueryIdentifier element. |
| XML | Returns the content of a QueryIdentifier element (from the EventCollectorQueryService schema) |
Example
| Request | POST <baseurl>/audit/query/register/Q32 |
| Request body | <Query> <filter>severity='AUDIT'</filter> </Query> |
| Response | {
"xml-fragment": {
"guid": "1",
"tag": "Q32"
}
}
|