Enable ModSecurity vendor configuration files

This function enables a ModSecurity™ vendor's configuration files.

Important:

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

SecurityBasicAuth
Request
query Parameters
vendor_id
required
string

The vendor's unique short name.

Example: vendor_id=SomeVendor
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/modsec_enable_vendor_configs
Request samples
whmapi1 --output=jsonpretty \
  modsec_enable_vendor_configs \
  vendor_id='SomeVendor'
Response samples
application/json
{
  • "data": {
    • "outcomes": [
      • {
        • "active": 1,
        • "config": "modsec_vendor_configs/SomeVendor/example.conf",
        • "exception": "This is an error message.",
        • "ok": 1
        }
      ]
    },
  • "metadata": {
    • "command": "modsec_enable_vendor_configs",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}