wazuh-ruby-client 0.3.2 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/codeql-analysis.yml +70 -0
  3. data/.rubocop.yml +59 -0
  4. data/CHANGELOG.md +29 -0
  5. data/README.md +18 -1
  6. data/Rakefile +5 -1
  7. data/docs/Wazuh/Api/Endpoints/ActiveResponse.html +10 -13
  8. data/docs/Wazuh/Api/Endpoints/Agents.html +483 -204
  9. data/docs/Wazuh/Api/Endpoints/Cache.html +7 -7
  10. data/docs/Wazuh/Api/Endpoints/Ciscat.html +10 -13
  11. data/docs/Wazuh/Api/Endpoints/Cluster.html +52 -58
  12. data/docs/Wazuh/Api/Endpoints/Decoders.html +27 -39
  13. data/docs/Wazuh/Api/Endpoints/Experimental.html +63 -96
  14. data/docs/Wazuh/Api/Endpoints/Lists.html +15 -21
  15. data/docs/Wazuh/Api/Endpoints/Manager.html +44 -62
  16. data/docs/Wazuh/Api/Endpoints/Rootcheck.html +36 -52
  17. data/docs/Wazuh/Api/Endpoints/Rules.html +49 -68
  18. data/docs/Wazuh/Api/Endpoints/SecurityConfigurationAssessment.html +20 -31
  19. data/docs/Wazuh/Api/Endpoints/Summary.html +7 -7
  20. data/docs/Wazuh/Api/Endpoints/Syscheck.html +26 -33
  21. data/docs/Wazuh/Api/Endpoints/Syscollector.html +43 -61
  22. data/docs/Wazuh/Api/Endpoints/V4/ActiveResponse.html +198 -0
  23. data/docs/Wazuh/Api/Endpoints/V4/Agents.html +1079 -0
  24. data/docs/Wazuh/Api/Endpoints/V4/Cache.html +195 -0
  25. data/docs/Wazuh/Api/Endpoints/V4/Ciscat.html +126 -0
  26. data/docs/Wazuh/Api/Endpoints/V4/Cluster.html +126 -0
  27. data/docs/Wazuh/Api/Endpoints/V4/Decoders.html +126 -0
  28. data/docs/Wazuh/Api/Endpoints/V4/Experimental.html +126 -0
  29. data/docs/Wazuh/Api/Endpoints/V4/Lists.html +126 -0
  30. data/docs/Wazuh/Api/Endpoints/V4/Manager.html +126 -0
  31. data/docs/Wazuh/Api/Endpoints/V4/Rootcheck.html +126 -0
  32. data/docs/Wazuh/Api/Endpoints/V4/Rules.html +126 -0
  33. data/docs/Wazuh/Api/Endpoints/V4/SecurityConfigurationAssessment.html +126 -0
  34. data/docs/Wazuh/Api/Endpoints/V4/Summary.html +126 -0
  35. data/docs/Wazuh/Api/Endpoints/V4/Syscheck.html +126 -0
  36. data/docs/Wazuh/Api/Endpoints/V4/Syscollector.html +126 -0
  37. data/docs/Wazuh/Api/Endpoints/V4/Vulnerabilities.html +399 -0
  38. data/docs/Wazuh/Api/Endpoints/V4.html +403 -0
  39. data/docs/Wazuh/Api/Endpoints.html +9 -14
  40. data/docs/Wazuh/Api/Errors/WazuhError.html +9 -9
  41. data/docs/Wazuh/Api/Errors.html +6 -6
  42. data/docs/Wazuh/Api.html +7 -7
  43. data/docs/Wazuh/Client.html +35 -190
  44. data/docs/Wazuh/Config.html +20 -11
  45. data/docs/Wazuh/Logger.html +6 -6
  46. data/docs/Wazuh/Sawyer/Connection/Token.html +208 -0
  47. data/docs/Wazuh/Sawyer/Connection.html +19 -7
  48. data/docs/Wazuh/Sawyer/Request.html +78 -6
  49. data/docs/Wazuh/Sawyer.html +8 -8
  50. data/docs/Wazuh.html +16 -16
  51. data/docs/WazuhRubyClient.html +7 -7
  52. data/docs/_index.html +149 -7
  53. data/docs/class_list.html +3 -3
  54. data/docs/css/style.css +2 -2
  55. data/docs/file.README.html +39 -18
  56. data/docs/file_list.html +2 -2
  57. data/docs/frames.html +2 -2
  58. data/docs/index.html +39 -18
  59. data/docs/js/app.js +25 -3
  60. data/docs/method_list.html +269 -69
  61. data/docs/top-level-namespace.html +6 -6
  62. data/lib/wazuh/api/endpoints/agents.rb +1 -1
  63. data/lib/wazuh/api/endpoints/rootcheck.rb +1 -1
  64. data/lib/wazuh/api/endpoints/security_configuration_assessment.rb +1 -1
  65. data/lib/wazuh/api/endpoints/syscollector.rb +1 -1
  66. data/lib/wazuh/api/endpoints/v4/cluster.rb +127 -0
  67. data/lib/wazuh/api/endpoints/v4/vulnerabilities.rb +47 -0
  68. data/lib/wazuh/api/endpoints/v4.rb +2 -1
  69. data/lib/wazuh/client.rb +0 -1
  70. data/lib/wazuh/sawyer/connection.rb +2 -2
  71. data/lib/wazuh/sawyer/request.rb +21 -15
  72. data/lib/wazuh/version.rb +1 -1
  73. data/lib/wazuh-ruby-client/version.rb +1 -1
  74. metadata +23 -3
  75. data/.travis.yml +0 -7
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Wazuh::Api::Endpoints::Manager
8
8
 
