HCatalog
 

GET ddl/database/:db/table/:table/property/:property

Description

Return the value of a single table property.

URL

http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table/property/:property

Parameters

NameDescriptionRequired?Default
:db The database name Required None
:table The table name Required None
:property The property name Required None

Results

NameDescription
property The requested property's name: value pair
database The database name
table The table name

Example

Curl Command

% curl -s 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/property/fruit?user.name=ctdean'

JSON Output

{
 "property": {
   "fruit": "apple"
 },
 "table": "test_table",
 "database": "default"
}

JSON Output (error)

{
  "error": "Table test_table does not exist",
  "errorCode": 404,
  "database": "default",
  "table": "test_table"
}