Get Metadata Keys for Mapping Target Columns

Teradata® Listener™ User Guide

brand
Analytical Ecosystem
prodname
Teradata Listener
vrm_release
2.05
category
User Guide
featnum
B035-2910-039K

Before you create a target, get the metadata keys for mapping columns.

Definition

curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer TOKEN" \
  -X GET \
  -i \https://CLUSTER.DOMAIN/listener/appservices/utils/metadata-keys

Example Response

[
    {
        "name": "ls_uuid",
        "supported_column_types": [
            "CHAR",
            "VARCHAR"
        ],
        "description": "Represent unique identifier for each ingest message and is of 36 characters."
    },
    {
        "name": "ls_source_id",
        "supported_column_types": [
            "CHAR",
            "VARCHAR"
        ],
        "description": "Represent source id and is of 36 characters."
    },
    {
        "name": "ls_time",
        "supported_column_types": [
            "TIME",
            "TIMESTAMP",
            "TIMESTAMP WITH TIME ZONE"
        ],
        "description": "Represent time when data provided to target system."
    },
    {
        "name": "ls_data",
        "supported_column_types": [
            "CHAR",
            "VARCHAR",
            "JSON",
            "CLOB",
            "BLOB"
        ],
        "description": "Represent ingest payload."
    }
]

Response Codes

Code Description
200 Metadata keys successfully retrieved.
400 Required property missing from request.