Skip to content

Private REST API

Alex O. Karasulu edited this page Jan 24, 2018 · 7 revisions

Here the private agent REST API is described. This API is to be used by the Subutai Console only.

Private REST API

Peer IP can be determined by running subutai info ipaddr on a RH

GET http://{peer-ip}:7070/ping - Console uses this endpoint to check if agent is running. Agent returns http 200 code in response.

GET http://{peer-ip}:7070/heartbeat - Console uses this endpoint to request agent to send a heartbeat to the Console. Heartbeat contains information about the RH and its containers. Agent returns http 200 code in response.

POST http://{peer-ip}:7070/trigger - Console uses this endpoint to request agent to fetch new commands from the Console for execution. Agent returns http 202 code in response.