You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of these endpoints support an agents parameter which can be either a list of agent ids or a query string.
Update the documentation so that it is clearer what is supported.
Filtering on 2 agent policies:
POST http://localhost:5620/api/fleet/agents/bulk_reassign
{"policy_id":"e9d53200-f7b4-11ec-a9a9-0d6b33170dda","agents":" fleet-agents.policy_id : (\"9a00e890-f783-11ec-a9a9-0d6b33170dda\" or \"e9d53200-f7b4-11ec-a9a9-0d6b33170dda\")"}
No filters:
POST http://localhost:5620/api/fleet/agents/bulk_upgrade
{"version":"8.2.1","agents":"","rollout_duration_seconds":3600,"start_time":"2022-06-29T14:13:24.649Z"}
Filter on Updating only:
POST http://localhost:5620/api/fleet/agents/bulk_unenroll
{"agents":"((upgrade_started_at:*) and not (upgraded_at:*)) or (not (last_checkin:*)) or (unenrollment_started_at:*)","revoke":false}
Improve OpenAPI spec for agent bulk actions:
All of these endpoints support an
agents
parameter which can be either a list of agent ids or a query string.Update the documentation so that it is clearer what is supported.
E.g. https://petstore.swagger.io/?url=https://raw.githubusercontent.com/elastic/kibana/main/x-pack/plugins/fleet/common/openapi/bundled.json#/default/bulk-reassign-agents
Some examples by triggering from UI:
Originally posted by @juliaElastic in #135425 (comment)
The text was updated successfully, but these errors were encountered: