Connections > Kafka Connect

APIs for managing connections that use the KafkaConnect template.

DEPRECATED: This endpoint is deprecated and will be removed in a future version. Use provisioning APIs instead.

List available connections

get

Returns the list of available connections

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Responses
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections
GET /api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "name": "text",
    "lrn": "text",
    "templateName": "text",
    "templateVersion": 1,
    "tags": [
      "text"
    ],
    "deletable": true
  }
]

Add a new connection

post

Adds a new connection

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
namestringRequired

Name of the connection

Example: the-connection
tagsstring[]Optional
Responses
post
/api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections
POST /api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 787

{
  "name": "the-connection",
  "tags": [
    "text"
  ],
  "configurationObject": {
    "workers": [
      "http://connect1:8083"
    ],
    "aes256Key": "password",
    "username": "user",
    "password": "password",
    "sslKeystore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslKeystorePassword": "password",
    "sslKeyPassword": "password",
    "sslTruststore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslTruststorePassword": "password",
    "sslAlgorithm": "text",
    "metricsType": "JMX",
    "metricsPort": 9581,
    "metricsSsl": true,
    "metricsUsername": "username",
    "metricsPassword": "password",
    "metricsHttpSuffix": "/jolokia",
    "metricsHttpTimeout": 5000,
    "metricsCustomUrlMappings": {
      "http://connect1:8083": "connect1_jmx:9584"
    },
    "metricsCustomPortMappings": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "metricsRateLimitingMaxRetries": 5,
    "metricsRateLimitingBackoff": 30000
  }
}
{
  "name": "the-connection"
}

Add a new connection V2

post

Adds a new connection V2

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
namestringRequired

Name of the connection

Example: the-connection
tagsstring[]Optional
Responses
post
/api/v1/environments/{environment}/proxy/api/v2/connection/connection-templates/KafkaConnect/connections
POST /api/v1/environments/{environment}/proxy/api/v2/connection/connection-templates/KafkaConnect/connections HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 901

