Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/bulk_remove_collectors
Refer to Spaces for more information.
Remove multiple OpAMP collectors from the Fleet agents list. Marks the collectors as unenrolled. This action does not invalidate API keys, so collectors can reconnect on their own.
[Required authorization] Route required privileges: fleet-agents-all.
POST
/api/fleet/agents/bulk_remove_collectors
curl \
--request POST 'https://localhost:5601/api/fleet/agents/bulk_remove_collectors' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"agents":["collector-id-1","collector-id-2"]}'
Request example
Remove multiple OpAMP collectors
{
"agents": [
"collector-id-1",
"collector-id-2"
]
}
Response examples (200)
Bulk remove collectors action result
{
"actionId": "action-id-1"
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}