Open davidraker opened 2 years ago
This can be accomplished using a combination of the "list_agents" and "status_agents" RPC calls to the control service. It should provide similar information as that given by vctl status.
Break the main logic of this endpoint into its own helper function. This will be use by this method (handle_platforms_status()) and also by the handle_platforms_agents_status() method.
Get status for all agents on the platform.
Request:
BEARER <jwt_token>
Response:
200 OK
application/json
400 Bad Request
application/json
401 Unauthorized