Create connector Run in API Explorer

POST /v1/kafka-connect/clusters/{cluster_name}/connectors

Create a connector with the specified configuration.

Path parameters

  • cluster_name string Required

    Unique name of target connect cluster. For Redpanda Cloud, use redpanda.

application/json

Body Required

  • config object Required

    Connector configuration properties.

    Hide config attribute Show config attribute object
    • * string Additional properties
  • name string Required

    Name of connector.

Responses

  • 201 application/json

    Created

    Hide response attribute Show response attribute object
    • connector object

      Connector specifications as defined in the Kafka Connect API. You may include this in the request body when creating a new connector.

      Hide connector attributes Show connector attributes object
      • config object Required

        Connector configuration properties.

        Hide config attribute Show config attribute object
        • * string Additional properties
      • name string Required

        Name of connector.

      • tasks array[object]
        Hide tasks attributes Show tasks attributes object
        • connector string

          Name of connector.

        • task integer(int32)

          The connector task ID.

      • type string
  • 401 application/json

    Unauthenticated.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • 500 application/json

    Internal Server Error. Reach out to support.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • default application/json

    An unexpected error response.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

POST /v1/kafka-connect/clusters/{cluster_name}/connectors
curl \
 --request POST 'https://{dataplane_api_subdomain}.cloud.redpanda.com/v1/kafka-connect/clusters/{cluster_name}/connectors' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"config":{"additionalProperty1":"string","additionalProperty2":"string"},"name":"string"}'
Request examples
{
  "config": {
    "additionalProperty1": "string",
    "additionalProperty2": "string"
  },
  "name": "string"
}
Response examples (201)
{
  "connector": {
    "config": {
      "additionalProperty1": "string",
      "additionalProperty2": "string"
    },
    "name": "string",
    "tasks": [
      {
        "connector": "string",
        "task": 42
      }
    ],
    "type": "string"
  }
}
Response examples (401)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (500)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (default)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string"
        }
      ]
    }
  ],
  "message": "string"
}