9
- &mdash; Documentation by YARD 0.9.16
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Wazuh::Api::Endpoints::Manager";
19
19
  relpath = '../../../';
20
20
  </script>
@@ -76,7 +76,7 @@
76
76
 
77
77
  <dl>
78
78
  <dt>Included in:</dt>
79
- <dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span></dd>
79
+ <dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span>, <span class='object_link'><a href="V4/Manager.html" title="Wazuh::Api::Endpoints::V4::Manager (module)">V4::Manager</a></span></dd>
80
80
  </dl>
81
81
 
82
82
 
@@ -169,8 +169,7 @@
169
169
 
170
170
 
171
171
  <span class="summary_desc"><div class='inline'>
172
- <p>Get local file Returns the content of a local file (rules, decoders and
173
- lists).</p>
172
+ <p>Get local file Returns the content of a local file (rules, decoders and lists).</p>
174
173
  </div></span>
175
174
 
176
175
  </li>
@@ -194,8 +193,7 @@ lists).</p>
194
193
 
195
194
 
196
195
  <span class="summary_desc"><div class='inline'>
197
- <p>Get manager active configuration Returns the requested configuration in
198
- JSON format.</p>
196
+ <p>Get manager active configuration Returns the requested configuration in JSON format.</p>
199
197
  </div></span>
200
198
 
201
199
  </li>
@@ -339,8 +337,7 @@ JSON format.</p>
339
337
 
340
338
 
341
339
  <span class="summary_desc"><div class='inline'>
342
- <p>Get manager stats Returns Wazuh statistical information for the current or
343
- specified date.</p>
340
+ <p>Get manager stats Returns Wazuh statistical information for the current or specified date.</p>
344
341
  </div></span>
345
342
 
346
343
  </li>
@@ -436,8 +433,7 @@ specified date.</p>
436
433
 
437
434
 
438
435
  <span class="summary_desc"><div class='inline'>
439
- <p>Get summary of ossec.log Returns a summary of the last three months of the
440
- <code>ossec.log</code> file.</p>
436
+ <p>Get summary of ossec.log Returns a summary of the last three months of the <code>ossec.log</code> file.</p>
441
437
  </div></span>
442
438
 
443
439
  </li>
@@ -652,8 +648,7 @@ specified date.</p>
652
648
  </h3><div class="docstring">
653
649
  <div class="discussion">
654
650
 
655
- <p>Get local file Returns the content of a local file (rules, decoders and
656
- lists).</p>
651
+ <p>Get local file Returns the content of a local file (rules, decoders and lists).</p>
657
652
 
