public static List<String> getTenants(RestTemplate restTemplate, PulsarClusterInfo clusterInfo)
            throws Exception {
        return HttpUtils.request(restTemplate, clusterInfo.getAdminUrls(QUERY_TENANTS_PATH), HttpMethod.GET, null,
                getHttpHeaders(clusterInfo.getToken()),
                ArrayList.class);
    }
Get pulsar tenant info list.

@param restTemplate spring framework RestTemplate
@param clusterInfo pulsar cluster info
@return list of pulsar tenant infos
@throws Exception any exception if occurred
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/queue/pulsar/PulsarUtils.java