Trove系列(三)—Trove的功能管理功能介紹

Trove的功能管理功能Trove的功能管理功能包括給各類不一樣的版本的 datastore 安裝不一樣的 功能。 本管理功能只適用於激活/去活全系統的功能。惟一例外的是數據存儲功能列表功能,該功能對全部的用戶都適用, 用戶可以據此決定一個指定數據庫版本的行爲。一個具體的例子: 「卷支持」, 具備此功能的 datastore 版本將在服務器上建立塊存儲卷。不具備此功能的 datastore 版本(例如)將不會建立塊存儲卷。
功能列表初始版本支持的功能:卷支持功能 - 當建立一個實例時, 服務器上將部署一個cinder卷。root 用戶支持 -- 當建立一個實例時, root用戶密碼將返回給用戶。最終將要支持的功能:多用戶功能數據庫功能安全組功能
API 函數數據庫

API詳細描述:List Capabilities (GET)應答消息結構:安全

{   "capabilities": {       [           {               "id": "550e8400-e29b-41d4-a716-446655440000",               "name": "Volume Support",               "description": "If enabled, a cinder volume will be created and attached to the database server"               "enabled": true           }       ]   }} List capabilities for a datastore version應答消息結構:{   "capabilities": {       [           {               "id": "550e8400-e29b-41d4-a716-446655440000",               "name": "Volume Support",               "description": "If enabled, a cinder volume will be created and attached to the database server"           }       ]   }服務器

}函數

 

Add a capability to a datastore version請求消息結構:{    "capability_id": "550e8400-e29b-41d4-a716-446655440000"}應答消息結構:{   "capabilities": {       [           {               "id": "550e8400-e29b-41d4-a716-446655440000",               "name": "Volume Support",               "description": "If enabled, a cinder volume will be created and attached to the database server"           }       ]   }}Delete Capabilities (DELETE)DELETE /capabilities/{capability_id}Response200 OK No body
Database 模式在Trove 數據庫中將要建立兩條數據庫條目:功能列表和數據存儲版本功能列表。 這些數據庫條目將存儲這些功能列表以及這些功能與數據存儲之間的關聯。功能列表:server

數據存儲功能列表:blog

相關文章
相關標籤/搜索