Wazuh icon

Wazuh

Work with the Wazuh Server API and Wazuh Indexer API

Actions15

Agent → Restart

AI-generated

Summary

Restart a specified Wazuh agent by its ID through the Wazuh Manager API, optionally controlling whether to wait for the operation's completion before proceeding.

Inputs

  • Agent ID (required) — The ID of the Wazuh agent to restart.
  • Wait for Complete — Boolean flag indicating whether to wait for the Wazuh API to disable its timeout response until the restart completes (default is false).

Output shape

A single JSON object representing the API response body from the restart request.

The output is the raw response body from the Wazuh Manager API restart endpoint for the specified agent. If the agent ID is invalid, the operation throws an error.

Examples

Example 1: Restart agent 001 and do not wait for completion

Set Agent ID to '001', Wait for Complete to false (default).

Example 2: Restart agent 002 and wait for the operation to complete

Set Agent ID to '002', enable Wait for Complete to true.

Links

Discussion