Remove all staged ModSecurity rule changes

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.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/modsec_discard_all_rule_changes
Request samples
whmapi1 --output=jsonpretty \
  modsec_discard_all_rule_changes
Response samples
application/json
{
  • "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
    }
}