Status

Fleet Status.

Show the status of all agents within a fleet.

GEThttps://cloud-api.calyptia.com/v1/fleets/{fleetID}/status
Authorization
Path parameters
fleetID*string (uuid)
Response

OK

Body
managedinteger

total of all fleet agents.

healthyinteger

total of fleet agents that are deemed alive and fully up to date.

inProgressinteger

total of fleet agents that are pending a configuration update.

unhealthyinteger

total of all agents with a pending error or have not responded in a predetermined interval of time.

Request
const response = await fetch('https://cloud-api.calyptia.com/v1/fleets/{fleetID}/status', {
    method: 'GET',
    headers: {
      "Authorization": "Bearer <token>"
    },
});
const data = await response.json();
Response
{
  "managed": 0,
  "healthy": 0,
  "inProgress": 0,
  "unhealthy": 0
}