Highlighted
siddhant_jain
1 Copper

How to find the status of a node via REST Calls?

Hello,

Could some one help me out to figure out what is exact state of an Atmos Node through REST Calls?  I understand that an atmos node can be in around 13 states (operational, degraded, disconnected, installing, etc.).

Are there any REST calls that can help figure out the exact state of the node without having to log in the System Adminstration Console?

Thank you for your time.

Labels (2)
0 Kudos
2 Replies
coneryj
6 Indium

Re: How to find the status of a node via REST Calls?

This question is being investigated. I am just having some discussions with engineering and will report back to you shortly.

0 Kudos
coneryj
6 Indium

Re: How to find the status of a node via REST Calls?

There is an undocumented POX api which can be seen which is unsupported and subject to change which works via the gui code:

curl -i --insecure https://<ip>/mgmt/node_dashboard?hostname=<hostName> -H "Accept: application/xml" -H "Cookie: _gui_session_id=xxxxx”

If you need to get the node name you can get the by:

1) get the list of RMGs

curl --insecure -H "accept: */*" -H "x-atmos-systemadminpassword: password" -H "x-atmos-systemadmin: sysadmin" -H "x-atmos-authtype: password"

https://<hostip>/sysmgmt/rmgs


2) get the list of nodes from an rmg

curl --insecure -H "accept: */*" -H "x-atmos-systemadminpassword: password" -H "x-atmos-systemadmin: sysadmin" -H "x-atmos-authtype: password" https://<hostip>/sysmgmt/rmgs/irodtest/nodes

0 Kudos