Controlling cluster state via the API