Add read-only /api/v1/instances endpoint exposing deployed commit #125
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/read-only-instances-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What does this PR do?
Adds a read-only
GET /api/v1/instancesendpoint that exposes the deployed version and commit per registered instance, the same data the Admin UI Instances view shows. The handler reads the instance registry (D-0037) and the latest queue telemetry and folds them through the sharedQueueStatusView.Build, so the API and UI derive identical rows:instanceId, fullversion, nullablecommitSha, a nine-charactershortCommit,roles,hostName, nullableupgradeTarget,startedAt,reportedAt,queuesReported, nullablelastCapturedAt, and astalenessLighttraffic light.This makes deployment verification self-service: trusted automation can read the live deployed commit instead of scraping the Instances page. It amends D-0040 (read-only API); no schema change (read-only over existing stores).
Fixes #
How was this tested?
dotnet build- 0 errors, 0 warningsdotnet test- all tests pass (935 total, +1 new AdminApi handler test)Checklist