This function checks whether ModSecurity™ is installed on a server.
Important:
When you disable the Web Server role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ ModSecurity \ has_modsecurity_installed
{- "apiversion": 3,
- "func": "has_modsecurity_installed",
- "module": "ModSecurity",
- "result": {
- "data": {
- "installed": 1
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}