Sha256: 4512e6dd054d24ae645b5571a86c9b71a67a2557e10b8298312ac35ff1a44d7c

Contents?: true

Size: 1.66 KB

Versions: 13

Compression:

Stored size: 1.66 KB

Contents

module Wazuh
  module Api
    module Endpoints
      module Lists
        #
        # Get all lists
        # Returns the content of all CDB lists.
        #
        # @option options [offset] :offset
        #   First element to return in the collection.
        # @option options [limit] :limit
        #   Maximum number of elements to return.
        # @option options [sort] :sort
        #   Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.
        # @option options [search] :search
        #   Looks for elements with the specified string.
        # @option options [path] :path
        #   Filters by path.
        # @see https://documentation.wazuh.com/3.10/user-manual/api/reference.html#get-all-lists
        def cdb_lists(options = {})
          offset_request('get', '/lists', options)
        end

        # Get paths from all lists
        # Returns the path from all lists.
        #
        # @option options [offset] :offset
        #   First element to return in the collection.
        # @option options [limit] :limit
        #   Maximum number of elements to return.
        # @option options [sort] :sort
        #   Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.
        # @option options [search] :search
        #   Looks for elements with the specified string.
        # @see https://documentation.wazuh.com/3.10/user-manual/api/reference.html#get-paths-from-all-lists
        def cdb_files_path(options = {})
          offset_request('get', '/lists/files', options)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
wazuh-ruby-client-0.3.7 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.3.6 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.3.5 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.3.4 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.3.3 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.3.2 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.3.1 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.3.0 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.2.9 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.2.8 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.2.7 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.2.6 lib/wazuh/api/endpoints/lists.rb
wazuh-ruby-client-0.2.5 lib/wazuh/api/endpoints/lists.rb