Skip to main content
POST
/
v2
/
ConnectorCreate
Create connector
curl --request POST \
  --url http://localhost:3000/v2/ConnectorCreate \
  --header 'Content-Type: application/json' \
  --header 'X-Bunker-Token: <api-key>' \
  --data '
{
  "connectorname": "<string>",
  "connectortype": "<string>",
  "apikey": "<string>",
  "connectordesc": "<string>",
  "username": "<string>",
  "dbhost": "<string>",
  "dbport": "<string>",
  "dbname": "<string>",
  "tablename": "<string>",
  "request_metadata": {}
}
'
{
  "status": "ok",
  "connectorid": 123
}

Authorizations

X-Bunker-Token
string
header
required

API token for authentication

Body

application/json
connectorname
string
required

Name of the connector

connectortype
string
required

Type of the connector

apikey
string
required

API key for the connector

connectordesc
string

Description of the connector

username
string

Username for database connection

dbhost
string

Database host

dbport
string

Database port

dbname
string

Database name

tablename
string

Table name

request_metadata
object

Additional metadata for the request

Response

200 - application/json

Connector created successfully

status
string
Example:

"ok"

connectorid
integer

ID of the created connector