private_links
Creates, updates, deletes, gets or lists a private_links resource.
Overview
| Name | private_links |
| Type | Resource |
| Id | fivetran.networking.private_links |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for the private link within the Fivetran system. (example: private_link_id) |
name | string | Private link name (example: PrivateLinkName) |
account_id | string | |
cloud_provider | string | Private link cloud provider (AWS, GCP, AZURE) (example: AWS) |
config | object | The config object for the service in question (a JSON value; its keys depend on the service). The accepted keys per type are documented in the vendor's API reference and returned by the connector metadata endpoints. |
created_at | string (date-time) | The timestamp of the time the private link was created in your account (example: 2023-12-01T15:43:29.013729Z) |
created_by | string | The actor who created the private link (example: user_id) |
host | string | The DNS name of the PrivateLink endpoint service. (example: example.host.com) |
region | string | Data 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: AWS_US_EAST_1) |
resource_upstream_status | string | The upstream status of the PrivateLink resource as reported by the cloud provider. (example: IDLE) |
service | string | The name for the service type within the Fivetran system. (DATABRICKS_AWS, SNOWFLAKE_AWS, REDSHIFT_AWS, SOURCE_AWS, DATABRICKS_AZURE, SNOWFLAKE_AZURE, ONELAKE_AZURE, POSTGRES_WAREHOUSE_AZURE, SQL_DATA_WAREHOUSE_AZURE, SOURCE_AZURE, SNOWFLAKE_GCP, SOURCE_GCP, DATABRICKS_GCP) (example: DATABRICKS) |
state | string | Private link state (CREATING, UPDATING, DESTROYING, OK, FAIL) (example: OK) |
state_summary | string | Private link state summary (example: ...) |
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for the private link within the Fivetran system. (example: private_link_id) |
name | string | Private link name (example: PrivateLinkName) |
account_id | string | |
cloud_provider | string | Private link cloud provider (AWS, GCP, AZURE) (example: AWS) |
config | object | The config object for the service in question (a JSON value; its keys depend on the service). The accepted keys per type are documented in the vendor's API reference and returned by the connector metadata endpoints. |
created_at | string (date-time) | The timestamp of the time the private link was created in your account (example: 2023-12-01T15:43:29.013729Z) |
created_by | string | The actor who created the private link (example: user_id) |
host | string | The DNS name of the PrivateLink endpoint service. (example: example.host.com) |
region | string | Data 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: AWS_US_EAST_1) |
resource_upstream_status | string | The upstream status of the PrivateLink resource as reported by the cloud provider. (example: IDLE) |
service | string | The name for the service type within the Fivetran system. (DATABRICKS_AWS, SNOWFLAKE_AWS, REDSHIFT_AWS, SOURCE_AWS, DATABRICKS_AZURE, SNOWFLAKE_AZURE, ONELAKE_AZURE, POSTGRES_WAREHOUSE_AZURE, SQL_DATA_WAREHOUSE_AZURE, SOURCE_AZURE, SNOWFLAKE_GCP, SOURCE_GCP, DATABRICKS_GCP) (example: DATABRICKS) |
state | string | Private link state (CREATING, UPDATING, DESTROYING, OK, FAIL) (example: OK) |
state_summary | string | Private link state summary (example: ...) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | private_link_id | Returns a private link object if a valid identifier was provided. | |
list | select | cursor, limit | Returns a list of all private links. | |
create | insert | config, name, region, service | Creates a new private link in your Fivetran account. <br /><br />> NOTE: See the [Set Up a Connection With Private Links tutorial](https://fivetran.com/docs/rest-api/tutorials/set-up-connection-with-private-links) to learn how to use this endpoint to set up a [database connection](https://fivetran.com/docs/connectors/databases) with [private networking](https://fivetran.com/docs/using-fivetran/features#privatenetworking).<br /> | |
update | update | private_link_id | Updates information for an existing private link within your Fivetran account. | |
delete | delete | private_link_id | Deletes a private link from 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.
| Name | Datatype | Description |
|---|---|---|
private_link_id | string | The unique identifier for the private link within the Fivetran system |
cursor | string | Paging cursor, [read more about pagination](https://fivetran.com/docs/rest-api/pagination) |
limit | integer (int32) | Number of records to fetch per page. Accepts a number in the range 1..1000; the default value is 100. |
SELECT examples
- get
- list
Returns a private link object if a valid identifier was provided.
SELECT
id,
name,
account_id,
cloud_provider,
config,
created_at,
created_by,
host,
region,
resource_upstream_status,
service,
state,
state_summary
FROM fivetran.networking.private_links
WHERE private_link_id = '{{ private_link_id }}' -- required
;
Returns a list of all private links.
SELECT
id,
name,
account_id,
cloud_provider,
config,
created_at,
created_by,
host,
region,
resource_upstream_status,
service,
state,
state_summary
FROM fivetran.networking.private_links
WHERE "limit" = '{{ limit }}'
;
INSERT examples
- create
- Manifest
Creates a new private link in your Fivetran account. <br /><br />> NOTE: See the [Set Up a Connection With Private Links tutorial](https://fivetran.com/docs/rest-api/tutorials/set-up-connection-with-private-links) to learn how to use this endpoint to set up a [database connection](https://fivetran.com/docs/connectors/databases) with [private networking](https://fivetran.com/docs/using-fivetran/features#privatenetworking).<br />
INSERT INTO fivetran.networking.private_links (
name,
region,
service,
config
)
SELECT
'{{ name }}' /* required */,
'{{ region }}' /* required */,
'{{ service }}' /* required */,
'{{ config }}' /* required */
RETURNING
id,
name,
account_id,
cloud_provider,
config,
created_at,
created_by,
host,
region,
resource_upstream_status,
service,
state,
state_summary
;
# Description fields are for documentation purposes
- name: private_links
props:
- name: name
value: "{{ name }}"
description: |
Private link name
- name: region
value: "{{ region }}"
description: |
Data processing location. This is where Fivetran will operate and run computation on data.
valid_values: ['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']
- name: service
value: "{{ service }}"
description: |
The name for the service type within the Fivetran system.
valid_values: ['DATABRICKS_AWS', 'SNOWFLAKE_AWS', 'REDSHIFT_AWS', 'SOURCE_AWS', 'DATABRICKS_AZURE', 'SNOWFLAKE_AZURE', 'ONELAKE_AZURE', 'POSTGRES_WAREHOUSE_AZURE', 'SQL_DATA_WAREHOUSE_AZURE', 'SOURCE_AZURE', 'SNOWFLAKE_GCP', 'SOURCE_GCP', 'DATABRICKS_GCP']
- name: config
value: "{{ config }}"
description: |
The `config` object for the `service` in question (a JSON value; its keys depend on the `service`). The accepted keys per type are documented in the vendor's API reference and returned by the connector metadata endpoints.
UPDATE examples
- update
Updates information for an existing private link within your Fivetran account.
UPDATE fivetran.networking.private_links
SET
config = '{{ config }}'
WHERE
private_link_id = '{{ private_link_id }}' --required
RETURNING
id,
name,
account_id,
cloud_provider,
config,
created_at,
created_by,
host,
region,
resource_upstream_status,
service,
state,
state_summary;
DELETE examples
- delete
Deletes a private link from your Fivetran account.
DELETE FROM fivetran.networking.private_links
WHERE private_link_id = '{{ private_link_id }}' --required
;