This function returns the metadata for a ModSecurity™ vendor 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_preview_vendor \ url='https://www.example.com/vendor1rules/meta_vendor1.yaml'
{- "data": {
- "cpanel_provided": 0,
- "description": "This is the Vendor1 ModSecurity Core Rule Set.",
- "dist_md5": "307cb5320441ebd712e5581d12100dc9",
- "dist_sha512": "b55c09bb1835ed4209f0f3ea4a70d099665363f23d3819c0369be429438d675ba2c749dcefdb85cee682ee0bf485558e67d0b0965fe4799865529d943e8e14cb",
- "installed": 1,
- "name": "Vendor1 ModSecurity Core Rule Set",
- "path": "/usr/local/apache/conf/modsec_vendor_configs/vendor1",
- "supported_versions": [
- "2.9.1",
- "2.9.2",
- "2.9.3"
], - "vendor_id": "vendor1",
}, - "metadata": {
- "command": "modsec_preview_vendor",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}