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.) |
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" }