Return staged ModSecurity configuration files

This function lists the ModSecurity™ configuration files that have staged changes.

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_get_configs_with_changes_pending
Request samples
whmapi1 --output=jsonpretty \
  modsec_get_configs_with_changes_pending
Response samples
application/json
{
  • "data": {
    • "configs": [
      • "modsec2.user.conf",
      • "modsec2.user1.conf",
      • "modsec2.user2.conf"
      ]
    },
  • "metadata": {
    • "command": "modsec_get_configs_with_changes_pending",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}