658
653
 
659
654
  </div>
@@ -709,8 +704,7 @@ lists).</p>
709
704
  </span>
710
705
 
711
706
  &mdash; <div class='inline'>
712
- <p>Validates the content of the file. An error will be returned if file
713
- content is not strictly correct. False by default.</p>
707
+ <p>Validates the content of the file. An error will be returned if file content is not strictly correct. False by default.</p>
714
708
  </div>
715
709
 
716
710
  </li>
@@ -759,8 +753,7 @@ content is not strictly correct. False by default.</p>
759
753
  </h3><div class="docstring">
760
754
  <div class="discussion">
761
755
 
762
- <p>Get manager active configuration Returns the requested configuration in
763
- JSON format.</p>
756
+ <p>Get manager active configuration Returns the requested configuration in JSON format.</p>
764
757
 
765
758
 
766
759
  </div>
@@ -865,12 +858,12 @@ JSON format.</p>
865
858
  <pre class="lines">
866
859
 
867
860
 
861
+ 116
868
862
  117
869
- 118
870
- 119</pre>
863
+ 118</pre>
871
864
  </td>
872
865
  <td>
873
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 117</span>
866
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 116</span>
874
867
 
875
868
  <span class='kw'>def</span> <span class='id identifier rubyid_manager_analysisd_stats'>manager_analysisd_stats</span>
876
869
  <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/stats/analysisd</span><span class='tstring_end'>&#39;</span></span>
@@ -935,8 +928,7 @@ JSON format.</p>
935
928
  </span>
936
929
 
937
930
  &mdash; <div class='inline'>
938
- <p>Indicates the ossec.conf section: global, rules, syscheck, rootcheck,
939
- remote, alerts, command, active-response, localfile.</p>
931
+ <p>Indicates the ossec.conf section: global, rules, syscheck, rootcheck, remote, alerts, command, active-response, localfile.</p>
940
932
  </div>
941
933
 
942
934
  </li>
@@ -949,8 +941,7 @@ remote, alerts, command, active-response, localfile.</p>
949
941
  </span>
950
942
 
951
943
  &mdash; <div class='inline'>
952
- <p>Indicates a section child, e.g, fields for rule section are: include,
953
- decoder_dir, etc.</p>
944
+ <p>Indicates a section child, e.g, fields for rule section are: include, decoder_dir, etc.</p>
954
945
  </div>
955
946
 
956
947
  </li>
@@ -1063,15 +1054,13 @@ decoder_dir, etc.</p>
1063
1054
 
1064
1055
  92
1065
1056
  93
1066
- 94
1067
- 95</pre>
1057
+ 94</pre>
1068
1058
  </td>
1069
1059
  <td>
1070
1060
  <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 92</span>
1071
1061
 
1072
1062
  <span class='kw'>def</span> <span class='id identifier rubyid_manager_log'>manager_log</span>
1073
- <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/logs</span><span class='tstring_end'>&#39;</span></span>
1074
- <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
1063
+ <span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>get</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/logs</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1075
1064
  <span class='kw'>end</span></pre>
1076
1065
  </td>
1077
1066
  </tr>
@@ -1111,12 +1100,12 @@ decoder_dir, etc.</p>
1111
1100
  <pre class="lines">
1112
1101
 
1113
1102
 
1103
+ 150
1114
1104
  151
1115
- 152
1116
- 153</pre>
1105
+ 152</pre>
1117
1106
  </td>
1118
1107
  <td>
1119
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 151</span>
1108
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 150</span>
1120
1109
 
1121
1110
  <span class='kw'>def</span> <span class='id identifier rubyid_manager_remoted_stats'>manager_remoted_stats</span>
1122
1111
  <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/stats/remoted</span><span class='tstring_end'>&#39;</span></span>
@@ -1138,8 +1127,7 @@ decoder_dir, etc.</p>
1138
1127
  </h3><div class="docstring">
1139
1128
  <div class="discussion">
1140
1129
 
1141
- <p>Get manager stats Returns Wazuh statistical information for the current or
1142
- specified date.</p>
1130
+ <p>Get manager stats Returns Wazuh statistical information for the current or specified date.</p>
1143
1131
 
