Module: Wazuh::Api::Endpoints::Lists

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

Instance Method Summary collapse

Instance Method Details

#cdb_files_path(options = {}) ⇒ Object

Get paths from all lists Returns the path from all lists.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :offset (offset)

    First element to return in the collection.

  • :limit (limit)

    Maximum number of elements to return.

  • :sort (sort)

    Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.

  • :search (search)

    Looks for elements with the specified string.

See Also:



36
37
38
# File 'lib/wazuh/api/endpoints/lists.rb', line 36

def cdb_files_path(options = {})
  offset_request('get', '/lists/files', options)
end

#cdb_lists(options = {}) ⇒ Object

Get all lists Returns the content of all CDB lists.

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :offset (offset)

    First element to return in the collection.

  • :limit (limit)

    Maximum number of elements to return.

  • :sort (sort)

    Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.

  • :search (search)

    Looks for elements with the specified string.

  • :path (path)

    Filters by path.

See Also:



20
21
22
# File 'lib/wazuh/api/endpoints/lists.rb', line 20

def cdb_lists(options = {})
  offset_request('get', '/lists', options)
end