Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Get Connection

GET/api/v2/connectivity/connections/{connectionRid}
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.

Get the Connection with the specified rid.

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

Connection
object
Hide child attributes

Hide child attributes

rid
string

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

parentFolderRid
string

The unique resource identifier (RID) of a Folder.

displayName
string

The display name of the Connection. The display name must not be blank.

exportSettings
object
Show child attributes

Show child attributes

configuration
union
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?preview=true"

Response

Copied!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 { "parentFolderRid": "ri.compass.main.folder.c410f510-2937-420e-8ea3-8c9bcb3c1791", "configuration": { "type": "jdbc", "url": "jdbc:postgresql://localhost:5432/test", "driverClass": "org.postgresql.Driver" }, "displayName": "Connection to my external system", "exportSettings": { "exportsEnabled": true, "exportEnabledWithoutMarkingsValidation": false }, "rid": "ri.magritte..source.c078b71b-92f9-41b6-b0df-3760f411120b" }

Error responses

Error Name
ParentFolderNotFoundForConnectionError CodeNOT_FOUND
Status Code404
DescriptionThe parent folder for the specified connection could not be found.
ParametersconnectionRid
ConnectionTypeNotSupportedError CodeINVALID_ARGUMENT
Status Code400
DescriptionThe specified connection is not yet supported in the Platform API.
ParametersconnectionType
ConnectionNotFoundError CodeNOT_FOUND
Status Code404
DescriptionThe given Connection could not be found.
ParametersconnectionRid