Skip to content

Teradata Teradata API

Creating a Source Datastore

This section provides a sample payload for creating a datastore. Replace the placeholder values with actual data relevant to your setup.

Endpoint (Post): /api/datastores (post)

{
    "name": "your_datastore_name",
    "teams": ["Public"],
    "schema": "schema_name",
    "enrichment_only": false,
    "trigger_sync": true,
    "connection": {
        "name": "your_connection_name",
        "host": "teradata_host",
        "port": 1025,
        "username": "teradata_user",
        "password": "teradata_password",
        "type": "teradata"
        }
}
{
    "name": "your_datastore_name",
    "teams": ["Public"],
    "schema": "schema_name",
    "enrichment_only": false,
    "trigger_sync": true,
    "connection_id": 123
}
# Step 1: Create a Connection
qualytics connections create \
    --type teradata \
    --name "your_connection_name" \
    --host ${TERADATA_HOST} \
    --port 1025 \
    --username ${TERADATA_USER} \
    --password ${TERADATA_PASSWORD}

# Step 2: Create a Source Datastore
qualytics datastores create \
    --name "your_datastore_name" \
    --connection-name "your_connection_name" \
    --schema dbc

Use SSL

The payloads above leave Use SSL at its default, so the connection is encrypted. To connect to a system that does not accept encrypted connections, send ssl as "false" under the connection's parameters:

{
    "connection": {
        "name": "your_connection_name",
        "host": "teradata_host",
        "port": 1025,
        "username": "teradata_user",
        "password": "teradata_password",
        "type": "teradata",
        "parameters": {
            "ssl": "false"
        }
    }
}

Endpoint Patch:

/api/datastores/{datastore-id}/enrichment/{enrichment-id} (patch)