Create a new connection via Foundry API

I want to create a connection via the Foundry API.

I see it here in Github

https://github.com/palantir/foundry-platform-python/blob/develop/foundry_sdk/v2/connectivity/connection.py

But it’s not present in the docs nor is it generated by the Foundry Developer Application

https://www.palantir.com/docs/foundry/api/v2/connectivity-v2-resources/connections/get-connection/

… also there’s no tag for foundry-sdk (I’m assuming they should be to a different team to the osdk!

Hi @ben-newton ,

Which workflow do you want to implement? Can you describe this in detail, that will help to guide you to the correct SDK or API Endpoints.

Initially, I’d like to:

INIT

  • List all current connections
  • If the connection for my tool doesn’t exist create one

UPDATE

  • List all current connections
  • Find the connection for my tool
  • Update the Secrets

I can do all of this according to the Github Spec, but not the docs published on Palantir.com

I think the public APIs around Data Connection are quite new, that would explain why they are not in the palantir.com docs yet. Did you try using the SDK and ran into issues?

isn’t this
https://www.palantir.com/docs/foundry/api/v2/connectivity-v2-resources/connections/connection-basics/
what you are looking for?

Create is missing - I want to make a new connection not just amend an existing one

Hi @ben-newton,

The Create Connection endpoint is currently in development and not officially released, which is why you can see a version of it in the Python SDK but not yet in the docs.

We’re hoping for it to be released in about one month. In the meantime, you are welcome to experiment with the current version via the Python SDK. However, it has one limitation: you can’t select a runtime platform when creating a connection – it will just default to a direct connection with no egress policies. This is the piece that is still being worked on.

Thanks,
Tom

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.