use the new method for getting hosts and groups in REST service