wazuh-ruby-client 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/wazuh/api/endpoints/agents.rb +30 -0
- data/lib/wazuh/version.rb +1 -1
- data/lib/wazuh-ruby-client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12ff65b6ff7cd8db4eb54f34b9fee287cf470b834128660fec3a916c3f087e2e
|
4
|
+
data.tar.gz: 346f08089605c17c7912eb7566911b9a5668f8111bd8d37eaaf2e05b829f7dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62967df96da9b6733360621c2e9ef893853aa48723d92527105e1e14d43ce58272fb6b5702212e67f2981040ced1f7e203d4f181ff6add5520b01296302a2b03
|
7
|
+
data.tar.gz: d8ac38fbd67b25e6deeb1214b5ff1fa083869fd4465345b204d24498a87f86596f19ea9943242eaf8a4d54875caef0b1bd1a145a90fef3a5be5b242c9348a781
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.2.6]
|
11
|
+
|
12
|
+
- Support agent upgrade endpoint
|
13
|
+
- `/agents/:agent_id/upgrade_custom`
|
14
|
+
- `/agents/:agent_id/upgrade`
|
15
|
+
|
10
16
|
## [0.2.5]
|
11
17
|
|
12
18
|
- Get all items with `offset_request`
|
@@ -131,6 +131,36 @@ module Wazuh
|
|
131
131
|
get "/agents/#{agent_id}/upgrade_result", options
|
132
132
|
end
|
133
133
|
|
134
|
+
# Upgrade agent using custom file.
|
135
|
+
#
|
136
|
+
# @param [String] :agent_id
|
137
|
+
# Agent unique ID.
|
138
|
+
# @option options [String] :file_path
|
139
|
+
# Path to the WPK file. The file must be on a folder on the Wazuh’s installation directory (by default, <code>/var/ossec</code>).
|
140
|
+
# @option options [String] :installer
|
141
|
+
# Installation script.
|
142
|
+
# @see https://documentation.wazuh.com/3.12/user-manual/api/reference.html#upgrade-agent-using-custom-file
|
143
|
+
def agent_upgrade_custom(agent_id, options = {})
|
144
|
+
put "/agents/#{agent_id}/upgrade_custom", options
|
145
|
+
end
|
146
|
+
|
147
|
+
# Upgrade agent using online repository
|
148
|
+
#
|
149
|
+
# Upgrade the agent using a WPK file from online repository.
|
150
|
+
# @param [String] :agent_id
|
151
|
+
# @option options [String] :wpk_repo
|
152
|
+
# WPK repository.
|
153
|
+
# @option options [String] :version
|
154
|
+
# Wazuh version
|
155
|
+
# @option options [Boolean] :use_http
|
156
|
+
# Use protocol HTTP. If it is false use HTTPS. By default the value is set to false.
|
157
|
+
# @option options [Integer] :force
|
158
|
+
# Force upgrade. Allow values: 0 or 1.
|
159
|
+
# @see https://documentation.wazuh.com/3.12/user-manual/api/reference.html#upgrade-agent-using-online-repository
|
160
|
+
def agent_upgrade(agent_id, options = {})
|
161
|
+
put "/agents/#{agent_id}/upgrade", options
|
162
|
+
end
|
163
|
+
|
134
164
|
# Add a new agent
|
135
165
|
#
|
136
166
|
# @option options [name] :name
|
data/lib/wazuh/version.rb
CHANGED