16.10 - GET (Databases) - 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

List of databases.

URL

/emrest/datadiscovery/databases

HTTP Method

GET

Request Parameters

Query parameter:server-name [Optional]

Response

An array of the following JSON.
Name Description Data Type
database_name Name of the database String
servers Server list containing the database Any array of JSON (Shown in Servers JSON Description table. )
Servers JSON Parameters
Name Description Data Type
server_name Name of the server String

Status

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

Example: List of Databases

[
    {
        "database_name": "august_db",
        "servers": [
            {
                "server_name": "maki"
            },
            {
                "server_name": "tobi"
            }
        ]
    },
    {
        "database_name": "test_db",
        "servers": [
            {
                "server_name": "banjo"
            },
            {
                "server_name": "falco"
            },
            {
                "server_name": "wario"
            }
        ]
    }
]