Create Connector
Create a connector instance
Create a new connector instance such as kafka connector
Show optional properties
{
"targetCluster": {
"tls": {},
"authentication": {},
"bootstrapServers": "10.168.200.123:9092"
},
"name": "DashboardKafka",
"topics": [
"vsa_metrics",
"vsa_events"
]
}
{
"name": "demo_connector",
"tasksMax": 6,
"replicationFactor": 2,
"topics": [
"vsa_metrics"
],
"targetCluster": {
"bootstrapServers": "target-kafka-cluster:9092",
"tls": {
"enabled": true,
"certificate": "base64 encoded certificate"
},
"authentication": {
"enabled": true,
"type": "auth type plain/scram-sha-512/oauth/tls",
"username": "targetuser",
"password": "target password"
}
},
"logging": {
"type": "inline",
"level": "INFO"
},
"resources": {
"limits": {
"cpu": "4000m",
"memory": "8192Mi"
},
"requests": {
"cpu": "1000m",
"memory": "2048Mi"
}
}
}
Name of the connector should always start with a letter a-z or A-Z
The maximum number of tasks for the Kafka Connector.
Replication factor for the internal topics and replicated topics.
Topic names to be replicated
Object having details of target kafka cluster and authentication
Maximum limits for CPU and memory resources and the requested initial resources.
Returns Connector Config for the newly created Connector
{
"message": "Connector successfully initialized",
"blockId": "kafka-connector",
"time": "2022-03-25 13:02:21.041469",
"name": "demo_connector",
"instanceId": "demo-connector",
"display_name": "Demo_connector",
"status": "pending",
"params": {
"targetCluster": {
"tls": null,
"authentication": null,
"bootstrapServers": "10.168.200.123:9092"
},
"name": "DashboardKafka",
"topics": [
"vsa_metrics",
"vsa_events"
],
"tasksMax": 4,
"resources": {
"requests": {
"memory": "2Gi",
"cpu": "1"
},
"limits": {
"memory": "8Gi",
"cpu": "4"
}
}
}
}
The type of connector created.
The name of the connector as entered by the user
Instance id of the connector object
The message indicating success or failure of connector creation.
The configuration with which the connector was created.
This specifies the status of the connector created. It can be stopped, started or pending
The time of creation of the connector.
Invalid Request sent by the user
User authentication failed
Access to the requested resource/operation is forbidden
Cannot find requested resource
Internal server error