Commit 67e2e3e2 authored by Ad Schellevis's avatar Ad Schellevis

(ids) rename configd query rules action

parent e4f04663
......@@ -106,7 +106,7 @@ class SettingsController extends ApiControllerBase
// request list of installed rules
$backend = new Backend();
$response = $backend->configdpRun("ids list installedrules", array($itemsPerPage,
$response = $backend->configdpRun("ids query rules", array($itemsPerPage,
($currentPage-1)*$itemsPerPage,
$searchPhrase, $sortStr));
......@@ -143,7 +143,7 @@ class SettingsController extends ApiControllerBase
{
// request list of installed rules
$backend = new Backend();
$response = $backend->configdpRun("ids list installedrules", array(1, 0,'sid/'.$sid));
$response = $backend->configdpRun("ids query rules", array(1, 0,'sid/'.$sid));
$data = json_decode($response, true);
if ($data != null && array_key_exists("rows", $data) && count($data['rows'])>0) {
......
[list.installedrules]
command:/usr/local/opnsense/scripts/suricata/queryInstalledRules.py
parameters:/limit %s /offset %s /filter %s /sort_by %s
type:script_output
message:request installed suricata rules
[list.classtypes]
command:/usr/local/opnsense/scripts/suricata/listClasstypes.py
parameters:
......@@ -16,6 +10,12 @@ parameters:
type:script
message:install suricata rules
[query.rules]
command:/usr/local/opnsense/scripts/suricata/queryInstalledRules.py
parameters:/limit %s /offset %s /filter %s /sort_by %s
type:script_output
message:request installed suricata rules
[query.alerts]
command:/usr/local/opnsense/scripts/suricata/queryAlertLog.py
parameters:/limit %s /offset %s /filter %s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment