Restart an agent
- Base URL
-
https://{kibana_url}
- POST /api/fleet/agents/{agentId}/restart
- POST /s/{space_id}/api/fleet/agents/{agentId}/restart
Restart an Elastic Agent. The request fails when the agent is inactive, on a version earlier than 9.6.0, or enrolled in a hosted agent policy. It also fails with a 409 when the agent already has a pending restart action, unless force is set.
Required privileges
fleet-agents-all
Path parameters
-
space_idstringoptional -
An identifier for the space. If
space_idis not provided in the URL, the default space is used. Refer to Spaces for more information.
Responses
A bad request.