Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Get Configuration

GET/api/v2/connectivity/connections/{connectionRid}/getConfiguration
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Retrieves the ConnectionConfiguration of the Connection itself. This operation is intended for use when other Connection data is not required, providing a lighter-weight alternative to getConnection operation.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:connectivity-connection-read.

Path parameters

connectionRid
string

The Resource Identifier (RID) of a Connection (also known as a source).

Query parameters

preview
boolean
optional

Enables the use of preview functionality.

Response body

ConnectionConfiguration
union
Hide child attributes

Hide child attributes

Show child attributes

Show child attributes

rest
object
optional

The configuration needed to connect to a REST external system.

Show child attributes

Show child attributes

snowflake
object
optional

The configuration needed to connect to a Snowflake database.

Show child attributes

Show child attributes

jdbc
object
optional

The configuration needed to connect to an external system using the JDBC protocol.

Show child attributes

Show child attributes

Examples

Request

Copied!
1 2 3 curl \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/connectivity/connections/ri.magritte..source.c078b71b-92f9-41b6-b0df-3760f411120b/getConfiguration?preview=true"

Response

Copied!
1 2 3 4 5 { "type": "jdbc", "url": "jdbc:postgresql://localhost:5432/test", "driverClass": "org.postgresql.Driver" }

Error responses

Error Name
ConnectionTypeNotSupportedError CodeINVALID_ARGUMENT
Status Code400
DescriptionThe specified connection is not yet supported in the Platform API.
ParametersconnectionType
GetConfigurationPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not getConfiguration the Connection.
ParametersconnectionRid