Skip to main content

connection_fingerprints

Creates, updates, deletes, gets or lists a connection_fingerprints resource.

Overview​

Nameconnection_fingerprints
TypeResource
Idfivetran.certificates.connection_fingerprints

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the fingerprint (Base64URL encoded hash of the fingerprint). (example: Y29ubmVjdG9yIGZpbmdlcnByaW50IGhhc2g)
hashstringHash of the fingerprint. (example: eUtPirI6yy...)
public_keystringThe SSH public key. (example: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6 ... fivetran user key)
validated_bystringThe unique identified for the user who has approved the fingerprint. (example: user_id)
validated_datestring (date-time)Date when fingerprint has been validated and approved. (example: 2024-01-01T00:00:00Z)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectconnection_id, hashReturns SSH fingerprint details approved for specified connection with specified hash
listselectconnection_idcursor, limitReturns the list of approved SSH fingerprints for specified connection
createinsertconnection_id, hash, public_keyApproves a fingerprint, enabling Fivetran to trust it for a source database and establish connections via an SSH tunnel.
deletedeleteconnection_id, hashRevokes a fingerprint, so Fivetran no longer trusts it while connecting to the source database through an SSH tunnel.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
connection_idstringThe unique identifier of the connection. Retrieve it from the id field in the [List All Connections](https:​//fivetran.com/docs/rest-api/api-reference/connections/list-connections) response, or from the id field returned when you [Create a Connection](https:​//fivetran.com/docs/rest-api/api-reference/connections/create-connection).
hashstringThe unique identifier of the fingerprint (Base64URL encoded hash of the fingerprint).
cursorstringPaging cursor, [read more about pagination](https:​//fivetran.com/docs/rest-api/pagination)
limitinteger (int32)Number of records to fetch per page. Accepts a number in the range 1..1000; the default value is 100.

SELECT examples​

Returns SSH fingerprint details approved for specified connection with specified hash

SELECT
id,
hash,
public_key,
validated_by,
validated_date
FROM fivetran.certificates.connection_fingerprints
WHERE connection_id = '{{ connection_id }}' -- required
AND hash = '{{ hash }}' -- required
;

INSERT examples​

Approves a fingerprint, enabling Fivetran to trust it for a source database and establish connections via an SSH tunnel.

INSERT INTO fivetran.certificates.connection_fingerprints (
hash,
public_key,
connection_id
)
SELECT
'{{ hash }}' /* required */,
'{{ public_key }}' /* required */,
'{{ connection_id }}'
;

DELETE examples​

Revokes a fingerprint, so Fivetran no longer trusts it while connecting to the source database through an SSH tunnel.

DELETE FROM fivetran.certificates.connection_fingerprints
WHERE connection_id = '{{ connection_id }}' --required
AND hash = '{{ hash }}' --required
;