Sha256: 40088015571e5788ac82aae441e7f7e01dc3a4a1fe04bbc220b95f2b2218cb37

Contents?: true

Size: 770 Bytes

Versions: 21

Compression:

Stored size: 770 Bytes

Contents

module Wazuh
  module Api
    module Endpoints
      module ActiveResponse
        #
        # Run an AR command in the agent
        # Runs an Active Response command on a specified agent.
        #
        # @param [String] agent_id
        # @option 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.
        # @option options [custom] :custom
        #   Whether the specified command is a custom command or not.
        # @option options [arguments] :arguments
        #   Array with command arguments.
        def run_active_response_command(agent_id, options = {})
          put "/active-response/#{agent_id}", options
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
wazuh-ruby-client-0.3.7 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.3.6 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.3.5 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.3.4 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.3.3 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.3.2 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.3.1 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.3.0 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.9 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.8 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.7 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.6 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.5 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.4 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.3 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.2 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.1 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.2.0 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.1.2 lib/wazuh/api/endpoints/active_response.rb
wazuh-ruby-client-0.1.1 lib/wazuh/api/endpoints/active_response.rb