@RequestMapping(value = "", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
    public TubeMQResult queryCluster(@RequestParam(required = false) Integer clusterId,
            @RequestParam(required = false) String clusterName, @RequestParam(required = false) String masterIp) {
        TubeMQResult result = new TubeMQResult();
        if (clusterId == null && clusterName == null && masterIp == null) {
            return queryAllClusterVo();
        }
        if (clusterId != null) {
            ClusterEntry clusterEntry = clusterService.getOneCluster(clusterId);
            if (clusterEntry == null) {
                return TubeMQResult.errorResult("no such cluster with id " + clusterId);
            }
            List<MasterEntry> masterNodes = masterService.getMasterNodes(clusterEntry.getClusterId());
            ClusterVo allCount = getCountInCluster(clusterId);
            result.setData(Lists.newArrayList(ConvertUtils.convertToClusterVo(clusterEntry, masterNodes, allCount)));
            return result;
        }
        if (clusterName != null) {
            result = queryClusterByClusterName(clusterName);
            return result;
        }
        if (masterIp != null) {
            result = queryClusterByMasterIp(masterIp);
            return result;
        }
        return result;
    }
query cluster info, if no clusterId is passed, return all clusters

@param clusterId
@return
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/controller/cluster/ClusterController.java