Skip to main content

destination_fingerprints

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

Overview​

Namedestination_fingerprints
TypeResource
Idfivetran.certificates.destination_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
getselectdestination_id, hashReturns SSH fingerprint details approved for specified destination with specified hash
listselectdestination_idcursor, limitReturns the list of approved SSH fingerprints for specified destination
createinsertdestination_id, hash, public_keyApproves a fingerprint, enabling Fivetran to trust it for a destination database and establish connections via an SSH tunnel.
deletedeletedestination_id, hashRevokes a fingerprint, so Fivetran no longer trusts it while connecting to the destination 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
destination_idstringThe unique identifier for the destination within the Fivetran system.
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 destination with specified hash

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

INSERT examples​

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

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

DELETE examples​

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

DELETE FROM fivetran.certificates.destination_fingerprints
WHERE destination_id = '{{ destination_id }}' --required
AND hash = '{{ hash }}' --required
;