Description

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

Examples




https://hostname.example.com:2087/cpsess##########/json-api/modsec_get_configs_with_changes_pending?api.version=1




https://hostname.example.com:2087/cpsess##########/xml-api/modsec_get_configs_with_changes_pending?api.version=1




whmapi1 modsec_get_configs_with_changes_pending



{
    "data": {
        "configs": [
            "modsec2.user.conf",
            "modsec_vendor_configs/vendor_test.conf"
        ]
    },
    "metadata": {
        "version": 1,
        "reason": "OK",
        "result": 1,
        "command": "modsec_get_configs_with_changes_pending"
    }
}




<result>
   <data>
      <configs>modsec2.user.conf</configs>
      <configs>modsec_vendor_configs/vendor_test.conf</configs>
   </data>
   <metadata>
      <version>1</version>
      <reason>OK</reason>
      <result>1</result>
      <command>modsec_get_configs_with_changes_pending</command>
   </metadata>
</result>



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
configsarrayAn array of ModSecurity configuration files.An array of one or more ModSecurity configuration file names.
modsec2.user.conf