Child pages
  • WebHCat Reference GetDBs
Skip to end of metadata
Go to start of metadata

List Databases — GET ddl/database

Description

List the databases in HCatalog.

URL

http://www.myserver.com/templeton/v1/ddl/database

Parameters

Name

Description

Required?

Default

like

List only databases whose names match the specified pattern.

Optional

"*" (List all)

The standard parameters are also supported.

Results

Name

Description

databases

A list of database names.

Example

Curl Command

% curl -s 'http://localhost:50111/templeton/v1/ddl/database?user.name=ctdean&like=n*'

JSON Output

{
 "databases": [
   "newdb",
   "newdb2"
 ]
}


  • No labels