var ids = [];angular.forEach(pulsarServers,function (server) { ids.push(server.id);});ids = ids.join(',');