This function updates a vendor with the current version of the rule set.
Important:
When you disable the Web Server role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ modsec_update_vendor \ url='http://example.com/update/meta_MyVendor.yaml'
{- "data": {
- "diagnostics": {
- "added_configs": [
- "modsec_vendor_configs/MyVendor/three.conf"
], - "deleted_configs": [
- "modsec_vendor_configs/MyVendor/one.conf"
], - "new_configs": [
- {
- "active": 0,
- "config": "modsec_vendor_configs/MyVendor/two.conf",
- "vendor_id": "MyVendor"
}
], - "prev_configs": [
- {
- "config": "modsec_vendor_configs/MyVendor/two.conf"
}
]
}, - "vendor": {
- "cpanel_provided": 0,
- "description": "This is an example of a custom vendor set (updated).",
- "dist_md5": "ecafce1bf148532250a8d4743a8374d1",
- "enabled": 1,
- "inst_dist": "MyVendor-2",
- "installed": 1,
- "name": "My Vendor",
- "path": "/usr/local/apache/conf/modsec_vendor_configs/MyVendor",
- "vendor_id": "MyVendor",
}
}, - "metadata": {
- "command": "modsec_update_vendor",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}