Enable ModSecurity vendor rules

This function enables a ModSecurity™ vendor rule set.

Note:

This function will not enable vendor configuration files that you individually disable.

Important:

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

Authorizations:
query Parameters
vendor_id
required
string

The vendor's unique short name.

Example: vendor_id=SomeVendor

Responses

Response Schema: application/json
data
object
object

Request samples

whmapi1 --output=jsonpretty \
  modsec_enable_vendor \
  vendor_id='SomeVendor'

Response samples

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