Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/bulk_restart
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.
[Required authorization] Route required privileges: fleet-agents-all.
POST
/api/fleet/agents/bulk_restart
curl \
--request POST 'https://localhost:5601/api/fleet/agents/bulk_restart' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{
"agents": [
"agent-1",
"agent-2"
],
"batchSize": 100,
"includeInactive": false
}'
Request example
{
"agents": [
"agent-1",
"agent-2"
],
"batchSize": 100,
"includeInactive": false
}
Response examples (200)
{
"actionId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
Response examples (400)
{
"message": "Bad Request"
}