16.10 - PUT (Specified Table) - Teradata Ecosystem Manager

Teradata Ecosystem Manager API Reference

prodname
Teradata Ecosystem Manager
vrm_release
16.10
created_date
June 2017
category
Programming Reference
featnum
B035-3204-067K

Purpose

Register a specified table on a specified database.

URL

/emrest/datadiscovery/databases/{database-name}/tables/{table-name}

HTTP Method

PUT

Request Parameters

Path variable:database-name, table-name

Request body in JSON with following parameters.
Name Description Data Type
database_name Name of the database String
table_name Name of the table String
servers Server details for the database Any array of JSON (Shown in the Servers JSON Description table.)
Servers JSON Parameters
Name Description Data Type Notes
server_name Name of the server String Required

Response

A JSON response indicates success or error.

Status

A status code of 200 is returned on a successful completion. A non-200 status code is returned if an error occurs.

Example: Registering a Table using the API

{
    "database_name": "emviews",
    "servers": [
        {
            "server_name": "wario"
        },
        {
            "server_name": "falco"
        }
    ],
    "table_name": "msmevent"
}