Elastic Agents

Migrate multiple agents

Changed on

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_migrate</span></div>

Refer to Spaces for more information.

Bulk migrate agents to another cluster.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

post/api/fleet/agents/bulk_migrate

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/fleet/agents/bulk_migrate
  • 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
dryRunboolean
enrollment_tokenstring required
uristring uri required

Response

Successful response

OR

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property from the response with the status

    • info

      added the new optional request property

    • info

      added subschema #1 subschema #2 to the response body anyOf list for the response status