Fleet enrollment API keys

Create an enrollment API key

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

Refer to Spaces for more information.

Create an enrollment API key for a given agent policy.<br/><br/>[Required authorization] Route required privileges: fleet-agents-all.

post/api/fleet/enrollment_api_keys

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/fleet/enrollment_api_keys
  • 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

expirationstring

The expiration time for the enrollment token, expressed as a duration (for example, 30d, 24h, 90m). By default, enrollment tokens never expire.

namestring
policy_idstring required

Response

Successful response

action'created' required

Changes

    • warning

      the request property's maxLength was set to 20

    • info

      added the optional property / to the response with the status