code: private void taskHosts(RESTRequest request, RESTResponse response) {
          String taskID = RESTHelper.getRequiredParam(request, APIConstants.PARAM_TASK_ID);
  
          String taskHostsJson = getMultipleRoutingHelper().getHosts(taskID);
          OutputHelper.writeJsonOutput(response, taskHostsJson);
      }
docs: Returns a JSON array of {hostName, status, } tuple, representing the host names associated with that task (no particular order).
  
  [ {"hostName" : "host", "hostStatus" : "status", "hostURL" : "url"}* ]