This function disables ModSecurity™ on specified domains.
Important:
When you disable the WebServer role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ ModSecurity \ disable_domains \ domains='example.com,dallas.example.com,galveston.example.com'
{- "apiversion": 3,
- "func": "disable_domains",
- "module": "ModSecurity",
- "result": {
- "data": [
- {
- "dependencies": [
- "dallas.com"
], - "domain": "dallas.example.com",
- "enabled": 0,
- "searchhint": "dallas.com",
- "type": "sub"
}, - {
- "dependencies": [
- "arkansas.com",
- "kansas.com",
- "nevada.com",
- "newmexico.com",
- "texas.com"
], - "domain": "example.com",
- "enabled": 0,
- "searchhint": "arkansas.com,kansas.com,nevada.com,newmexico.com,texas.com",
- "type": "main"
}, - {
- "dependencies": [
- "galveston.com"
], - "domain": "galveston.example.com",
- "enabled": 0,
- "searchhint": "galveston.com",
- "type": "sub"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}