Configuration API
Get database connection
Retrieves the configuration of a specific database
GET/rest/configuration/connections/databases/databaseName
Body none
Query parameters | none |
Header | auth-token: token from authentication |
Header/Parameter | tenant |
Returns | DatabaseDescriptor |
Required role | MWP_ADMIN |
Example request
curl -H "auth-token:4dbd0d4f-9f44-41ab-ba68-3a51f7fd834a.local" -H "tenant:default" -X GET http://localhost:8080/mwp/rest/configuration/connections/databases/localhost-h2
Example response
{ "id":"database-test", "jdbcConnectionString" : "jdbc:h2:tcp://localhost/~/test", "username" : "user", "password" : "<enc>WQoijnnjbuhijuhakjnkj</enc>", "vendor" : "DB2", "lastModified" : "147115566599", "lastModifiedH" : "2016-08-23 14:26:10", "modifiedBy" : "admin", "jndi" : "null" }