Logs
Get SQL for log query
Changed onBuild and return the SQL statement that POST /v1/logs/{log-name}/query would execute for the same request body, without running it. Intended for troubleshooting and for building reports outside of NetXMS.
The statement reflects the caller's object access constraints and includes the row limit offset + limit, because paging is done by executing the statement as is and then skipping the first offset records.
post/v1/logs/{log-name}/query-sql
Request
- Base URLhttp://127.0.0.1:8000
- URLhttp://127.0.0.1:8000/v1/logs/{log-name}/query-sql
- AuthHTTP bearer
Request body
Response
SQL statement built successfully
Changes
- info
endpoint added
- info