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

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

Instance Method Summary collapse

Instance Method Details

#run_active_response_command(agent_id, options = {}) ⇒ Object

Run an AR command in the agent Runs an Active Response command on a specified agent.

Parameters:

  • agent_id (String)
  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :command (command)

    Command running in the agent. If this value starts by !, then it refers to a script name instead of a command name.

  • :custom (custom)

    Whether the specified command is a custom command or not.

  • :arguments (arguments)

    Array with command arguments.



16
17
18
# File 'lib/wazuh/api/endpoints/active_response.rb', line 16

def run_active_response_command(agent_id, options = {})
  put "/active-response/#{agent_id}", options
end