Return all ModSecurity configuration files

This function lists ModSecurity™ configuration files. The system stores the configuration files in the /usr/local/apache/conf/modsec_vendor_configs directory.

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_get_configs

Response samples

Content type
application/json
{
  • "data": {
    • "configs": [
      • {
        • "active": 1,
        • "config": "modsec_vendor_configs/MyVendor/one.conf",
        • "vendor_id": "MyVendor"
        }
      ]
    },
  • "metadata": {
    • "command": "modsec_get_configs",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}