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

ParameterTypeDescription
creationRequestIntegrationConnectionCreationRequestThe request containing Integration Connection configuration metadata
returnsIntegrationConnectionThe created Integration Connection

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", "[email protected]$$w0rd" }, { "sftp url", "sftp://my-sftp.com" } });
            var connection = catalytic.Integrations.CreateIntegrationConnection(request);

            Console.WriteLine(connection.Name);
        }
    }
}