How to check the host status using rancher api?

Hi,

Could anyone please advise how to check whether a host is up or not using rancher API?.

I’m using rancher API to provision a host on Openstack. When the host is being provisioned on Openstack, rancher GUI shows statuses such as creating, bootstrapping etc.

I’d like to know how to get this status information and as well as whether a host is online or not in Rancher API.

Thank you.

There is an entry in /v1/machines for each one created through docker-machine (the Add Host screens except for “Custom”), which will contain the state, transitioning, and transitioningMessage. Once it’s active the agent will run and it will register itself and create a /v1/hosts entry.

Thank you Vincent. Checked it out.