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.

Authorizations:

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  modsec_get_configs_with_changes_pending

Response samples

Content type
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
    }
}