Configuring connectors using the REST API

Using the REST API, you can run curl commands to upload json configuration files for your Data Gate for Confluent Debezium connectors. The Kafka platform is fully manageable via REST. API endpoint documentation is available on the Confluent website.

Procedure

  • To upload a json configuration file for a single connector:
    1. Open a terminal window and log on to the Confluent server.
    2. Enter the appropriate curl command.
      Example:
      curl -X POST http://localhost:8083/connectors \
        -H "Content-Type: application/json" \
        -d @db2z-connector-config.json
  • To upload json configuration files for more than one connector, make sure to upload a different json configuration file for each connector. Also make sure that each upload addresses a different port because there can be only one connector per Kafka Connect worker.
    1. Open a terminal window and log on to the Confluent server.
    2. Enter the appropriate curl command.
      Example for two connectors:
      # Deploy to Worker 1 (port 8083)
      curl -X POST http://localhost:8083/connectors \
        -H "Content-Type: application/json" \
        -d @db2z-connector-system-a.json
      
      # Deploy to Worker 2 (port 8084)
      curl -X POST http://localhost:8084/connectors \
        -H "Content-Type: application/json" \
        -d @db2z-connector-system-b.json