AMBARI-6581. Provide API to support which RM is Active/Passive.(vbrodetskyi)