Skip to Content
ReferenceHTTP APIGET /api/v1/machines

GET /api/v1/machines

Preview. Ships with the next server release.

Responses

StatusMeaningBody
200Known machines in the contourapplication/json object[]
401No owner or agent token of this contourapplication/json

Response fields

FieldTypeAlwaysMeaning
archstringyes
epochintegeryes
idstringyes
last_seenintegeryesUnix seconds of the last message from the machine.
namestringyes
onlinebooleanyes
osstringyes
programstringyes
sinceintegeryesUnix seconds: when the current link came up, or when the machine was last seen.
toolsstring[]yesTools the machine runs, as it announced them on its current or last link.

Example

curl -sS "https://<contour>.cmdop.ai/api/v1/machines" \ -H "Authorization: Bearer $CMDOP_TOKEN"