This function adds a new ModSecurity™ vendor rule set to the server.
Important:
When you disable the Web Server role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ modsec_add_vendor \ url='https://example.com/update/meta_MyVendor.yaml'
{- "data": {
- "cpanel_provided": 0,
- "description": "This is an example of a custom vendor set (updated)",
- "dist_md5": "307cb5320441ebd712e5581d12100dc9",
- "dist_sha512": "b55c09bb1835ed4209f0f3ea4a70d099665363f23d3819c0369be429438d675ba2c749dcefdb85cee682ee0bf485558e67d0b0965fe4799865529d943e8e14cb",
- "enabled": 1,
- "inst_dist": "MyVendor-2",
- "installed": 1,
- "name": "My Vendor",
- "path": "/usr/local/apache/conf/modsec_vendor_configs/MyVendor",
- "supported_versions": [
- "2.7.5",
- "2.7.7",
- "2.8.0",
- "2.9.0",
- "2.9.1",
- "2.9.2",
- "2.9.3"
], - "vendor_id": "MyVendor",
}, - "metadata": {
- "command": "modsec_add_vendor",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}