Couchbase Rebalance Notification through CLI/REST/JAVA

Hi All,
Whenever we add/remove/failover any couchbase node from the cluster, cluster prompts (Fail Over Warning: Rebalance required, some data is not currently replicated) to fire Rebalance command through Couchbase Admin Web UI in order to replicate data.
Would it be possible or is there any way to know the same thing using couchbase-cli/REST API/Java API?
Any help would be appreciated.