public static PulsarTopicMetadata getPartitionedTopicMetadata(RestTemplate restTemplate,
            PulsarClusterInfo clusterInfo, String topicPath) throws Exception {
        return HttpUtils.request(restTemplate,
                clusterInfo.getAdminUrls(QUERY_PERSISTENT_PATH + "/" + topicPath + "/partitions"), HttpMethod.GET, null,
                getHttpHeaders(clusterInfo.getToken()),
                PulsarTopicMetadata.class);
    }
Get partitioned topic metadata.

@param restTemplate spring framework RestTemplate
@param clusterInfo pulsar cluster info
@param topicPath pulsar topic path
@return pulsar topic metadata info
@throws Exception any exception if occurred
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/resource/queue/pulsar/PulsarUtils.java