Skip to main content

Read a Connector Configuration

GET 

/connect/v1/environments/:environment_id/clusters/:kafka_cluster_id/connectors/:connector_name/config

General Availability

Get the configuration for the connector.

Request

Responses

Connector.

OpenAPI definition (YAML)
paths:
  /connect/v1/environments/{environment_id}/clusters/{kafka_cluster_id}/connectors/{connector_name}/config:
    get:
      x-lifecycle-stage: General Availability
      operationId: getConnectv1ConnectorConfig
      description: '[![General Availability](https://img.shields.io/badge/Lifecycle%20Stage-General%20Availability-%2345c6e8)](#section/Versioning/API-Lifecycle-Policy)


        Get the configuration for the connector.'
      tags:
      - Connectors (connect/v1)
      security:
      - cloud-api-key: []
      - confluent-sts-access-token: []
      responses:
        '200':
          description: Connector.
          content:
            application/json:
              schema:
                type: object
                description: Configuration parameters for the connector.
                required:
                - cloud.environment
                - cloud.provider
                - connector.class
                - name
                - kafka.endpoint
                - kafka.region
                - kafka.api.key
                - kafka.api.secret
                properties:
                  cloud.environment:
                    type: string
                    description: The cloud environment type.
                  cloud.provider:
                    type: string
                    description: The cloud service provider, e.g. aws, azure, etc.
                    enum:
                    - aws
                    - azure
                    - gcp
                  connector.class:
                    type: string
                    description: The connector class name. E.g. BigQuerySink, GcsSink, etc.
                  name:
                    type: string
                    description: Name or alias of the class (plugin) for this connector. For Custom Connector,
                      it must be the same as connector_name.
                  kafka.endpoint:
                    type: string
                    description: The kafka cluster endpoint.
                  kafka.region:
                    type: string
                    description: The kafka cluster region.
                  kafka.api.key:
                    type: string
                    description: The kafka cluster api key.
                  kafka.api.secret:
                    type: string
                    description: The kafka cluster api secret key.
                    x-redact: true
                additionalProperties:
                  type: string
                  description: Other configuration parameters for the connector. See the connector's docs
                    for the list of options.
              example:
                cloud.environment: prod
                cloud.provider: aws
                connector.class: GcsSink
                data.format: BYTES
                flush.size: '1000'
                gcs.bucket.name: APILogsBucket
                gcs.credentials.config: '****************'
                kafka.api.key: '****************'
                kafka.api.secret: '****************'
                kafka.endpoint: SASL_SSL://pkc-xxxxx.us-west-2.aws.confluent.cloud:9092
                kafka.region: us-west-2
                name: MyGcsLogsBucketConnector
                tasks.max: '2'
                time.interval: DAILY
                topics: APILogsTopic
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    description: Connector Error with error code and message.
                    properties:
                      code:
                        type: integer
                        description: Error code for the type of error
                      message:
                        type: string
                        description: Human readable error message
                title: connect.v1.ConnectorError
              example:
                error:
                  code: 401
                  message: Unauthorized
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    description: Connector Error with error code and message.
                    properties:
                      code:
                        type: integer
                        description: Error code for the type of error
                      message:
                        type: string
                        description: Human readable error message
                title: connect.v1.ConnectorError
              example:
                error:
                  code: 404
                  message: account not found
        '429':
          description: Rate Limit Exceeded
          headers:
            X-Request-Id:
              schema:
                type: string
              description: The unique identifier for the API request.
            X-RateLimit-Limit:
              schema:
                type: integer
              description: The maximum number of requests you're permitted to make per time period.
            X-RateLimit-Remaining:
              schema:
                type: integer
              description: The number of requests remaining in the current rate limit window.
            X-RateLimit-Reset:
              schema:
                type: integer
              description: "The relative time in seconds until the current rate-limit window resets. \
                \ \n  \n**Important:** This differs from Github and Twitter's same-named header which\
                \ uses UTC epoch seconds. We use relative time to avoid client/server time synchronization\
                \ issues."
            Retry-After:
              schema:
                type: integer
              description: The number of seconds to wait until the rate limit window resets. Only sent
                when the rate limit is reached.
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    description: Connector Error with error code and message.
                    properties:
                      code:
                        type: integer
                        description: Error code for the type of error
                      message:
                        type: string
                        description: Human readable error message
                title: connect.v1.ConnectorError
              example:
                error:
                  code: 500
                  message: Oops, something went wrong
      parameters:
      - name: connector_name
        in: path
        schema:
          type: string
        required: true
        description: The unique name of the connector.
      - name: environment_id
        in: path
        schema:
          type: string
        required: true
        description: The unique identifier of the environment this resource belongs to.
      - name: kafka_cluster_id
        in: path
        schema:
          type: string
        required: true
        description: The unique identifier for the Kafka cluster.
      servers:
      - url: https://api.confluent.cloud
        description: Confluent Cloud API