ModSecurity
Server Settings
Return ModSecurity configuration file
This function retrieves a ModSecurity™ configuration file's contents.
Important:
When you disable the Web Server role, the system disables this function.
get/modsec_get_config_text
Query parameters
configstring required
Example:modsec2.example.conf
The ModSecurity configuration file's name.
Response
HTTP Request was successful.
Example response
{
"data": {
"text": "SecRule REQUEST_URI \"example\" \"deny:id:123456789\" SecAction \"pass:auditlog:id:444444444\""
},
"metadata": {
"command": "modsec_get_config_text",
"reason": "OK",
"result": 1,
"version": 1
}
}