Create an IntegrationConnection
Create a Connection to an existing Integration.
Learn More about Integrations
https://help.catalytic.com/docs/general-integration-information/#how-integrations-work
Method Signature
IntegrationConnection CreateIntegrationConnection(IntegrationConnectionCreationRequest creationRequest);
async Task<IntegrationConnection> CreateAsync(IntegrationConnectionCreationRequest creationRequest);
Parameters
Parameter | Type | Description |
---|---|---|
creationRequest | IntegrationConnectionCreationRequest | The request containing Integration Connection configuration metadata |
returns | IntegrationConnection | The created Integration Connection |
IntegrationConnectionCreationRequest
IntegrationConnectionCreationRequest
You can construct an IntegrationConnectionCreationRequest
using the CreateConnectionRequest
method on a fetched Integration
.
Example
/*
* This example demonstrates creating a new SFTP Integration Connection
*/
using Catalytic.Sdk.Entities;
namespace Catalytic.Sdk.Examples
{
class Program
{
static void Main(string[] args)
{
var catalytic = new Catalytic.Sdk.CatalyticClient(AccessToken.Default);
var integration = catalytic.Integrations.Get("sftp/non-oauth/v1");
var request = integration.CreateConnectionRequest("New SFTP Connection", new Dictionary<string, string>() { { "username", "alice" }, { "password", "p@$$w0rd" }, { "sftp url", "sftp://my-sftp.com" } });
var connection = catalytic.Integrations.CreateIntegrationConnection(request);
Console.WriteLine(connection.Name);
}
}
}
Updated almost 4 years ago