1144
1132
 
1145
1133
  </div>
@@ -1204,12 +1192,12 @@ specified date.</p>
1204
1192
  <pre class="lines">
1205
1193
 
1206
1194
 
1195
+ 126
1207
1196
  127
1208
- 128
1209
- 129</pre>
1197
+ 128</pre>
1210
1198
  </td>
1211
1199
  <td>
1212
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 127</span>
1200
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 126</span>
1213
1201
 
1214
1202
  <span class='kw'>def</span> <span class='id identifier rubyid_manager_stats'>manager_stats</span><span class='lparen'>(</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>
1215
1203
  <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/stats</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
@@ -1231,9 +1219,7 @@ specified date.</p>
1231
1219
  </h3><div class="docstring">
1232
1220
  <div class="discussion">
1233
1221
 
1234
- <p>Get manager stats by hour Returns Wazuh statistical information per hour.
1235
- Each number in the averages field represents the average of alerts per
1236
- hour.</p>
1222
+ <p>Get manager stats by hour Returns Wazuh statistical information per hour. Each number in the averages field represents the average of alerts per hour.</p>
1237
1223
 
1238
1224
 
1239
1225
  </div>
@@ -1254,12 +1240,12 @@ hour.</p>
1254
1240
  <pre class="lines">
1255
1241
 
1256
1242
 
1243
+ 134
1257
1244
  135
1258
- 136
1259
- 137</pre>
1245
+ 136</pre>
1260
1246
  </td>
1261
1247
  <td>
1262
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 135</span>
1248
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 134</span>
1263
1249
 
1264
1250
  <span class='kw'>def</span> <span class='id identifier rubyid_manager_stats_by_hour'>manager_stats_by_hour</span>
1265
1251
  <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/stats/hourly</span><span class='tstring_end'>&#39;</span></span>
@@ -1281,9 +1267,7 @@ hour.</p>
1281
1267
  </h3><div class="docstring">
1282
1268
  <div class="discussion">
1283
1269
 
1284
- <p>Get manager stats by weekly Returns Wazuh statistical information per week.
1285
- Each number in the hours field represents the average alerts per hour for
1286
- that specific day.</p>
1270
+ <p>Get manager stats by weekly Returns Wazuh statistical information per week. Each number in the hours field represents the average alerts per hour for that specific day.</p>
1287
1271
 
1288
1272
 
1289
1273
  </div>
@@ -1304,12 +1288,12 @@ that specific day.</p>
1304
1288
  <pre class="lines">
1305
1289
 
1306
1290
 
1291
+ 142
1307
1292
  143
1308
- 144
1309
- 145</pre>
1293
+ 144</pre>
1310
1294
  </td>
1311
1295
  <td>
1312
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 143</span>
1296
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 142</span>
1313
1297
 
1314
1298
  <span class='kw'>def</span> <span class='id identifier rubyid_manager_stats_by_weekly'>manager_stats_by_weekly</span>
1315
1299
  <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/stats/weekly</span><span class='tstring_end'>&#39;</span></span>
@@ -1379,8 +1363,7 @@ that specific day.</p>
1379
1363
  </h3><div class="docstring">
1380
1364
  <div class="discussion">
1381
1365
 
1382
- <p>Get summary of ossec.log Returns a summary of the last three months of the
1383
- <code>ossec.log</code> file.</p>
1366
+ <p>Get summary of ossec.log Returns a summary of the last three months of the <code>ossec.log</code> file.</p>
1384
1367
 
1385
1368
 
1386
1369
  </div>
@@ -1401,12 +1384,12 @@ that specific day.</p>
1401
1384
  <pre class="lines">
1402
1385
 
1403
1386
 
1387
+ 100
1404
1388
  101
1405
- 102
1406
- 103</pre>
1389
+ 102</pre>
1407
1390
  </td>
1408
1391
  <td>
1409
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 101</span>
1392
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 100</span>
1410
1393
 
1411
1394
  <span class='kw'>def</span> <span class='id identifier rubyid_manager_summary_log'>manager_summary_log</span>
1412
1395
  <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/logs/summary</span><span class='tstring_end'>&#39;</span></span>
@@ -1449,12 +1432,12 @@ that specific day.</p>
1449
1432
  <pre class="lines">
1450
1433
 
1451
1434
 
1435
+ 108
1452
1436
  109
1453
- 110
1454
- 111</pre>
1437
+ 110</pre>
1455
1438
  </td>
1456
1439
  <td>
1457
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 109</span>
1440
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/manager.rb', line 108</span>
1458
1441
 
1459
1442
  <span class='kw'>def</span> <span class='id identifier rubyid_restart_manager'>restart_manager</span>
1460
1443
  <span class='id identifier rubyid_put'>put</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/manager/restart</span><span class='tstring_end'>&#39;</span></span>
@@ -1532,8 +1515,7 @@ that specific day.</p>
1532
1515
  </span>
1533
1516
 
1534
1517
  &mdash; <div class='inline'>
1535
- <p>Validates the content of the file. An error will be returned if file
1536
- content is not strictly correct. False by default.</p>
1518
+ <p>Validates the content of the file. An error will be returned if file content is not strictly correct. False by default.</p>
1537
1519
  </div>
1538
1520
 
1539
1521
  </li>
@@ -1588,9 +1570,9 @@ content is not strictly correct. False by default.</p>
1588
1570
  </div>
1589
1571
 
1590
1572
  <div id="footer">
1591
- Generated on Tue Feb 18 20:12:28 2020 by
1573
+ Generated on Thu Feb 3 21:40:18 2022 by
1592
1574
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1593
- 0.9.16 (ruby-2.5.1).
1575
+ 0.9.25 (ruby-2.6.3).
1594
1576
  </div>
1595
1577
 
1596
1578
  </div>
@@ -6,15 +6,15 @@
6
6
  <title>
7
7
  Module: Wazuh::Api::Endpoints::Rootcheck
8
8
 
9
- &mdash; Documentation by YARD 0.9.16
9
+ &mdash; Documentation by YARD 0.9.25
10
10
 
11
11
  </title>
12
12
 
13
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
13
+ <link rel="stylesheet" href="../../../css/style.css" type="text/css" />
14
14
 
15
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
15
+ <link rel="stylesheet" href="../../../css/common.css" type="text/css" />
16
16
 
17
- <script type="text/javascript" charset="utf-8">
17
+ <script type="text/javascript">
18
18
  pathId = "Wazuh::Api::Endpoints::Rootcheck";
19
19
  relpath = '../../../';
20
20
  </script>
@@ -76,7 +76,7 @@
76
76
 
77
77
  <dl>
78
78
  <dt>Included in:</dt>
79
- <dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span></dd>
79
+ <dd><span class='object_link'><a href="../Endpoints.html" title="Wazuh::Api::Endpoints (module)">Wazuh::Api::Endpoints</a></span>, <span class='object_link'><a href="V4/Rootcheck.html" title="Wazuh::Api::Endpoints::V4::Rootcheck (module)">V4::Rootcheck</a></span></dd>
80
80
  </dl>
81
81
 
82
82
 
@@ -121,8 +121,7 @@
121
121
 
122
122
 
123
123
  <span class="summary_desc"><div class='inline'>
124
- <p>Clear rootcheck database of an agent Clears the rootcheck database for a
125
- specific agent.</p>
124
+ <p>Clear rootcheck database of an agent Clears the rootcheck database for a specific agent.</p>
126
125
  </div></span>
127
126
 
128
127
  </li>
@@ -170,8 +169,7 @@ specific agent.</p>
170
169
 
171
170
 
172
171
  <span class="summary_desc"><div class='inline'>
173
- <p>Get rootcheck CIS requirements Returns the CIS requirements of all
174
- rootchecks of the specified agent.</p>
172
+ <p>Get rootcheck CIS requirements Returns the CIS requirements of all rootchecks of the specified agent.</p>
175
173
  </div></span>
176
174
 
177
175
  </li>
@@ -243,8 +241,7 @@ rootchecks of the specified agent.</p>
243
241
 
244
242
 
245
243
  <span class="summary_desc"><div class='inline'>
246
- <p>Get rootcheck pci requirements Returns the PCI requirements of all
247
- rootchecks of the agent.</p>
244
+ <p>Get rootcheck pci requirements Returns the PCI requirements of all rootchecks of the agent.</p>
248
245
  </div></span>
249
246
 
250
247
  </li>
@@ -268,8 +265,7 @@ rootchecks of the agent.</p>
268
265
 
269
266
 
270
267
  <span class="summary_desc"><div class='inline'>
271
- <p>Run rootcheck scan in an agent Runs syscheck and rootcheck on a specified
272
- agent (Wazuh launches both processes simultaneously).</p>
268
+ <p>Run rootcheck scan in an agent Runs syscheck and rootcheck on a specified agent (Wazuh launches both processes simultaneously).</p>
273
269
  </div></span>
274
270
 
275
271
  </li>
@@ -293,8 +289,7 @@ agent (Wazuh launches both processes simultaneously).</p>
293
289
 
294
290
 
295
291
  <span class="summary_desc"><div class='inline'>
296
- <p>Run rootcheck scan in all agents Runs syscheck and rootcheck on all agents
297
- (Wazuh launches both processes simultaneously).</p>
292
+ <p>Run rootcheck scan in all agents Runs syscheck and rootcheck on all agents (Wazuh launches both processes simultaneously).</p>
298
293
  </div></span>
299
294
 
300
295
  </li>
@@ -321,8 +316,7 @@ agent (Wazuh launches both processes simultaneously).</p>
321
316
  </h3><div class="docstring">
322
317
  <div class="discussion">
323
318
 
324
- <p>Clear rootcheck database of an agent Clears the rootcheck database for a
325
- specific agent.</p>
319
+ <p>Clear rootcheck database of an agent Clears the rootcheck database for a specific agent.</p>
326
320
 
327
321
 
328
322
  </div>
@@ -433,8 +427,7 @@ specific agent.</p>
433
427
  </h3><div class="docstring">
434
428
  <div class="discussion">
435
429
 
436
- <p>Get rootcheck CIS requirements Returns the CIS requirements of all
437
- rootchecks of the specified agent.</p>
430
+ <p>Get rootcheck CIS requirements Returns the CIS requirements of all rootchecks of the specified agent.</p>
438
431
 
439
432
 
440
433
  </div>
@@ -537,15 +530,13 @@ rootchecks of the specified agent.</p>
537
530
 
538
531
  41
539
532
  42
540
- 43
541
- 44</pre>
533
+ 43</pre>
542
534
  </td>
543
535
  <td>
544
536
  <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 41</span>
545
537
 
546
538
  <span class='kw'>def</span> <span class='id identifier rubyid_rootcheck_cis_requirements'>rootcheck_cis_requirements</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</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>
547
- <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/rootcheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/cis</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
548
- <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
539
+ <span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>get</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/rootcheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/cis</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
549
540
  <span class='kw'>end</span></pre>
550
541
  </td>
551
542
  </tr>
@@ -692,17 +683,15 @@ rootchecks of the specified agent.</p>
692
683
  <pre class="lines">
693
684
 
694
685
 
686
+ 57
695
687
  58
696
- 59
697
- 60
698
- 61</pre>
688
+ 59</pre>
699
689
  </td>
700
690
  <td>
701
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 58</span>
691
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 57</span>
702
692
 
703
693
  <span class='kw'>def</span> <span class='id identifier rubyid_rootcheck_database'>rootcheck_database</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</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>
704
- <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/rootcheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
705
- <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
694
+ <span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>get</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/rootcheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
706
695
  <span class='kw'>end</span></pre>
707
696
  </td>
708
697
  </tr>
@@ -784,8 +773,7 @@ rootchecks of the specified agent.</p>
784
773
  </h3><div class="docstring">
785
774
  <div class="discussion">
786
775
 
787
- <p>Get rootcheck pci requirements Returns the PCI requirements of all
788
- rootchecks of the agent.</p>
776
+ <p>Get rootcheck pci requirements Returns the PCI requirements of all rootchecks of the agent.</p>
789
777
 
790
778
 
791
779
  </div>
@@ -886,17 +874,15 @@ rootchecks of the agent.</p>
886
874
  <pre class="lines">
887
875
 
888
876
 
889
- 72
890
- 73
891
- 74
892
- 75</pre>
877
+ 70
878
+ 71
879
+ 72</pre>
893
880
  </td>
894
881
  <td>
895
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 72</span>
882
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 70</span>
896
883
 
897
884
  <span class='kw'>def</span> <span class='id identifier rubyid_rootcheck_pic_requirements'>rootcheck_pic_requirements</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</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>
898
- <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='id identifier rubyid_get'>get</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/rootcheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/pci</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span>
899
- <span class='id identifier rubyid_data'>data</span><span class='period'>.</span><span class='id identifier rubyid_items'>items</span>
885
+ <span class='id identifier rubyid_offset_request'>offset_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>get</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/rootcheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_content'>/pci</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
900
886
  <span class='kw'>end</span></pre>
901
887
  </td>
902
888
  </tr>
@@ -915,8 +901,7 @@ rootchecks of the agent.</p>
915
901
  </h3><div class="docstring">
916
902
  <div class="discussion">
917
903
 
918
- <p>Run rootcheck scan in an agent Runs syscheck and rootcheck on a specified
919
- agent (Wazuh launches both processes simultaneously)</p>
904
+ <p>Run rootcheck scan in an agent Runs syscheck and rootcheck on a specified agent (Wazuh launches both processes simultaneously)</p>
920
905
 
921
906
 
922
907
  </div>
@@ -952,12 +937,12 @@ agent (Wazuh launches both processes simultaneously)</p>
952
937
  <pre class="lines">
953
938
 
954
939
 
955
- 90
956
- 91
957
- 92</pre>
940
+ 87
941
+ 88
942
+ 89</pre>
958
943
  </td>
959
944
  <td>
960
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 90</span>
945
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 87</span>
961
946
 
962
947
  <span class='kw'>def</span> <span class='id identifier rubyid_run_rootcheck'>run_rootcheck</span><span class='lparen'>(</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='rparen'>)</span>
963
948
  <span class='id identifier rubyid_put'>put</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/rootcheck/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_agent_id'>agent_id</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
@@ -979,8 +964,7 @@ agent (Wazuh launches both processes simultaneously)</p>
979
964
  </h3><div class="docstring">
980
965
  <div class="discussion">
981
966
 
982
- <p>Run rootcheck scan in all agents Runs syscheck and rootcheck on all agents
983
- (Wazuh launches both processes simultaneously).</p>
967
+ <p>Run rootcheck scan in all agents Runs syscheck and rootcheck on all agents (Wazuh launches both processes simultaneously).</p>
984
968
 
985
969
 
986
970
  </div>
@@ -1001,12 +985,12 @@ agent (Wazuh launches both processes simultaneously)</p>
1001
985
  <pre class="lines">
1002
986
 
1003
987
 
1004
- 81
1005
- 82
1006
- 83</pre>
988
+ 78
989
+ 79
990
+ 80</pre>
1007
991
  </td>
1008
992
  <td>
1009
- <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 81</span>
993
+ <pre class="code"><span class="info file"># File 'lib/wazuh/api/endpoints/rootcheck.rb', line 78</span>
1010
994
 
1011
995
  <span class='kw'>def</span> <span class='id identifier rubyid_run_rootcheck_all_agents'>run_rootcheck_all_agents</span>
1012
996
  <span class='id identifier rubyid_put'>put</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/rootcheck</span><span class='tstring_end'>&#39;</span></span>
@@ -1021,9 +1005,9 @@ agent (Wazuh launches both processes simultaneously)</p>
1021
1005
  </div>
1022
1006
 
1023
1007
  <div id="footer">
1024
- Generated on Tue Feb 18 20:12:28 2020 by
1008
+ Generated on Thu Feb 3 21:40:18 2022 by
1025
1009
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1026
- 0.9.16 (ruby-2.5.1).
1010
+ 0.9.25 (ruby-2.6.3).
1027
1011
  </div>
1028
1012
 
1029
1013
  </div>