Class: OPNsenseAPI::Core::IDS::Service
- Inherits:
-
Object
- Object
- OPNsenseAPI::Core::IDS::Service
- Includes:
- OPNsenseAPI::Core
- Defined in:
- lib/opnsense_api/core/ids/service.rb
Overview
Constant Summary collapse
- BASE_PATH =
'/ids/service'
Instance Method Summary collapse
- #drop_alert_log(body = {}) ⇒ Object
- #get_alert_info(alertid:, fileid: nil) ⇒ Object
- #get_alert_logs(params = {}) ⇒ Object
- #query_alerts(body = {}) ⇒ Object
- #reconfigure(body = {}) ⇒ Object
- #reload_rules(body = {}) ⇒ Object
- #restart(body = {}) ⇒ Object
- #start(body = {}) ⇒ Object
- #status(params = {}) ⇒ Object
- #stop(body = {}) ⇒ Object
- #update_rules(body = {}, wait: nil) ⇒ Object
Methods included from OPNsenseAPI::Core
Instance Method Details
#drop_alert_log(body = {}) ⇒ Object
27 28 29 |
# File 'lib/opnsense_api/core/ids/service.rb', line 27 def drop_alert_log(body = {}) @client.post("#{BASE_PATH}/dropAlertLog", body) end |
#get_alert_info(alertid:, fileid: nil) ⇒ Object
31 32 33 |
# File 'lib/opnsense_api/core/ids/service.rb', line 31 def get_alert_info(alertid:, fileid: nil) @client.get("#{BASE_PATH}/getAlertInfo/#{alertid}/#{fileid}") end |
#get_alert_logs(params = {}) ⇒ Object
35 36 37 |
# File 'lib/opnsense_api/core/ids/service.rb', line 35 def get_alert_logs(params = {}) @client.get("#{BASE_PATH}/getAlertLogs", params) end |
#query_alerts(body = {}) ⇒ Object
39 40 41 |
# File 'lib/opnsense_api/core/ids/service.rb', line 39 def query_alerts(body = {}) @client.post("#{BASE_PATH}/queryAlerts", body) end |
#reconfigure(body = {}) ⇒ Object
43 44 45 |
# File 'lib/opnsense_api/core/ids/service.rb', line 43 def reconfigure(body = {}) @client.post("#{BASE_PATH}/reconfigure", body) end |
#reload_rules(body = {}) ⇒ Object
47 48 49 |
# File 'lib/opnsense_api/core/ids/service.rb', line 47 def reload_rules(body = {}) @client.post("#{BASE_PATH}/reloadRules", body) end |
#restart(body = {}) ⇒ Object
51 52 53 |
# File 'lib/opnsense_api/core/ids/service.rb', line 51 def restart(body = {}) @client.post("#{BASE_PATH}/restart", body) end |
#start(body = {}) ⇒ Object
55 56 57 |
# File 'lib/opnsense_api/core/ids/service.rb', line 55 def start(body = {}) @client.post("#{BASE_PATH}/start", body) end |
#status(params = {}) ⇒ Object
59 60 61 |
# File 'lib/opnsense_api/core/ids/service.rb', line 59 def status(params = {}) @client.get("#{BASE_PATH}/status", params) end |
#stop(body = {}) ⇒ Object
63 64 65 |
# File 'lib/opnsense_api/core/ids/service.rb', line 63 def stop(body = {}) @client.post("#{BASE_PATH}/stop", body) end |
#update_rules(body = {}, wait: nil) ⇒ Object
67 68 69 |
# File 'lib/opnsense_api/core/ids/service.rb', line 67 def update_rules(body = {}, wait: nil) @client.post("#{BASE_PATH}/updateRules/#{wait}", body) end |