Get an enrollment API key
Get an enrollment API key by ID.
Headers
-
elastic-api-version string
The version of the API to use
Value is
2023-10-31
. Default value is2023-10-31
.
GET /api/fleet/enrollment_api_keys/{keyId}
curl \
-X GET https://localhost:5601/api/fleet/enrollment_api_keys/{keyId} \
-H "elastic-api-version: 2023-10-31"
Response examples (200)
{
"item": {
"active": true,
"api_key": "string",
"api_key_id": "string",
"created_at": "string",
"id": "string",
"name": "string",
"policy_id": "string"
}
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}