Create enrollment API key
deprecated
Server:
https://{kibana_url}
- POST /api/fleet/enrollment-api-keys
- POST /s/{space_id}/api/fleet/enrollment-api-keys
Refer to Spaces for more information.
Responses
OK
-
action -
Values:
created -
item -
activebooleanrequired -
When false, the enrollment API key is revoked and cannot be used for enrolling Elastic Agents.
-
api_keystringrequired -
The enrollment API key (token) used for enrolling Elastic Agents.
-
api_key_idstringrequired -
The ID of the API key in the Security API.
-
created_atstringrequired -
idstringrequired -
namestring -
The name of the enrollment API key.
-
policy_idstring -
The ID of the agent policy the Elastic Agent will be enrolled in.
Generic Error
-
errorstring -
messagestring -
statusCodenumber