[Fleet] GET /api/fleet/agents/:id
should return audit_unenrolled_reason
in response body
#194884
Labels
Team:Fleet
Team label for Observability Data Collection Fleet team
Describe the feature:
In elastic/fleet-server#3818, we introduced a new Fleet Server API,
POST /api/fleet/agents/:id/audit/unenroll
. When called by Agent, this API records a newaudit_unenrolled_reason
field in.fleet-agents
documents.It would be convenient if the
GET /api/fleet/agents/:id
API returned thisaudit_unenrolled_reason
field in its response body.Describe a specific use case for the feature:
For writing E2E tests (see https://github.com/elastic/elastic-agent/pull/5302/files#r1738582241) and potentially for displaying in the Fleet UI.
The text was updated successfully, but these errors were encountered: