Fleet enrollment API keys

Create an enrollment API key

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

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

Changed in 1 of the 176 revisions of this API.11

  • 607cb6954f1411See the full diff
    • ●

      the request property's maxLength was set to 20

      request-property-max-length-set

    • ○

      added the optional property / to the response with the status

      response-optional-property-added

Of the 176 revisions, 20 have no diff computed.