xcat2 / xcat-inventory

An inventory tool for xcat cluster
8 stars 16 forks source link

Status API for specific node #205

Closed robin2008 closed 5 years ago

robin2008 commented 5 years ago

https://github.ibm.com/xcat2/task_management/issues/188

1, replace with the new get_nodes_list method; 2, add path for node status

curl http://10.6.27.1:5000/api/v2/system/nodes/mid05tor12cn03/_status
{
    "status": {
        "boot": {
            "state": "powering-on",
            "updated_at": "05-14-2019 01:59:19"
        },
        "sync": {
            "state": "synced",
            "updated_at": "02-13-2019 00:26:52"
        }
    },
    "meta": {
        "name": "mid05tor12cn03"
    }
}
bybai commented 5 years ago

I am OK to merge it.