Migrate multiple agents
Spaces method and path for this operation:
post /s/{space_id}/api/fleet/agents/bulk_migrate
Refer to Spaces for more information.
Bulk migrate agents to another cluster.
[Required authorization] Route required privileges: fleet-agents-all.
POST
/api/fleet/agents/bulk_migrate
curl \
--request POST 'https://<KIBANA_URL>/api/fleet/agents/bulk_migrate' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"agents":["string"],"batchSize":42.0,"enrollment_token":"string","settings":{"ca_sha256":"string","certificate_authorities":"string","elastic_agent_cert":"string","elastic_agent_cert_key":"string","elastic_agent_cert_key_passphrase":"string","headers":{"additionalProperty1":"string","additionalProperty2":"string"},"insecure":true,"proxy_disabled":true,"proxy_headers":{"additionalProperty1":"string","additionalProperty2":"string"},"proxy_url":"string","staging":"string","tags":["string"]},"uri":"https://example.com"}'