Set Message Forwarding

Last updated: 2020-06-05 18:56:48

    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

    API domain name: ckafka.api.qcloud.com
    This API (SetForward) is used to configure the forwarding rules for CKafka topics.

    2. Input Parameters

    The list below contains only the 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
    status Yes Int Forwarding task status. 0: add; 1: terminate
    cosBucket No String Forwarding cos bucket destination. Required if status is 0
    interval No Int Forwarding time interval in seconds. Default value is 300 seconds. Maximum is 3,600 seconds. Minimum is 300 seconds

    3. Samples

    Input:

     https://domain/v2/index.php?Action=SetForward&instanceId=ckafka-iamatest&topicName=mytopic&status=0&cosBucket=mybucket-125125125.cos.ap-guangzhou.myqcloud.com&interval=300<Common Request Parameters>

    Output:

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

    Was this page helpful?

    Was this page helpful?

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