Module: Wazuh::Api::Endpoints::V4::ActiveResponse

Includes:
ActiveResponse
Included in:
Wazuh::Api::Endpoints::V4
Defined in:
lib/wazuh/api/endpoints/v4/active_response.rb

Instance Method Summary collapse

Instance Method Details

#run_active_response_command(options = {}) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/wazuh/api/endpoints/v4/active_response.rb', line 7

def run_active_response_command(options = {})
  query_options = {}
  %w(agents_list pretty wait_for_complete).each do |c|
    query_options[c.to_sym] = options.delete(c.to_sym)
  end
  put "/active-response", options, query_options
end