Add Partition

Last updated: 2020-06-05 18:53:58

    Note:

    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 (AddPartition) is used to add partitions in a topic.

    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 Yes String Topic name
    partitionNum Yes Int Required. Number of partitions

    3. Example

    Input:

     https://domain/v2/index.php?Action=AddPartition&instanceId=ckafka-xxooa0&topicName=tinatest&partitionNum=3&<Common request parameters>

    Output:

      {
          "code" : 0,
          "codeDesc":"Success",
          "message" : "ok",
      }
    

    Note: All the partitions under the same topic have the same number of replicas.

    Was this page helpful?

    Was this page helpful?

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