Skip to main content

agents

Creates, updates, deletes, gets or lists an agents resource.

Overview​

Nameagents
TypeResource
Idfivetran.hybrid_deployment.agents

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the hybrid deployment agent within the Fivetran system. (example: agent_id)
group_idstringThe unique identifier for the group within your Fivetran account. (example: group_id)
display_namestringHybrid Deployment Agent display name. (example: display_name)
created_bystringThe actor who created the Hybrid Deployment Agent (example: created_by)
deployment_typestringEnvironment type. (DOCKER, PODMAN, KUBERNETES, SNOWPARK) (example: DOCKER)
enabledbooleanThe boolean value specifying whether the Hybrid Deployment Agent is enabled.
last_used_atstring (date-time)The time this Hybrid Deployment Agent was last used. (example: 2024-12-01T15:43:29.013729Z)
onlinebooleanThe boolean value specifying whether the Hybrid Deployment Agent is online.
registered_atstring (date-time)Time when this Hybrid Deployment Agent was created. (example: 2024-12-01T15:43:29.013729Z)
updated_atstring (date-time)Time when this Hybrid Deployment Agent was updated. (example: 2024-12-01T15:43:29.013729Z)
usagearray
versionstringVersion of the Hybrid Deployment Agent (example: version)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagent_idReturns Hybrid Deployment Agent Details.
listselectgroup_id, cursor, limitReturns list of all Hybrid Deployment Agents within your Fivetran account, along with usage. Optionally filtered to a single group.
createinsertaccept_terms, display_name, env_typeCreates a new Hybrid Deployment Agent in a group.
deletedeleteagent_idDelete a Hybrid Deployment Agent.
re_authexecagent_idRegenerate authentication for a Hybrid Deployment Agent.
reset_credentialsexecagent_idReset credentials for a Hybrid Deployment Agent.

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
agent_idstringHybrid Deployment Agent Id
cursorstring
group_idstringThe Fivetran Group Id. (wire: groupId)
limitinteger (int32)

SELECT examples​

Returns Hybrid Deployment Agent Details.

SELECT
id,
group_id,
display_name,
created_by,
deployment_type,
enabled,
last_used_at,
online,
registered_at,
updated_at,
usage,
version
FROM fivetran.hybrid_deployment.agents
WHERE agent_id = '{{ agent_id }}' -- required
;

INSERT examples​

Creates a new Hybrid Deployment Agent in a group.

INSERT INTO fivetran.hybrid_deployment.agents (
group_id,
display_name,
env_type,
accept_terms,
auth_type
)
SELECT
'{{ group_id }}',
'{{ display_name }}' /* required */,
'{{ env_type }}' /* required */,
{{ accept_terms }} /* required */,
'{{ auth_type }}'
RETURNING
id,
group_id,
display_name,
created_by,
deployment_type,
enabled,
files,
last_used_at,
online,
registered_at,
token,
updated_at,
version
;

DELETE examples​

Delete a Hybrid Deployment Agent.

DELETE FROM fivetran.hybrid_deployment.agents
WHERE agent_id = '{{ agent_id }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Regenerate authentication for a Hybrid Deployment Agent.

EXEC fivetran.hybrid_deployment.agents.re_auth
@agent_id='{{ agent_id }}' --required
@@json=
'{
"auth_type": "{{ auth_type }}"
}'
;