Wazuh API の Ruby クライアントを作った

作りました。https://github.com/mrtc0/wazuh-ruby-client 使い方は README や YARD に書いてあるとおりで、こんな感じで使えます。 Wazuh.configure do |config| config.endpoint = "https://wazuh.local:55000" config.basic_user = "foo" config.basic_password = "bar" config.verify_ssl = false end client = Wazuh::Client.new client.all_agents # => {"error"=>0, # "data"=> # {"items"=> # [{"os"=> # {"arch"=>"x86_64", # "codename"=>"Xenial Xerus", # "major"=>"16", # "minor"=>"04", # "name"=>"Ubuntu", # "platform"=>"ubuntu", # "uname"=>"Linux |wazuh-manager-master-0 |4.14.138+ |#1 SMP Tue Sep 3 02:58:08 PDT 2019 |x86_64", # "version"=>"16.04.6 LTS"}, # "status"=>"Active", # "dateAdd"=>"2020-01-07 16:13:05", # "ip"=>"127.