latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

ModSecurity
Server Settings

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.

get/modsec_get_configs_with_changes_pending

Response

HTTP Request was successful.

Example response

{
  "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
  }
}