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.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/modsec_get_configs
Request samples
whmapi1 --output=jsonpretty \
  modsec_get_configs
Response samples
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
    }
}