wazuh-ruby-client 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/docs/Wazuh.html +4 -4
- data/docs/Wazuh/Api.html +2 -2
- data/docs/Wazuh/Api/Endpoints.html +3 -3
- data/docs/Wazuh/Api/Endpoints/ActiveResponse.html +1 -1
- data/docs/Wazuh/Api/Endpoints/Agents.html +3218 -594
- data/docs/Wazuh/Api/Endpoints/Cache.html +1 -1
- data/docs/Wazuh/Api/Endpoints/Ciscat.html +5 -3
- data/docs/Wazuh/Api/Endpoints/Cluster.html +48 -44
- data/docs/Wazuh/Api/Endpoints/Decoders.html +25 -17
- data/docs/Wazuh/Api/Endpoints/Experimental.html +60 -42
- data/docs/Wazuh/Api/Endpoints/Lists.html +15 -11
- data/docs/Wazuh/Api/Endpoints/Manager.html +26 -24
- data/docs/Wazuh/Api/Endpoints/Rootcheck.html +26 -20
- data/docs/Wazuh/Api/Endpoints/Rules.html +60 -42
- data/docs/Wazuh/Api/Endpoints/SecurityConfigurationAssessment.html +11 -7
- data/docs/Wazuh/Api/Endpoints/Summary.html +1 -1
- data/docs/Wazuh/Api/Endpoints/Syscheck.html +29 -30
- data/docs/Wazuh/Api/Endpoints/Syscollector.html +43 -31
- data/docs/Wazuh/Api/Errors.html +3 -5
- data/docs/Wazuh/Api/Errors/WazuhError.html +79 -7
- data/docs/Wazuh/Client.html +6 -6
- data/docs/Wazuh/Config.html +1 -1
- data/docs/Wazuh/Logger.html +1 -1
- data/docs/Wazuh/{Faraday.html → Sawyer.html} +9 -9
- data/docs/Wazuh/{Faraday → Sawyer}/Connection.html +6 -6
- data/docs/Wazuh/{Faraday → Sawyer}/Request.html +10 -10
- data/docs/WazuhRubyClient.html +2 -2
- data/docs/_index.html +15 -52
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +138 -2
- data/docs/index.html +138 -2
- data/docs/method_list.html +219 -83
- data/docs/top-level-namespace.html +1 -1
- data/lib/wazuh-ruby-client/version.rb +1 -1
- data/lib/wazuh/api/endpoints/agents.rb +2 -1
- data/lib/wazuh/version.rb +1 -1
- metadata +6 -11
- data/docs/.nojekyll +0 -0
- data/docs/Wazuh/Api/Errors/TooManyRequestsError.html +0 -398
- data/docs/Wazuh/Faraday/Response.html +0 -115
- data/docs/Wazuh/Faraday/Response/RaiseError.html +0 -191
data/docs/Wazuh/Client.html
CHANGED
@@ -89,7 +89,7 @@
|
|
89
89
|
|
90
90
|
<dl>
|
91
91
|
<dt>Includes:</dt>
|
92
|
-
<dd><span class='object_link'><a href="Api/Endpoints.html" title="Wazuh::Api::Endpoints (module)">Api::Endpoints</a></span>, <span class='object_link'><a href="
|
92
|
+
<dd><span class='object_link'><a href="Api/Endpoints.html" title="Wazuh::Api::Endpoints (module)">Api::Endpoints</a></span>, <span class='object_link'><a href="Sawyer/Connection.html" title="Wazuh::Sawyer::Connection (module)">Sawyer::Connection</a></span>, <span class='object_link'><a href="Sawyer/Request.html" title="Wazuh::Sawyer::Request (module)">Sawyer::Request</a></span></dd>
|
93
93
|
</dl>
|
94
94
|
|
95
95
|
|
@@ -294,7 +294,7 @@
|
|
294
294
|
|
295
295
|
|
296
296
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="Api/Endpoints/Lists.html" title="Wazuh::Api::Endpoints::Lists (module)">Api::Endpoints::Lists</a></span></h3>
|
297
|
-
<p class="inherited"><span class='object_link'><a href="Api/Endpoints/Lists.html#
|
297
|
+
<p class="inherited"><span class='object_link'><a href="Api/Endpoints/Lists.html#cdb_files_path-instance_method" title="Wazuh::Api::Endpoints::Lists#cdb_files_path (method)">#cdb_files_path</a></span>, <span class='object_link'><a href="Api/Endpoints/Lists.html#cdb_lists-instance_method" title="Wazuh::Api::Endpoints::Lists#cdb_lists (method)">#cdb_lists</a></span></p>
|
298
298
|
|
299
299
|
|
300
300
|
|
@@ -360,7 +360,7 @@
|
|
360
360
|
|
361
361
|
|
362
362
|
<h3 class="inherited">Methods included from <span class='object_link'><a href="Api/Endpoints/Agents.html" title="Wazuh::Api::Endpoints::Agents (module)">Api::Endpoints::Agents</a></span></h3>
|
363
|
-
<p class="inherited"><span class='object_link'><a href="Api/Endpoints/Agents.html#add_agent-instance_method" title="Wazuh::Api::Endpoints::Agents#add_agent (method)">#add_agent</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#add_agent_quick-instance_method" title="Wazuh::Api::Endpoints::Agents#add_agent_quick (method)">#add_agent_quick</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent-instance_method" title="Wazuh::Api::Endpoints::Agents#agent (method)">#agent</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_by_name-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_by_name (method)">#agent_by_name</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_key-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_key (method)">#agent_key</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#all_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#all_agents (method)">#all_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#distinct_fields_in_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#distinct_fields_in_agents (method)">#distinct_fields_in_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#insert_agent-instance_method" title="Wazuh::Api::Endpoints::Agents#insert_agent (method)">#insert_agent</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#outdated_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#outdated_agents (method)">#outdated_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#restart_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#restart_agents (method)">#restart_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#restart_all_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#restart_all_agents (method)">#restart_all_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#restart_an_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#restart_an_agents (method)">#restart_an_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#upgrade_result_from_agent-instance_method" title="Wazuh::Api::Endpoints::Agents#upgrade_result_from_agent (method)">#upgrade_result_from_agent</a></span></p>
|
363
|
+
<p class="inherited"><span class='object_link'><a href="Api/Endpoints/Agents.html#add_agent-instance_method" title="Wazuh::Api::Endpoints::Agents#add_agent (method)">#add_agent</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#add_agent_quick-instance_method" title="Wazuh::Api::Endpoints::Agents#add_agent_quick (method)">#add_agent_quick</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#add_agent_to_group-instance_method" title="Wazuh::Api::Endpoints::Agents#add_agent_to_group (method)">#add_agent_to_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#add_agents_to_group-instance_method" title="Wazuh::Api::Endpoints::Agents#add_agents_to_group (method)">#add_agents_to_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent-instance_method" title="Wazuh::Api::Endpoints::Agents#agent (method)">#agent</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_by_name-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_by_name (method)">#agent_by_name</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_config-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_config (method)">#agent_config</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_key-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_key (method)">#agent_key</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_os_summary-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_os_summary (method)">#agent_os_summary</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_summary-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_summary (method)">#agent_summary</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agent_sync_status-instance_method" title="Wazuh::Api::Endpoints::Agents#agent_sync_status (method)">#agent_sync_status</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agents_by_group-instance_method" title="Wazuh::Api::Endpoints::Agents#agents_by_group (method)">#agents_by_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#agents_by_no_group-instance_method" title="Wazuh::Api::Endpoints::Agents#agents_by_no_group (method)">#agents_by_no_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#all_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#all_agents (method)">#all_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#create_group-instance_method" title="Wazuh::Api::Endpoints::Agents#create_group (method)">#create_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#delete_agent-instance_method" title="Wazuh::Api::Endpoints::Agents#delete_agent (method)">#delete_agent</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#delete_agent_by_group-instance_method" title="Wazuh::Api::Endpoints::Agents#delete_agent_by_group (method)">#delete_agent_by_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#delete_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#delete_agents (method)">#delete_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#distinct_fields_in_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#distinct_fields_in_agents (method)">#distinct_fields_in_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#get_file_in_group-instance_method" title="Wazuh::Api::Endpoints::Agents#get_file_in_group (method)">#get_file_in_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#group_configuration-instance_method" title="Wazuh::Api::Endpoints::Agents#group_configuration (method)">#group_configuration</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#group_files-instance_method" title="Wazuh::Api::Endpoints::Agents#group_files (method)">#group_files</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#groups-instance_method" title="Wazuh::Api::Endpoints::Agents#groups (method)">#groups</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#insert_agent-instance_method" title="Wazuh::Api::Endpoints::Agents#insert_agent (method)">#insert_agent</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#outdated_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#outdated_agents (method)">#outdated_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#remove_agent_of_group-instance_method" title="Wazuh::Api::Endpoints::Agents#remove_agent_of_group (method)">#remove_agent_of_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#remove_agents_of_group-instance_method" title="Wazuh::Api::Endpoints::Agents#remove_agents_of_group (method)">#remove_agents_of_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#remove_all_agent_of_group-instance_method" title="Wazuh::Api::Endpoints::Agents#remove_all_agent_of_group (method)">#remove_all_agent_of_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#remove_group-instance_method" title="Wazuh::Api::Endpoints::Agents#remove_group (method)">#remove_group</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#restart_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#restart_agents (method)">#restart_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#restart_all_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#restart_all_agents (method)">#restart_all_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#restart_an_agents-instance_method" title="Wazuh::Api::Endpoints::Agents#restart_an_agents (method)">#restart_an_agents</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#update_group_ossec_configuration-instance_method" title="Wazuh::Api::Endpoints::Agents#update_group_ossec_configuration (method)">#update_group_ossec_configuration</a></span>, <span class='object_link'><a href="Api/Endpoints/Agents.html#upgrade_result_from_agent-instance_method" title="Wazuh::Api::Endpoints::Agents#upgrade_result_from_agent (method)">#upgrade_result_from_agent</a></span></p>
|
364
364
|
|
365
365
|
|
366
366
|
|
@@ -381,8 +381,8 @@
|
|
381
381
|
|
382
382
|
|
383
383
|
|
384
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="
|
385
|
-
<p class="inherited"><span class='object_link'><a href="
|
384
|
+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Sawyer/Request.html" title="Wazuh::Sawyer::Request (module)">Sawyer::Request</a></span></h3>
|
385
|
+
<p class="inherited"><span class='object_link'><a href="Sawyer/Request.html#delete-instance_method" title="Wazuh::Sawyer::Request#delete (method)">#delete</a></span>, <span class='object_link'><a href="Sawyer/Request.html#get-instance_method" title="Wazuh::Sawyer::Request#get (method)">#get</a></span>, <span class='object_link'><a href="Sawyer/Request.html#post-instance_method" title="Wazuh::Sawyer::Request#post (method)">#post</a></span>, <span class='object_link'><a href="Sawyer/Request.html#put-instance_method" title="Wazuh::Sawyer::Request#put (method)">#put</a></span></p>
|
386
386
|
|
387
387
|
|
388
388
|
|
@@ -511,7 +511,7 @@
|
|
511
511
|
</div>
|
512
512
|
|
513
513
|
<div id="footer">
|
514
|
-
Generated on
|
514
|
+
Generated on Tue Feb 18 20:12:28 2020 by
|
515
515
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
516
516
|
0.9.16 (ruby-2.5.1).
|
517
517
|
</div>
|
data/docs/Wazuh/Config.html
CHANGED
@@ -213,7 +213,7 @@
|
|
213
213
|
</div>
|
214
214
|
|
215
215
|
<div id="footer">
|
216
|
-
Generated on
|
216
|
+
Generated on Tue Feb 18 20:12:27 2020 by
|
217
217
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
218
218
|
0.9.16 (ruby-2.5.1).
|
219
219
|
</div>
|
data/docs/Wazuh/Logger.html
CHANGED
@@ -191,7 +191,7 @@
|
|
191
191
|
</div>
|
192
192
|
|
193
193
|
<div id="footer">
|
194
|
-
Generated on
|
194
|
+
Generated on Tue Feb 18 20:12:29 2020 by
|
195
195
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
196
196
|
0.9.16 (ruby-2.5.1).
|
197
197
|
</div>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Module: Wazuh::
|
7
|
+
Module: Wazuh::Sawyer
|
8
8
|
|
9
9
|
— Documentation by YARD 0.9.16
|
10
10
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "Wazuh::
|
18
|
+
pathId = "Wazuh::Sawyer";
|
19
19
|
relpath = '../';
|
20
20
|
</script>
|
21
21
|
|
@@ -36,10 +36,10 @@
|
|
36
36
|
<div id="header">
|
37
37
|
<div id="menu">
|
38
38
|
|
39
|
-
<a href="../_index.html">Index (
|
39
|
+
<a href="../_index.html">Index (S)</a> »
|
40
40
|
<span class='title'><span class='object_link'><a href="../Wazuh.html" title="Wazuh (module)">Wazuh</a></span></span>
|
41
41
|
»
|
42
|
-
<span class="title">
|
42
|
+
<span class="title">Sawyer</span>
|
43
43
|
|
44
44
|
</div>
|
45
45
|
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<div id="content"><h1>Module: Wazuh::
|
62
|
+
<div id="content"><h1>Module: Wazuh::Sawyer
|
63
63
|
|
64
64
|
|
65
65
|
|
@@ -78,8 +78,8 @@
|
|
78
78
|
|
79
79
|
<dl>
|
80
80
|
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/wazuh/
|
82
|
-
lib/wazuh/
|
81
|
+
<dd>lib/wazuh/sawyer/request.rb<span class="defines">,<br />
|
82
|
+
lib/wazuh/sawyer/connection.rb</span>
|
83
83
|
</dd>
|
84
84
|
</dl>
|
85
85
|
|
@@ -89,7 +89,7 @@
|
|
89
89
|
<p class="children">
|
90
90
|
|
91
91
|
|
92
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="
|
92
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Sawyer/Connection.html" title="Wazuh::Sawyer::Connection (module)">Connection</a></span>, <span class='object_link'><a href="Sawyer/Request.html" title="Wazuh::Sawyer::Request (module)">Request</a></span>
|
93
93
|
|
94
94
|
|
95
95
|
|
@@ -107,7 +107,7 @@
|
|
107
107
|
</div>
|
108
108
|
|
109
109
|
<div id="footer">
|
110
|
-
Generated on
|
110
|
+
Generated on Tue Feb 18 20:12:27 2020 by
|
111
111
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
112
|
0.9.16 (ruby-2.5.1).
|
113
113
|
</div>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Module: Wazuh::
|
7
|
+
Module: Wazuh::Sawyer::Connection
|
8
8
|
|
9
9
|
— Documentation by YARD 0.9.16
|
10
10
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "Wazuh::
|
18
|
+
pathId = "Wazuh::Sawyer::Connection";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
21
21
|
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<div id="menu">
|
38
38
|
|
39
39
|
<a href="../../_index.html">Index (C)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Wazuh.html" title="Wazuh (module)">Wazuh</a></span></span> » <span class='title'><span class='object_link'><a href="../
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Wazuh.html" title="Wazuh (module)">Wazuh</a></span></span> » <span class='title'><span class='object_link'><a href="../Sawyer.html" title="Wazuh::Sawyer (module)">Sawyer</a></span></span>
|
41
41
|
»
|
42
42
|
<span class="title">Connection</span>
|
43
43
|
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<div id="content"><h1>Module: Wazuh::
|
62
|
+
<div id="content"><h1>Module: Wazuh::Sawyer::Connection
|
63
63
|
|
64
64
|
|
65
65
|
|
@@ -83,7 +83,7 @@
|
|
83
83
|
|
84
84
|
<dl>
|
85
85
|
<dt>Defined in:</dt>
|
86
|
-
<dd>lib/wazuh/
|
86
|
+
<dd>lib/wazuh/sawyer/connection.rb</dd>
|
87
87
|
</dl>
|
88
88
|
|
89
89
|
</div>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Tue Feb 18 20:12:27 2020 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
105
|
0.9.16 (ruby-2.5.1).
|
106
106
|
</div>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
Module: Wazuh::
|
7
|
+
Module: Wazuh::Sawyer::Request
|
8
8
|
|
9
9
|
— Documentation by YARD 0.9.16
|
10
10
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "Wazuh::
|
18
|
+
pathId = "Wazuh::Sawyer::Request";
|
19
19
|
relpath = '../../';
|
20
20
|
</script>
|
21
21
|
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<div id="menu">
|
38
38
|
|
39
39
|
<a href="../../_index.html">Index (R)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../Wazuh.html" title="Wazuh (module)">Wazuh</a></span></span> » <span class='title'><span class='object_link'><a href="../
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Wazuh.html" title="Wazuh (module)">Wazuh</a></span></span> » <span class='title'><span class='object_link'><a href="../Sawyer.html" title="Wazuh::Sawyer (module)">Sawyer</a></span></span>
|
41
41
|
»
|
42
42
|
<span class="title">Request</span>
|
43
43
|
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<div id="content"><h1>Module: Wazuh::
|
62
|
+
<div id="content"><h1>Module: Wazuh::Sawyer::Request
|
63
63
|
|
64
64
|
|
65
65
|
|
@@ -83,7 +83,7 @@
|
|
83
83
|
|
84
84
|
<dl>
|
85
85
|
<dt>Defined in:</dt>
|
86
|
-
<dd>lib/wazuh/
|
86
|
+
<dd>lib/wazuh/sawyer/request.rb</dd>
|
87
87
|
</dl>
|
88
88
|
|
89
89
|
</div>
|
@@ -220,7 +220,7 @@
|
|
220
220
|
19</pre>
|
221
221
|
</td>
|
222
222
|
<td>
|
223
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/
|
223
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/sawyer/request.rb', line 17</span>
|
224
224
|
|
225
225
|
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
226
226
|
<span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='symbol'>:delete</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -250,7 +250,7 @@
|
|
250
250
|
7</pre>
|
251
251
|
</td>
|
252
252
|
<td>
|
253
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/
|
253
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/sawyer/request.rb', line 5</span>
|
254
254
|
|
255
255
|
<span class='kw'>def</span> <span class='id identifier rubyid_get'>get</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
256
256
|
<span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='symbol'>:get</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -280,7 +280,7 @@
|
|
280
280
|
11</pre>
|
281
281
|
</td>
|
282
282
|
<td>
|
283
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/
|
283
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/sawyer/request.rb', line 9</span>
|
284
284
|
|
285
285
|
<span class='kw'>def</span> <span class='id identifier rubyid_post'>post</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
286
286
|
<span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='symbol'>:post</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -310,7 +310,7 @@
|
|
310
310
|
15</pre>
|
311
311
|
</td>
|
312
312
|
<td>
|
313
|
-
<pre class="code"><span class="info file"># File 'lib/wazuh/
|
313
|
+
<pre class="code"><span class="info file"># File 'lib/wazuh/sawyer/request.rb', line 13</span>
|
314
314
|
|
315
315
|
<span class='kw'>def</span> <span class='id identifier rubyid_put'>put</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
316
316
|
<span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='symbol'>:put</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
|
@@ -325,7 +325,7 @@
|
|
325
325
|
</div>
|
326
326
|
|
327
327
|
<div id="footer">
|
328
|
-
Generated on
|
328
|
+
Generated on Tue Feb 18 20:12:27 2020 by
|
329
329
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
330
330
|
0.9.16 (ruby-2.5.1).
|
331
331
|
</div>
|
data/docs/WazuhRubyClient.html
CHANGED
@@ -95,7 +95,7 @@
|
|
95
95
|
<dt id="VERSION-constant" class="">VERSION =
|
96
96
|
|
97
97
|
</dt>
|
98
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.
|
98
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.2.3</span><span class='tstring_end'>"</span></span></pre></dd>
|
99
99
|
|
100
100
|
</dl>
|
101
101
|
|
@@ -111,7 +111,7 @@
|
|
111
111
|
</div>
|
112
112
|
|
113
113
|
<div id="footer">
|
114
|
-
Generated on
|
114
|
+
Generated on Tue Feb 18 20:12:27 2020 by
|
115
115
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
116
116
|
0.9.16 (ruby-2.5.1).
|
117
117
|
</div>
|
data/docs/_index.html
CHANGED
@@ -145,9 +145,9 @@
|
|
145
145
|
</li>
|
146
146
|
|
147
147
|
<li>
|
148
|
-
<span class='object_link'><a href="Wazuh/
|
148
|
+
<span class='object_link'><a href="Wazuh/Sawyer/Connection.html" title="Wazuh::Sawyer::Connection (module)">Connection</a></span>
|
149
149
|
|
150
|
-
<small>(Wazuh::
|
150
|
+
<small>(Wazuh::Sawyer)</small>
|
151
151
|
|
152
152
|
</li>
|
153
153
|
|
@@ -199,21 +199,6 @@
|
|
199
199
|
</ul>
|
200
200
|
|
201
201
|
|
202
|
-
<ul id="alpha_F" class="alpha">
|
203
|
-
<li class="letter">F</li>
|
204
|
-
<ul>
|
205
|
-
|
206
|
-
<li>
|
207
|
-
<span class='object_link'><a href="Wazuh/Faraday.html" title="Wazuh::Faraday (module)">Faraday</a></span>
|
208
|
-
|
209
|
-
<small>(Wazuh)</small>
|
210
|
-
|
211
|
-
</li>
|
212
|
-
|
213
|
-
</ul>
|
214
|
-
</ul>
|
215
|
-
|
216
|
-
|
217
202
|
<ul id="alpha_L" class="alpha">
|
218
203
|
<li class="letter">L</li>
|
219
204
|
<ul>
|
@@ -251,31 +236,14 @@
|
|
251
236
|
</ul>
|
252
237
|
|
253
238
|
|
254
|
-
</td><td valign='top' width="33%">
|
255
|
-
|
256
|
-
|
257
239
|
<ul id="alpha_R" class="alpha">
|
258
240
|
<li class="letter">R</li>
|
259
241
|
<ul>
|
260
242
|
|
261
243
|
<li>
|
262
|
-
<span class='object_link'><a href="Wazuh/
|
263
|
-
|
264
|
-
<small>(Wazuh::Faraday::Response)</small>
|
265
|
-
|
266
|
-
</li>
|
267
|
-
|
268
|
-
<li>
|
269
|
-
<span class='object_link'><a href="Wazuh/Faraday/Request.html" title="Wazuh::Faraday::Request (module)">Request</a></span>
|
270
|
-
|
271
|
-
<small>(Wazuh::Faraday)</small>
|
272
|
-
|
273
|
-
</li>
|
274
|
-
|
275
|
-
<li>
|
276
|
-
<span class='object_link'><a href="Wazuh/Faraday/Response.html" title="Wazuh::Faraday::Response (module)">Response</a></span>
|
244
|
+
<span class='object_link'><a href="Wazuh/Sawyer/Request.html" title="Wazuh::Sawyer::Request (module)">Request</a></span>
|
277
245
|
|
278
|
-
<small>(Wazuh::
|
246
|
+
<small>(Wazuh::Sawyer)</small>
|
279
247
|
|
280
248
|
</li>
|
281
249
|
|
@@ -297,50 +265,45 @@
|
|
297
265
|
</ul>
|
298
266
|
|
299
267
|
|
268
|
+
</td><td valign='top' width="33%">
|
269
|
+
|
270
|
+
|
300
271
|
<ul id="alpha_S" class="alpha">
|
301
272
|
<li class="letter">S</li>
|
302
273
|
<ul>
|
303
274
|
|
304
275
|
<li>
|
305
|
-
<span class='object_link'><a href="Wazuh/
|
276
|
+
<span class='object_link'><a href="Wazuh/Sawyer.html" title="Wazuh::Sawyer (module)">Sawyer</a></span>
|
306
277
|
|
307
|
-
<small>(Wazuh
|
278
|
+
<small>(Wazuh)</small>
|
308
279
|
|
309
280
|
</li>
|
310
281
|
|
311
282
|
<li>
|
312
|
-
<span class='object_link'><a href="Wazuh/Api/Endpoints/
|
283
|
+
<span class='object_link'><a href="Wazuh/Api/Endpoints/SecurityConfigurationAssessment.html" title="Wazuh::Api::Endpoints::SecurityConfigurationAssessment (module)">SecurityConfigurationAssessment</a></span>
|
313
284
|
|
314
285
|
<small>(Wazuh::Api::Endpoints)</small>
|
315
286
|
|
316
287
|
</li>
|
317
288
|
|
318
289
|
<li>
|
319
|
-
<span class='object_link'><a href="Wazuh/Api/Endpoints/
|
290
|
+
<span class='object_link'><a href="Wazuh/Api/Endpoints/Summary.html" title="Wazuh::Api::Endpoints::Summary (module)">Summary</a></span>
|
320
291
|
|
321
292
|
<small>(Wazuh::Api::Endpoints)</small>
|
322
293
|
|
323
294
|
</li>
|
324
295
|
|
325
296
|
<li>
|
326
|
-
<span class='object_link'><a href="Wazuh/Api/Endpoints/
|
297
|
+
<span class='object_link'><a href="Wazuh/Api/Endpoints/Syscheck.html" title="Wazuh::Api::Endpoints::Syscheck (module)">Syscheck</a></span>
|
327
298
|
|
328
299
|
<small>(Wazuh::Api::Endpoints)</small>
|
329
300
|
|
330
301
|
</li>
|
331
302
|
|
332
|
-
</ul>
|
333
|
-
</ul>
|
334
|
-
|
335
|
-
|
336
|
-
<ul id="alpha_T" class="alpha">
|
337
|
-
<li class="letter">T</li>
|
338
|
-
<ul>
|
339
|
-
|
340
303
|
<li>
|
341
|
-
<span class='object_link'><a href="Wazuh/Api/
|
304
|
+
<span class='object_link'><a href="Wazuh/Api/Endpoints/Syscollector.html" title="Wazuh::Api::Endpoints::Syscollector (module)">Syscollector</a></span>
|
342
305
|
|
343
|
-
<small>(Wazuh::Api::
|
306
|
+
<small>(Wazuh::Api::Endpoints)</small>
|
344
307
|
|
345
308
|
</li>
|
346
309
|
|
@@ -381,7 +344,7 @@
|
|
381
344
|
</div>
|
382
345
|
|
383
346
|
<div id="footer">
|
384
|
-
Generated on
|
347
|
+
Generated on Tue Feb 18 20:12:27 2020 by
|
385
348
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
386
349
|
0.9.16 (ruby-2.5.1).
|
387
350
|
</div>
|
data/docs/class_list.html
CHANGED
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<ul id="full_list" class="class">
|
45
45
|
<li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
|
46
|
-
<li id='object_Wazuh' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh.html" title="Wazuh (module)">Wazuh</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Wazuh::Api' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh/Api.html" title="Wazuh::Api (module)">Api</a></span><small class='search_info'>Wazuh</small></div><ul><li id='object_Wazuh::Api::Endpoints' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh/Api/Endpoints.html" title="Wazuh::Api::Endpoints (module)">Endpoints</a></span><small class='search_info'>Wazuh::Api</small></div><ul><li id='object_Wazuh::Api::Endpoints::ActiveResponse' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/ActiveResponse.html" title="Wazuh::Api::Endpoints::ActiveResponse (module)">ActiveResponse</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Agents' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Agents.html" title="Wazuh::Api::Endpoints::Agents (module)">Agents</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Cache' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Cache.html" title="Wazuh::Api::Endpoints::Cache (module)">Cache</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Ciscat' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Ciscat.html" title="Wazuh::Api::Endpoints::Ciscat (module)">Ciscat</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Cluster' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Cluster.html" title="Wazuh::Api::Endpoints::Cluster (module)">Cluster</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Decoders' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Decoders.html" title="Wazuh::Api::Endpoints::Decoders (module)">Decoders</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Experimental' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Experimental.html" title="Wazuh::Api::Endpoints::Experimental (module)">Experimental</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Lists' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Lists.html" title="Wazuh::Api::Endpoints::Lists (module)">Lists</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Manager' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Manager.html" title="Wazuh::Api::Endpoints::Manager (module)">Manager</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Rootcheck' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Rootcheck.html" title="Wazuh::Api::Endpoints::Rootcheck (module)">Rootcheck</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Rules' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Rules.html" title="Wazuh::Api::Endpoints::Rules (module)">Rules</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::SecurityConfigurationAssessment' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/SecurityConfigurationAssessment.html" title="Wazuh::Api::Endpoints::SecurityConfigurationAssessment (module)">SecurityConfigurationAssessment</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Summary' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Summary.html" title="Wazuh::Api::Endpoints::Summary (module)">Summary</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Syscheck' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Syscheck.html" title="Wazuh::Api::Endpoints::Syscheck (module)">Syscheck</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Syscollector' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Syscollector.html" title="Wazuh::Api::Endpoints::Syscollector (module)">Syscollector</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li></ul></li><li id='object_Wazuh::Api::Errors' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh/Api/Errors.html" title="Wazuh::Api::Errors (module)">Errors</a></span><small class='search_info'>Wazuh::Api</small></div><ul><li id='object_Wazuh::Api::Errors::
|
46
|
+
<li id='object_Wazuh' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh.html" title="Wazuh (module)">Wazuh</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_Wazuh::Api' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh/Api.html" title="Wazuh::Api (module)">Api</a></span><small class='search_info'>Wazuh</small></div><ul><li id='object_Wazuh::Api::Endpoints' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh/Api/Endpoints.html" title="Wazuh::Api::Endpoints (module)">Endpoints</a></span><small class='search_info'>Wazuh::Api</small></div><ul><li id='object_Wazuh::Api::Endpoints::ActiveResponse' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/ActiveResponse.html" title="Wazuh::Api::Endpoints::ActiveResponse (module)">ActiveResponse</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Agents' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Agents.html" title="Wazuh::Api::Endpoints::Agents (module)">Agents</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Cache' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Cache.html" title="Wazuh::Api::Endpoints::Cache (module)">Cache</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Ciscat' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Ciscat.html" title="Wazuh::Api::Endpoints::Ciscat (module)">Ciscat</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Cluster' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Cluster.html" title="Wazuh::Api::Endpoints::Cluster (module)">Cluster</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Decoders' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Decoders.html" title="Wazuh::Api::Endpoints::Decoders (module)">Decoders</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Experimental' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Experimental.html" title="Wazuh::Api::Endpoints::Experimental (module)">Experimental</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Lists' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Lists.html" title="Wazuh::Api::Endpoints::Lists (module)">Lists</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Manager' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Manager.html" title="Wazuh::Api::Endpoints::Manager (module)">Manager</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Rootcheck' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Rootcheck.html" title="Wazuh::Api::Endpoints::Rootcheck (module)">Rootcheck</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Rules' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Rules.html" title="Wazuh::Api::Endpoints::Rules (module)">Rules</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::SecurityConfigurationAssessment' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/SecurityConfigurationAssessment.html" title="Wazuh::Api::Endpoints::SecurityConfigurationAssessment (module)">SecurityConfigurationAssessment</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Summary' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Summary.html" title="Wazuh::Api::Endpoints::Summary (module)">Summary</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Syscheck' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Syscheck.html" title="Wazuh::Api::Endpoints::Syscheck (module)">Syscheck</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li><li id='object_Wazuh::Api::Endpoints::Syscollector' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Endpoints/Syscollector.html" title="Wazuh::Api::Endpoints::Syscollector (module)">Syscollector</a></span><small class='search_info'>Wazuh::Api::Endpoints</small></div></li></ul></li><li id='object_Wazuh::Api::Errors' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh/Api/Errors.html" title="Wazuh::Api::Errors (module)">Errors</a></span><small class='search_info'>Wazuh::Api</small></div><ul><li id='object_Wazuh::Api::Errors::WazuhError' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="Wazuh/Api/Errors/WazuhError.html" title="Wazuh::Api::Errors::WazuhError (class)">WazuhError</a></span> < StandardError<small class='search_info'>Wazuh::Api::Errors</small></div></li></ul></li></ul></li><li id='object_Wazuh::Client' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Wazuh/Client.html" title="Wazuh::Client (class)">Client</a></span> < Object<small class='search_info'>Wazuh</small></div></li><li id='object_Wazuh::Config' class='collapsed odd'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Wazuh/Config.html" title="Wazuh::Config (module)">Config</a></span><small class='search_info'>Wazuh</small></div></li><li id='object_Wazuh::Logger' class='collapsed even'><div class='item' style='padding-left:45px'><span class='object_link'><a href="Wazuh/Logger.html" title="Wazuh::Logger (class)">Logger</a></span> < Logger<small class='search_info'>Wazuh</small></div></li><li id='object_Wazuh::Sawyer' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="Wazuh/Sawyer.html" title="Wazuh::Sawyer (module)">Sawyer</a></span><small class='search_info'>Wazuh</small></div><ul><li id='object_Wazuh::Sawyer::Connection' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Wazuh/Sawyer/Connection.html" title="Wazuh::Sawyer::Connection (module)">Connection</a></span><small class='search_info'>Wazuh::Sawyer</small></div></li><li id='object_Wazuh::Sawyer::Request' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="Wazuh/Sawyer/Request.html" title="Wazuh::Sawyer::Request (module)">Request</a></span><small class='search_info'>Wazuh::Sawyer</small></div></li></ul></li></ul></li><li id='object_WazuhRubyClient' class='even'><div class='item' style='padding-left:30px'><span class='object_link'><a href="WazuhRubyClient.html" title="WazuhRubyClient (module)">WazuhRubyClient</a></span><small class='search_info'>Top Level Namespace</small></div></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</div>
|
data/docs/file.README.html
CHANGED
@@ -59,6 +59,10 @@
|
|
59
59
|
|
60
60
|
<div id="content"><div id='filecontents'><h1>Wazuh Ruby Client</h1>
|
61
61
|
|
62
|
+
<p><a href="https://github.com/mrtc0/wazuh-ruby-client/blob/master/LICENSE.txt"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
|
63
|
+
<img src="https://github.com/mrtc0/wazuh-ruby-client/workflows/GitHub%20Workflow/badge.svg" alt="">
|
64
|
+
<a href="https://mrtc0.github.io/wazuh-ruby-client"><img src="http://img.shields.io/badge/yard-docs-blue.svg" alt="Yard Docs"></a></p>
|
65
|
+
|
62
66
|
<p>A Ruby client for the wazuh APIs.</p>
|
63
67
|
|
64
68
|
<h2>Installation</h2>
|
@@ -106,7 +110,126 @@ If you using self-signed certificate, <code>verify_ssl</code> must be set to <co
|
|
106
110
|
<span class='kw'>end</span>
|
107
111
|
</code></pre>
|
108
112
|
|
109
|
-
<
|
113
|
+
<h3>Global Settings</h3>
|
114
|
+
|
115
|
+
<p>The following global settings are supported via <code>Wazuh.configure</code> .</p>
|
116
|
+
|
117
|
+
<table><thead>
|
118
|
+
<tr>
|
119
|
+
<th style="text-align: left">setting</th>
|
120
|
+
<th style="text-align: left">description</th>
|
121
|
+
</tr>
|
122
|
+
</thead><tbody>
|
123
|
+
<tr>
|
124
|
+
<td style="text-align: left">user_agent</td>
|
125
|
+
<td style="text-align: left">User-Agent</td>
|
126
|
+
</tr>
|
127
|
+
<tr>
|
128
|
+
<td style="text-align: left">client_cert</td>
|
129
|
+
<td style="text-align: left">Client certificate (if use Client Certificate Authentication)</td>
|
130
|
+
</tr>
|
131
|
+
<tr>
|
132
|
+
<td style="text-align: left">client_key</td>
|
133
|
+
<td style="text-align: left">Client Key (if use Client Certificate Authentication)</td>
|
134
|
+
</tr>
|
135
|
+
<tr>
|
136
|
+
<td style="text-align: left">basic_user</td>
|
137
|
+
<td style="text-align: left">Basic Authentication user name</td>
|
138
|
+
</tr>
|
139
|
+
<tr>
|
140
|
+
<td style="text-align: left">basic_password</td>
|
141
|
+
<td style="text-align: left">Basic Authentication password</td>
|
142
|
+
</tr>
|
143
|
+
<tr>
|
144
|
+
<td style="text-align: left">verify_ssl</td>
|
145
|
+
<td style="text-align: left">Skip the SSL/TLS verify</td>
|
146
|
+
</tr>
|
147
|
+
<tr>
|
148
|
+
<td style="text-align: left">logger</td>
|
149
|
+
<td style="text-align: left">loggeer object</td>
|
150
|
+
</tr>
|
151
|
+
<tr>
|
152
|
+
<td style="text-align: left">endpoint</td>
|
153
|
+
<td style="text-align: left">Wazuh API endpoint URL</td>
|
154
|
+
</tr>
|
155
|
+
</tbody></table>
|
156
|
+
|
157
|
+
<h3>Agents</h3>
|
158
|
+
|
159
|
+
<p>Get all agents list.</p>
|
160
|
+
|
161
|
+
<pre class="code ruby"><code class="ruby">> client.all_agents
|
162
|
+
=> [
|
163
|
+
{
|
164
|
+
:os=>{
|
165
|
+
:arch=>"x86_64",
|
166
|
+
:codename=>"Xenial Xerus",
|
167
|
+
:major=>"16",
|
168
|
+
:minor=>"04",
|
169
|
+
:name=>"Ubuntu",
|
170
|
+
:platform=>"ubuntu",
|
171
|
+
:uname=>"Linux |wazuh-manager |4.15.0-60-generic |#67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 |x86_64",
|
172
|
+
:version=>"16.04.6 LTS"
|
173
|
+
},
|
174
|
+
:manager=>"wazuh-manager",
|
175
|
+
:id=>"000",
|
176
|
+
:registerIP=>"127.0.0.1",
|
177
|
+
:name=>"wazuh-manager",
|
178
|
+
:version=>"Wazuh v3.11.0",
|
179
|
+
:ip=>"127.0.0.1",
|
180
|
+
:dateAdd=>"2020-01-27 17:02:18",
|
181
|
+
:status=>"Active",
|
182
|
+
:lastKeepAlive=>"9999-12-31 23:59:59",
|
183
|
+
:node_name=>"wazuh-master-1"
|
184
|
+
},
|
185
|
+
...
|
186
|
+
]
|
187
|
+
|
188
|
+
> agents.first.os.name
|
189
|
+
=> "Ubuntu"
|
190
|
+
|
191
|
+
> agents.first.id
|
192
|
+
=> "000"
|
193
|
+
</code></pre>
|
194
|
+
|
195
|
+
<p>filter by options. (see <a href="https://mrtc0.github.io/wazuh-ruby-client/Wazuh/Api/Endpoints/Agents.html#all_agents-instance_method">https://mrtc0.github.io/wazuh-ruby-client/Wazuh/Api/Endpoints/Agents.html#all_agents-instance_method</a> )</p>
|
196
|
+
|
197
|
+
<pre class="code ruby"><code class="ruby"># Filter by status is active
|
198
|
+
> client.all_agents({ status: 'active' })
|
199
|
+
# Filter by agent os.name is ubuntu
|
200
|
+
> client.all_agents({ 'os.name' => 'ubuntu' })
|
201
|
+
</code></pre>
|
202
|
+
|
203
|
+
<h3>Syscollector</h3>
|
204
|
+
|
205
|
+
<p>List agent's packages.</p>
|
206
|
+
|
207
|
+
<pre class="code ruby"><code class="ruby">> client.packages('000').map { |package| package.name }
|
208
|
+
=> ["python-apt-common",
|
209
|
+
"python-idna",
|
210
|
+
"libedit2",
|
211
|
+
"libncurses5",
|
212
|
+
"libpam-runtime",
|
213
|
+
"python3.5",
|
214
|
+
"libgsasl7",
|
215
|
+
"vim-tiny",
|
216
|
+
...
|
217
|
+
</code></pre>
|
218
|
+
|
219
|
+
<p>List agents' processes.</p>
|
220
|
+
|
221
|
+
<pre class="code ruby"><code class="ruby">> client.packages('000').map { |package| package.name }
|
222
|
+
=> ["entrypoint.sh",
|
223
|
+
"my_init",
|
224
|
+
"syslog-ng",
|
225
|
+
"runsvdir",
|
226
|
+
"runsv",
|
227
|
+
...
|
228
|
+
</code></pre>
|
229
|
+
|
230
|
+
<h3>Other</h3>
|
231
|
+
|
232
|
+
<p>wazuh-ruby-client is support to all Wazuh API. </p>
|
110
233
|
|
111
234
|
<ul>
|
112
235
|
<li>[x] Active Response</li>
|
@@ -126,13 +249,26 @@ If you using self-signed certificate, <code>verify_ssl</code> must be set to <co
|
|
126
249
|
<li>[x] Syscollector</li>
|
127
250
|
</ul>
|
128
251
|
|
252
|
+
<p>Refer to the document of wazuh-ruby-client and Wazuh API Reference for the list of all available methods.</p>
|
253
|
+
|
254
|
+
<ul>
|
255
|
+
<li><a href="https://mrtc0.github.io/wazuh-ruby-client/Wazuh/Api/Endpoints.html">https://mrtc0.github.io/wazuh-ruby-client/Wazuh/Api/Endpoints.html</a></li>
|
256
|
+
<li><a href="https://documentation.wazuh.com/3.10/user-manual/api/reference.html">https://documentation.wazuh.com/3.10/user-manual/api/reference.html</a></li>
|
257
|
+
</ul>
|
258
|
+
|
129
259
|
<h2>Contributing</h2>
|
130
260
|
|
131
261
|
<p>Bug reports and pull requests are welcome on GitHub at <a href="https://github.com/mrtc0/wazuh-ruby-client">https://github.com/mrtc0/wazuh-ruby-client</a>.</p>
|
262
|
+
|
263
|
+
<h2>Copyright and License</h2>
|
264
|
+
|
265
|
+
<p>Copyright (c) 2015-2019, <a href="https://blog.ssrf.in">Kohei Morita</a></p>
|
266
|
+
|
267
|
+
<p>This project is licensed under the <a href="https://github.com/mrtc0/wazuh-ruby-client/blob/master/LICENSE">MIT License</a> .</p>
|
132
268
|
</div></div>
|
133
269
|
|
134
270
|
<div id="footer">
|
135
|
-
Generated on
|
271
|
+
Generated on Tue Feb 18 20:12:27 2020 by
|
136
272
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
273
|
0.9.16 (ruby-2.5.1).
|
138
274
|
</div>
|