You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: controllers/agents.js
+33-83Lines changed: 33 additions & 83 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,8 @@ var router = require('express').Router();
21
21
* @apiParam {Number} [limit=500] Maximum number of elements to return.
22
22
* @apiParam {String} [sort] Sorts the collection by a field or fields (separated by comma). Use +/- at the beginning to list in ascending or descending order.
23
23
* @apiParam {String} [search] Looks for elements with the specified string.
24
-
* @apiParam {String="active","pending","never connected", "disconnected"} [status] Filters by agent status.
24
+
* @apiParam {String="active", "pending", "neverconnected", "disconnected"} [status] Filters by agent status. Use commas to enter multiple statuses.
25
+
* @apiParam {String} older_than Filters out disconnected agents for longer than specified. Time in seconds | "[n_days]d" | "[n_hours]h" | "[n_minutes]m" | "[n_seconds]s". For never connected agents, uses the register date.
25
26
* @apiParam {String} [os.platform] Filters by OS platform.
26
27
* @apiParam {String} [os.version] Filters by OS version.
27
28
* @apiParam {String} [manager] Filters by manager hostname to which agents are connected.
* @apiParam {Boolean} purge Delete an agent from the key store.
917
+
* @apiParam {String="active", "pending", "neverconnected", "disconnected"} [status] Filters by agent status. Use commas to enter multiple statuses.
918
+
* @apiParam {String} older_than Filters out disconnected agents for longer than specified. Time in seconds | "[n_days]d" | "[n_hours]h" | "[n_minutes]m" | "[n_seconds]s". For never connected agents, uses the register date.
951
919
*
952
-
* @apiDescription Removes a list of agents. The Wazuh API must be restarted after removing an agent.
920
+
* @apiDescription Removes agents, using a list of them or a criterion based on the status or time of the last connection. The Wazuh API must be restarted after removing an agent.
0 commit comments