Jump to: navigation, search

Difference between revisions of "Trove/list-datastore-type-and-versions"

Line 31: Line 31:
 
……
 
……
 
],  
 
],  
"name": "MySQL 5.1"
+
"name": "MySQL"
 +
"version": "5.1"
 
"manager": "mysql"
 
"manager": "mysql"
 
"default": "False"
 
"default": "False"
Line 40: Line 41:
 
……..
 
……..
 
],  
 
],  
"name": "MySQL 5.5"
+
"name": "MySQL"
 +
"version": "5.5"
 
"manager": "mysql"
 
"manager": "mysql"
 
"default": "True"
 
"default": "True"
Line 49: Line 51:
 
……..
 
……..
 
],  
 
],  
"name": "Redis 2.8"
+
"name": "Redis"
 +
"version": "2.8"
 
"manager": "redis"
 
"manager": "redis"
 
"default": "True"
 
"default": "True"

Revision as of 20:50, 25 April 2014

Description

This blueprint will add an API call for retrieving datastore type and version in a single call.

Blueprint:

Justification/Benefits

  • Instead of making n+1 calls, this API call will fetch datastore type and version, the manager in a single call. It will also show if the version is the default for that datastore.
  • This call can vastly improve the user experience for retrieving all the supported datastore types and versions

Impacts

Configuration

None

Database

No impact

ReST API

New API call: List All Datastore Types & Versions

Request

GET/{tenant_id}/datastoreandversions

Response

{
"datastores": [
{
"id": "10000000-0000-0000-0000-000000000001", 
"links": [
……
], 
"name": "MySQL"
"version": "5.1"
"manager": "mysql"
"default": "False"
}, 
{
"id": "e00000e0-00e0-0e00-00e0-000e000000ee", 
"links": [
……..
], 
"name": "MySQL"
"version": "5.5"
"manager": "mysql"
"default": "True"
}
{
"id": "100000e0-00e0-0e00-00e0-000e000000ff", 
"links": [
……..
], 
"name": "Redis"
"version": "2.8"
"manager": "redis"
"default": "True"
}
]
}

Comments/Questions From Community