This function returns ModSecurity's™ status for a cPanel account's domains. **Important:** When you disable the [WebServer role](https://go.cpanel.net/serverroles#roles), the system **disables** this function.
api.docs.cpanel.net
You could use that API call to run a loop through the domains on the system to get their status.