cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
998
Views
0
Helpful
8
Replies

HA Live Status URL

equinix
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions
8 Replies 8

frjansso
Cisco Employee
Cisco Employee

Fredrik, The URL which you gave gets you the HA configuration. It will not get you the current status.

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.

I might be wrong on that. Let me cross check and let you know asap.

Thanks Fredrik

Thanks fredrik. You saved my day It worked as expected. Thanks again

Awesome!

Is there an HTTPS version of this URL

Yes there is an HTTPS version if you enable HTTPS. Check chapter "Initial NSO configuration - ncs.conf" in the NSO admin guide.