Controlling cluster state via API