{
  "name": "the-connection",
  "tags": [
    "text"
  ],
  "configuration": {
    "workers": [
      "http://connect1:8083"
    ],
    "aes256Key": {
      "value": "password"
    },
    "username": "user",
    "password": {
      "value": "password"
    },
    "sslKeystore": {
      "value": {
        "fileId": "123e4567-e89b-12d3-a456-426614174000"
      }
    },
    "sslKeystorePassword": {
      "value": "password"
    },
    "sslKeyPassword": {
      "value": "password"
    },
    "sslTruststore": {
      "value": {
        "fileId": "123e4567-e89b-12d3-a456-426614174000"
      }
    },
    "sslTruststorePassword": {
      "value": "password"
    },
    "sslAlgorithm": {
      "value": "text"
    },
    "metricsType": {
      "value": "JMX"
    },
    "metricsPort": 9581,
    "metricsSsl": {
      "value": true
    },
    "metricsUsername": "username",
    "metricsPassword": {
      "value": "password"
    },
    "metricsHttpSuffix": "/jolokia",
    "metricsHttpTimeout": 5000,
    "metricsCustomUrlMappings": {
      "http://connect1:8083": "connect1_jmx:9584"
    },
    "metricsCustomPortMappings": {
      "value": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "metricsRateLimitingMaxRetries": 5,
    "metricsRateLimitingBackoff": 30000
  }
}
{
  "name": "the-connection"
}

Validate a connection

post

Validates the connection

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
namestringRequired

Name of the connection

Example: the-connection
updatebooleanOptional

true if testing an update to an existing connection, false if testing a new connection

Responses
200Success

No content

post
/api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/test
POST /api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/test HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 785

{
  "name": "the-connection",
  "configurationObject": {
    "workers": [
      "http://connect1:8083"
    ],
    "aes256Key": "password",
    "username": "user",
    "password": "password",
    "sslKeystore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslKeystorePassword": "password",
    "sslKeyPassword": "password",
    "sslTruststore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslTruststorePassword": "password",
    "sslAlgorithm": "text",
    "metricsType": "JMX",
    "metricsPort": 9581,
    "metricsSsl": true,
    "metricsUsername": "username",
    "metricsPassword": "password",
    "metricsHttpSuffix": "/jolokia",
    "metricsHttpTimeout": 5000,
    "metricsCustomUrlMappings": {
      "http://connect1:8083": "connect1_jmx:9584"
    },
    "metricsCustomPortMappings": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "metricsRateLimitingMaxRetries": 5,
    "metricsRateLimitingBackoff": 30000
  },
  "update": true
}

No content

Validate a connection V2

post

Validates the connection V2

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
Body
namestringRequired

Name of the connection

Example: the-connection
updatebooleanOptional

true if testing an update to an existing connection, false if testing a new connection

Responses
200Success

No content

post
/api/v1/environments/{environment}/proxy/api/v2/connection/connection-templates/KafkaConnect/connections/test
POST /api/v1/environments/{environment}/proxy/api/v2/connection/connection-templates/KafkaConnect/connections/test HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 899

{
  "name": "the-connection",
  "configuration": {
    "workers": [
      "http://connect1:8083"
    ],
    "aes256Key": {
      "value": "password"
    },
    "username": "user",
    "password": {
      "value": "password"
    },
    "sslKeystore": {
      "value": {
        "fileId": "123e4567-e89b-12d3-a456-426614174000"
      }
    },
    "sslKeystorePassword": {
      "value": "password"
    },
    "sslKeyPassword": {
      "value": "password"
    },
    "sslTruststore": {
      "value": {
        "fileId": "123e4567-e89b-12d3-a456-426614174000"
      }
    },
    "sslTruststorePassword": {
      "value": "password"
    },
    "sslAlgorithm": {
      "value": "text"
    },
    "metricsType": {
      "value": "JMX"
    },
    "metricsPort": 9581,
    "metricsSsl": {
      "value": true
    },
    "metricsUsername": "username",
    "metricsPassword": {
      "value": "password"
    },
    "metricsHttpSuffix": "/jolokia",
    "metricsHttpTimeout": 5000,
    "metricsCustomUrlMappings": {
      "http://connect1:8083": "connect1_jmx:9584"
    },
    "metricsCustomPortMappings": {
      "value": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "metricsRateLimitingMaxRetries": 5,
    "metricsRateLimitingBackoff": 30000
  },
  "update": true
}

No content

Get connection details

get

Returns the connection details

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
namestringRequired

The name of the connection

Responses
200Success
application/json
get
/api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/{name}
GET /api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "name": "the-connection",
  "lrn": "text",
  "templateVersion": 1,
  "templateName": "Kafka",
  "builtIn": true,
  "createdBy": "text",
  "createdAt": 1,
  "modifiedBy": "text",
  "modifiedAt": 1,
  "configurationObject": {
    "workers": [
      "http://connect1:8083"
    ],
    "aes256Key": "password",
    "username": "user",
    "password": "password",
    "sslKeystore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslKeystorePassword": "password",
    "sslKeyPassword": "password",
    "sslTruststore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslTruststorePassword": "password",
    "sslAlgorithm": "text",
    "metricsType": "JMX",
    "metricsPort": 9581,
    "metricsSsl": true,
    "metricsUsername": "username",
    "metricsPassword": "password",
    "metricsHttpSuffix": "/jolokia",
    "metricsHttpTimeout": 5000,
    "metricsCustomUrlMappings": {
      "http://connect1:8083": "connect1_jmx:9584"
    },
    "metricsCustomPortMappings": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "metricsRateLimitingMaxRetries": 5,
    "metricsRateLimitingBackoff": 30000
  },
  "tags": [
    "text"
  ],
  "deletable": true
}

Update connection details

put

Updates the connection details

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
namestringRequired

The name of the connection

Body
tagsstring[]Optional
Responses
200Success
application/json
put
/api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/{name}
PUT /api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 763

{
  "tags": [
    "text"
  ],
  "configurationObject": {
    "workers": [
      "http://connect1:8083"
    ],
    "aes256Key": "password",
    "username": "user",
    "password": "password",
    "sslKeystore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslKeystorePassword": "password",
    "sslKeyPassword": "password",
    "sslTruststore": {
      "fileId": "123e4567-e89b-12d3-a456-426614174000"
    },
    "sslTruststorePassword": "password",
    "sslAlgorithm": "text",
    "metricsType": "JMX",
    "metricsPort": 9581,
    "metricsSsl": true,
    "metricsUsername": "username",
    "metricsPassword": "password",
    "metricsHttpSuffix": "/jolokia",
    "metricsHttpTimeout": 5000,
    "metricsCustomUrlMappings": {
      "http://connect1:8083": "connect1_jmx:9584"
    },
    "metricsCustomPortMappings": {
      "ANY_ADDITIONAL_PROPERTY": "text"
    },
    "metricsRateLimitingMaxRetries": 5,
    "metricsRateLimitingBackoff": 30000
  }
}
{
  "name": "the-connection"
}

Delete a connection

delete

Deletes the connection

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
namestringRequired

The name of the connection

Responses
200Success

No content

delete
/api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/{name}
DELETE /api/v1/environments/{environment}/proxy/api/v1/connection/connection-templates/KafkaConnect/connections/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Update connection details V2

put

Updates the connection details V2

Authorizations
AuthorizationstringRequired

The bearer token can be obtained by creating a ServiceAccount.

Path parameters
environmentstringRequired
namestringRequired

The name of the connection

Body
tagsstring[]Optional
Responses
200Success
application/json
put
/api/v1/environments/{environment}/proxy/api/v2/connection/connection-templates/KafkaConnect/connections/{name}
PUT /api/v1/environments/{environment}/proxy/api/v2/connection/connection-templates/KafkaConnect/connections/{name} HTTP/1.1
Host: api.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 877

{
  "tags": [
    "text"
  ],
  "configuration": {
    "workers": [
      "http://connect1:8083"
    ],
    "aes256Key": {
      "value": "password"
    },
    "username": "user",
    "password": {
      "value": "password"
    },
    "sslKeystore": {
      "value": {
        "fileId": "123e4567-e89b-12d3-a456-426614174000"
      }
    },
    "sslKeystorePassword": {
      "value": "password"
    },
    "sslKeyPassword": {
      "value": "password"
    },
    "sslTruststore": {
      "value": {
        "fileId": "123e4567-e89b-12d3-a456-426614174000"
      }
    },
    "sslTruststorePassword": {
      "value": "password"
    },
    "sslAlgorithm": {
      "value": "text"
    },
    "metricsType": {
      "value": "JMX"
    },
    "metricsPort": 9581,
    "metricsSsl": {
      "value": true
    },
    "metricsUsername": "username",
    "metricsPassword": {
      "value": "password"
    },
    "metricsHttpSuffix": "/jolokia",
    "metricsHttpTimeout": 5000,
    "metricsCustomUrlMappings": {
      "http://connect1:8083": "connect1_jmx:9584"
    },
    "metricsCustomPortMappings": {
      "value": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      }
    },
    "metricsRateLimitingMaxRetries": 5,
    "metricsRateLimitingBackoff": 30000
  }
}
{
  "name": "the-connection"
}

Last updated

Was this helpful?