Migrate a single agent
Server:
https://{kibana_url}
- POST /api/fleet/agents/{agentId}/migrate
- POST /s/{space_id}/api/fleet/agents/{agentId}/migrate
Refer to Spaces for more information.
Migrate a single agent to another cluster.
[Required authorization] Route required privileges: fleet-agents-all.
Path Parameters
-
agentIdstringrequired -
The agent ID
Request
-
enrollment_tokenstringrequired -
settingsobject -
ca_sha256string -
elastic_agent_certstring -
elastic_agent_cert_keystring -
headersmap string to string -
insecureboolean -
proxy_disabledboolean -
proxy_headersmap string to string -
proxy_urlstring -
replace_tokenstring -
stagingstring -
uristringrequired
Responses
Successful response
-
actionIdstringrequired
Bad Request
-
attributesobjectrequired -
errorstring -
errorTypestring -
messagestringrequired -
statusCodenumber