Connections
Connections
The Connections API allows management of connections. A connection is a pipe between two connectors. Data transfer is only allowed on active connections.
List Connections
GET /es/v2/connectionsQuery parameters
&accountId=<sub_account_id> // Required for managing connections in sub-accounts
&q=keyword
&size=10
&offset=0
&status=active //All connections retured if empty or allResponse:
{
"statusCode": 0,
"statusMessage": "string",
"response": [
{
"accountId": "string",
"createdTime": 0,
"deleted": true,
"dest": {
"configured": true,
"connectorId": "string",
"connectorLogo": "string",
"connectorName": "string"
},
"editable": true,
"enabled": true,
"env": "string",
"id": "string",
"monthlyVolume": 0,
"name": "string",
"src": {
"configured": true,
"connectorId": "string",
"connectorLogo": "string",
"connectorName": "string"
},
"status": "string",
"totalVolume": 0,
"updatedTime": 0,
"usedVolume": 0
}
]
}Attributes:
accountId
Unique identifier for the account
UUID (16-character identifier)
createdTime
Account creation time
Unix timestamp (seconds)
deleted
Indicates whether the account is deleted or not
true or false
dest
Details of destination connector
id,name,logo
configured
Indicates whether the account is configured or not
true or false
connectorId
Unique identifier for the connector
UUID (16-character identifier)
connectorName
Name of the connector
String (e.g., connector name)
editable
Indicates whether the account is editable or not
true or false
enabled
Indicates whether the account is enabled or not
true or false
env
Environment name of the connection
String (e.g., environment name)
id
Unique identifier for the connection
UUID (16-character identifier)
monthlyVolume
Monthly volume used by the connection
Integer (e.g., 0, 1000, etc.)
name
Name of the connection
String (e.g., connection name)
src
Details of source connector
id,name,logo
status
Status of the connection
In-progress,active,disabled, deleted, broken, offline
totalVolume
Total volume used by the connection
Integer (e.g., 0, 1000, etc.)
updatedTime
Account updation time
Unix timestamp (seconds)
usedVolume
Volume used by the connection
Integer (e.g., 0, 1000, etc.)
Sample Curl::
Create a Connection
This API allows creating connections between a source and destination connector. Only compatible connectors are allowed as source and destination.
Query parameters
Request Body:
Response:
Attributes:
destConfigurationId
Unique identifier for the destination configuration
UUID (16-character identifier)
destConnectionConfig
Details of destination connector
Different for each connector
destConnectorId
Unique identifier for the destination connector
UUID (16-character identifier)
name
Name of the connection
String (e.g., connection name)
srcConfigurationId
Unique identifier for the source configuration
UUID (16-character identifier
srcConnectionConfig
Details of source connector
Different for each connector
srcConnectorId
Unique identifier for the source connector
UUID (16-character identifier)
Sample Curl::
Update Connection
This API allows updating a connection configuration like connection name and connector parameters. The source and destination connectors cannot be changed and one has to create a new connection for changing source and/or destination.
Query parameters
Request Body:
Response:
Attributes:
id
Unique identifier for the connection
UUID (16-character identifier)
name
Name of the connection
String (e.g., connection name)
destConnectionConfig
Details of destination connector
Different for each connector
srcConnectionConfig
Details of source connector
Different for each connector
Sample Curl::
Update Connection Status
This API allows updating the status of connection,
Activate a connection
Enable / Disable a connection
Query parameters
Response:
Sample Curl::
Delete Connection
This API allows deletion of a connection. Deleted connections are available for restoration for 30 days, after which they will be permanently removed.
Query parameters
Request Body:
Response:
Sample Curl:
Get Connection Details
This API can be used to fetch information about a connection like name, source-destination, parameters, volume etc.
Query parameters
Response:
Attributes:
accountId
Unique identifier for the account
UUID (16-character identifier)
createdTime
Account creation time
Unix timestamp (seconds)
deleted
Indicates whether the account is deleted or not
true or false
dest
Details of destination connector
id,name,logo
configured
Indicates whether the account is configured or not
true or false
connectorId
Unique identifier for the connector
UUID (16-character identifier)
connectorName
Name of the connector
String (e.g., connector name)
editable
Indicates whether the account is editable or not
true or false
enabled
Indicates whether the account is enabled or not
true or false
env
Environment name of the connection
String (e.g., environment name)
id
Unique identifier for the connection
UUID (16-character identifier)
monthlyVolume
Monthly volume used by the connection
Integer (e.g., 0, 1000, etc.)
name
Name of the connection
String (e.g., connection name)
src
Details of source connector
id,name,logo
status
Status of the connection
In-progress,active,disabled, deleted, broken, offline
totalVolume
Total volume used by the connection
Integer (e.g., 0, 1000, etc.)
updatedTime
Account updation time
Unix timestamp (seconds)
usedVolume
Volume used by the connection
Integer (e.g., 0, 1000, etc.)
Sample Curl:
Last updated