This function discards the staged ModSecurity™ rule changes, if present, for all of the configuration files.
Important:
When you disable the Web Server role, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ modsec_discard_all_rule_changes
{- "data": {
- "failed": [
- "modsec_vendor_configs/MyVendor/one.conf"
], - "outcomes": [
- {
- "config": "modsec_vendor_configs/MyVendor/one.conf",
- "exception": "The system could not remove the file /usr/local/apache/conf/modsec_vendor_configs/MyVendor/one.conf.STAGE: Invalid argument\n",
- "ok": 0
}
]
}, - "metadata": {
- "command": "modsec_discard_all_rule_changes",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}