Elastic Agent actions

Bulk restart agents

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/fleet/agents/bulk_restart</span></div>

Refer to Spaces for more information.

Restart multiple Elastic Agents. Agents that are enrolled in a hosted policy or are on a version earlier than 9.6.0 are excluded from the action and receive individual error results.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

post/api/fleet/agents/bulk_restart

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/fleet/agents/bulk_restart
  • Auth
    • API key in header Authorization
    • or HTTP basic

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

batchSizenumber
includeInactiveboolean

Response

OK: A successful request.

OR

Changes

No operation changes recorded.