Skip to main content

proxy_agents

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

Overview​

Nameproxy_agents
TypeResource
Idfivetran.networking.proxy_agents

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier for the proxy agent within the Fivetran system. (example: id)
account_idstringFivetran Account ID. (example: account_id)
display_namestringProxy agent name. (example: display_name)
created_bystringThe actor who created the proxy agent. (example: created_by)
regionstringData processing location. This is where Fivetran will operate and run computation on data. (GCP_US_EAST4, GCP_US_WEST1, GCP_US_CENTRAL1, GCP_EUROPE_WEST3, GCP_AUSTRALIA_SOUTHEAST1, GCP_NORTHAMERICA_NORTHEAST1, GCP_EUROPE_WEST2, GCP_ASIA_SOUTHEAST1, GCP_ASIA_SOUTHEAST2, GCP_ASIA_SOUTH1, GCP_ASIA_NORTHEAST1, GCP_ASIA_NORTHEAST3, GCP_ME_CENTRAL2, AWS_US_EAST_1, AWS_US_EAST_2, AWS_US_WEST_2, AWS_AP_NORTHEAST_1, AWS_AP_NORTHEAST_2, AWS_AP_SOUTHEAST_1, AWS_AP_SOUTHEAST_2, AWS_EU_CENTRAL_1, AWS_EU_NORTH_1, AWS_EU_WEST_1, AWS_EU_WEST_2, AWS_EU_WEST_3, AWS_AP_SOUTH_1, AWS_CA_CENTRAL_1, AWS_US_GOV_WEST_1, AZURE_EASTUS2, AZURE_AUSTRALIAEAST, AZURE_UKSOUTH, AZURE_WESTEUROPE, AZURE_CENTRALUS, AZURE_CANADACENTRAL, AZURE_UAENORTH, AZURE_SOUTHEASTASIA, AZURE_EASTUS, AZURE_JAPANEAST, AZURE_CENTRALINDIA, AZURE_GERMANYWESTCENTRAL, AZURE_WESTUS3, AZURE_SWITZERLANDNORTH, AZURE_KOREACENTRAL) (example: GCP_US_EAST4)
registered_atstring (date-time)The timestamp of the time the proxy agent was created in your account. (example: 2018-12-01T15:43:29.013729Z)
statusstringThe connection status of the proxy agent. (NOT_FOUND, CONNECTED, NOT_CONNECTED) (example: CONNECTED)
usagearrayList of source connections and destinations using this proxy agent.
versionstringThe version of the proxy agent. (example: 1.0.0)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagent_idRetrieves the details of the specified proxy agent.
listselectcursor, limitReturns a list of all proxy agents within your Fivetran account.
createinsertCreates a new proxy agent within your Fivetran account.
deletedeleteagent_idDeletes the specified proxy agent from your Fivetran account.
regenerate_secretsexecagent_idRegenerate secrets for proxy agent within 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
agent_idstringThe unique identifier for the proxy agent 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.

SELECT examples​

Retrieves the details of the specified proxy agent.

SELECT
id,
account_id,
display_name,
created_by,
region,
registered_at,
status,
usage,
version
FROM fivetran.networking.proxy_agents
WHERE agent_id = '{{ agent_id }}' -- required
;

INSERT examples​

Creates a new proxy agent within your Fivetran account.

INSERT INTO fivetran.networking.proxy_agents (
display_name,
group_region
)
SELECT
'{{ display_name }}',
'{{ group_region }}'
RETURNING
agent_id,
auth_token,
client_cert,
client_private_key,
orchestrator_host,
orchestrator_port
;

DELETE examples​

Deletes the specified proxy agent from your Fivetran account.

DELETE FROM fivetran.networking.proxy_agents
WHERE agent_id = '{{ agent_id }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Regenerate secrets for proxy agent within your Fivetran account.

EXEC fivetran.networking.proxy_agents.regenerate_secrets
@agent_id='{{ agent_id }}' --required
;