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.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  modsec_is_installed

Response samples

Content type
application/json
{
  • "data": {
    • "data": {
      • "installed": 1
      }
    },
  • "metadata": {
    • "command": "modsec_is_installed",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}