Add Topic Whitelist

Last updated: 2019-07-05 11:56:23

1. API Description

This API (AddTopicIpwhitelist) is used to add a whitelist for a topic.

Domain name for API request:

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
ipWhiteList.n Yes String Required. IP whitelist

3. Example


 https://domain/v2/index.php?Action=AddTopicIpwhitelist&instanceId=ckafka-xxooa0&topicName=tinatest&ipWhiteList.n=<Common request parameters>


      "code" : 0,
      "message" : "ok",

Note: If the IP whitelist is empty, all the IPs are not allowed to access this topic. Otherwise, only the IPs in the whitelist are allowed. This API adds the IPs in ipWhiteList to the existing whitelist.