Return ModSecurity installation status

This function checks whether ModSecurity™ is installed on a server.

Important:

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

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/ModSecurity/has_modsecurity_installed
Request samples
uapi --output=jsonpretty \
  --user=username \
  ModSecurity \
  has_modsecurity_installed
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "has_modsecurity_installed",
  • "module": "ModSecurity",
  • "result": {
    • "data": {
      • "installed": 1
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}