tigergraph__create_data_source
Create a data source for loading data from object storage, data warehouses, Iceberg catalogs, or Kafka. Specify name, type, and type-specific configuration; check get_data_source_types for required keys.
Instructions
Create a new data source for loading data from object storage (S3, GCS, Azure Blob), a data warehouse (Snowflake, BigQuery, PostgreSQL), an Iceberg catalog, or Kafka. Call 'get_data_source_types' first if unsure which keys a type needs; if the server rejects the request, the response includes the keys that type requires.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Configuration for the data source, without the 'type' key. Key names are type-specific: Snowflake takes 'connection.url', 'connection.user', and 'connection.password'; S3 takes 'access.key' and 'secret.key'. Call 'get_data_source_types' for each type's required keys and an example. | |
| profile | No | Connection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles. | |
| data_source_name | Yes | Name of the data source. | |
| data_source_type | Yes | Type of data source, normally one of: 's3' (Amazon S3), 'gcs' (Google Cloud Storage), 'abs' (Azure Blob Storage), 'kafka' (External Kafka), 'kafka_v2' (External Kafka (v2 connector)), 'mirrormaker' (Kafka MirrorMaker), 'iceberg' (Apache Iceberg), 'snowflake' (Snowflake), 'bigquery' (Google BigQuery), 'postgresql' (PostgreSQL). 'azure_blob' is accepted as an alias for 'abs'. Any other value is passed to TigerGraph unchanged, which decides whether it is valid. Call 'get_data_source_types' for the configuration keys each type needs. |