11-14-2017 12:36 PM - edited 03-01-2019 04:02 AM
What's the REST API URL to get the live status of the HA cluster setup ?
I have tried the following command it works as expected but gives only the master and only one slave.
http://sample.com:8080/api/operational/ha/commands/_operations/status
Method : POST
Through CLI it gives me the expected result: cli > show ncs-state ha
My cluster setup is : 1 Master and 3 Slave
Anyone have a idea about how to get all the connected nodes through the REST API ?
Note : i don't want to read the default config but i wants to read the live status of the nodes.
Solved! Go to Solution.
11-14-2017 02:49 PM
Can you try this URL http://localhost:8080/api/operational/ncs-state/ha?deep
11-14-2017 02:49 PM
Can you try this URL http://localhost:8080/api/operational/ncs-state/ha?deep
11-14-2017 02:53 PM
Fredrik, The URL which you gave gets you the HA configuration. It will not get you the current status.
11-14-2017 02:59 PM
No, that will not return configuration, the URL for config would be: http://localhost:8080/api/running/ncs-state/ha\?deep<http://localhost:8080/api/running/ncs-state/ha%5C?deep>
I.e. running/operational in the path.
So the original URL maps to “show ncs-state ha” in the CLI.
11-14-2017 03:03 PM
I might be wrong on that. Let me cross check and let you know asap.
Thanks Fredrik
11-14-2017 03:08 PM
Thanks fredrik. You saved my day It worked as expected. Thanks again
11-15-2017 03:33 AM
Awesome!
10-01-2018 08:05 AM
Is there an HTTPS version of this URL
10-04-2018 12:45 AM
Yes there is an HTTPS version if you enable HTTPS. Check chapter "Initial NSO configuration - ncs.conf" in the NSO admin guide.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide