Get enrollment API key by ID Deprecated

GET /api/fleet/enrollment-api-keys/{keyId}

Spaces method and path for this operation:

get /s/{space_id}/api/fleet/enrollment-api-keys/{keyId}

Refer to Spaces for more information.

Path parameters

  • keyId string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • item object Required
      Hide item attributes Show item attributes object
      • active boolean Required

        When false, the enrollment API key is revoked and cannot be used for enrolling Elastic Agents.

      • api_key string Required

        The enrollment API key (token) used for enrolling Elastic Agents.

      • api_key_id string Required

        The ID of the API key in the Security API.

      • created_at string Required
      • id string Required
      • name string

        The name of the enrollment API key.

      • policy_id string

        The ID of the agent policy the Elastic Agent will be enrolled in.

  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
GET /api/fleet/enrollment-api-keys/{keyId}
curl \
 --request GET 'https://localhost:5601/api/fleet/enrollment-api-keys/{keyId}' \
 --header "Authorization: $API_KEY"