Obtain Topic Attribute

Last updated: 2020-07-30 11:27:46


    This is a legacy API which has been hidden and will no longer be updated. We recommend using the new CKafka API 3.0 which is standardized and faster.

    1. API Description

    This API (GetTopicAttributes) is used to obtain the topic attributes of a CKafka instance.

    Domain name for API request: ckafka.api.qcloud.com

    2. Input Parameters

    The following request parameter list only provides API request parameters. Other parameters can be found in Common Request Parameters.

    Parameter Name Required Type Description
    instanceId Yes String Instance ID
    topicName No String Topic name

    3. Output Parameters

    Parameter Name Type Description
    topicId String Topic ID
    partitionNum Int Number of partitions
    enableWhiteList int Whether to enable IP allowlist. 1: Enable 0: Disable
    ipWhiteList array IP allowlist
    createTime Int Creation time, expressed as timestamp (in second)
    partitions Array Partition details
    partitions::partition Int Partition id
    partitions :: leaderStatus Int Running status of leader
    partitions::replicaNum array Number of replicas
    partitions::isrNum array Number of ISRs

    4. Example


     https://domain/v2/index.php?Action=GetTopicAttributes&instanceId=ckafka-xxooa0&<Common request parameters>


          "code" : 0,
          "message" : "ok",
    "topicId" : "topic-xxoo234",
    "partitionNum" : 2,
    "enableWhiteList" : 1,
    "ipWhiteList" :[""],
    "partitions" : [
    "isrNum": 3,
    "replicaNum" : 3
    "isrNum": 2,
    "replicaNum" : 3

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback