Skip to main content

connections

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

Overview​

Nameconnections
TypeResource
Idfivetran.groups.connections

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the group within the Fivetran system. (example: connection_id)
external_secrets_manager_idstring
group_idstringThe unique identifier for the group within the Fivetran system. (example: group_id)
hybrid_deployment_agent_idstring
private_link_idstring
proxy_agent_idstring
configobjectThe connection setup configuration.
connect_cardobject
connect_card_configobject
connected_bystringThe unique identifier of the user who has created the connection in your account. (example: user_id)
created_atstring (date-time)The timestamp of when the group was created in your account. (example: 2024-12-01T15:43:29.013729Z)
daily_sync_timestringThe optional parameter that defines the sync start time when the sync frequency is already set or being set by the current request to 1440. It can be specified in one hour increments starting from 00:00 to 23:00. If not specified, we will use the baseline sync start time. This parameter has no effect on the 0 to 60 minutes offset used to determine the actual sync start time. (example: 14:00)
data_delay_sensitivitystring (LOW, NORMAL, HIGH, CUSTOM, SYNC_FREQUENCY)
data_delay_thresholdinteger (int32)
destination_configurationobject
destination_schema_namesstring (FIVETRAN_NAMING, SOURCE_NAMING)
external_secrets_keys_configobject
failed_atstring (date-time)The timestamp of the time the connection sync failed last time. (example: 2024-12-01T15:43:29.013729Z)
networking_methodstring (Directly, SshTunnel, PrivateLink, ProxyAgent, UnmanagedProxyAgent, Unknown)
pause_after_trialbooleanSpecifies whether the connection should be paused after the free trial period has ended.
pausedbooleanSpecifies whether the connection is paused.
scheduleobject
schedule_typestringThe connection schedule config type. Supported values: auto, manual. Lets you disable or enable an automatic data sync on a schedule. (example: auto)
schemastringThe name used both as the connection's name within the Fivetran system and as the source schema's name within your destination. (example: gsheets.table)
servicestringThe name for the connector type within the Fivetran system. (example: google_sheets)
service_versioninteger (int32)The connector type version within the Fivetran system.
setup_testsarraySetup tests results
source_sync_detailsstringRead-only, connector-specific sync state. Depending on the connector type, this object may include source scope identifiers such as accounts, profiles, or projects; per-entity cursors or checkpoints; or last-synced timestamps. This field is optional, and its schema varies by connector type. To determine whether a connector exposes this information and inspect its returned fields, use [Retrieve Connection Details](https:​//fivetran.com/docs/rest-api/api-reference/connections/connection-details). (opaque JSON object)
statusobjectThe current state of the connection.
succeeded_atstring (date-time)The timestamp of the time the connection sync succeeded last time. (example: 2024-12-01T15:43:29.013729Z)
sync_frequencyinteger (int32)The connection sync frequency in minutes. null when the connection's schedule has no single cadence to report, such as a custom cron or multiple-time-of-day schedule.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectgroup_idschema, cursor, limitReturns a list of information about all connections within a group in your Fivetran account.

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
group_idstringThe unique identifier for the group within the Fivetran system.
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.
schemastringThe name used both as the connection's name within the Fivetran system and as the source schema's name within your destination.

SELECT examples​

Returns a list of information about all connections within a group in your Fivetran account.

SELECT
id,
external_secrets_manager_id,
group_id,
hybrid_deployment_agent_id,
private_link_id,
proxy_agent_id,
config,
connect_card,
connect_card_config,
connected_by,
created_at,
daily_sync_time,
data_delay_sensitivity,
data_delay_threshold,
destination_configuration,
destination_schema_names,
external_secrets_keys_config,
failed_at,
networking_method,
pause_after_trial,
paused,
schedule,
schedule_type,
"schema",
service,
service_version,
setup_tests,
source_sync_details,
status,
succeeded_at,
sync_frequency
FROM fivetran.groups.connections
WHERE group_id = '{{ group_id }}' -- required
AND "schema" = '{{ schema }}'
AND "limit" = '{{ limit }}'
;