Return ModSecurity module status

This function checks whether the ModSecurity™ module is installed.

Important:

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/modsec_is_installed
Request samples
whmapi1 --output=jsonpretty \
  modsec_is_installed
Response samples
application/json
{
  • "data": {
    • "data": {
      • "installed": 1
      }
    },
  • "metadata": {
    • "command": "modsec_is_installed",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}