25 lines
1.4 KiB
JSON
25 lines
1.4 KiB
JSON
{
|
|
"summary": [{
|
|
"name": "storage_server",
|
|
"title": "存储服务器",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}],
|
|
"fields": [
|
|
{"name": "id", "title": "id", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "resellerid", "title": "商户机构id", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "name", "title": "服务器名称", "type": "str", "length": 128, "nullable": "no"},
|
|
{"name": "storage_type", "title": "存储类型(nfs/glusterfs/cephfs)", "type": "char", "length": 16, "nullable": "no"},
|
|
{"name": "endpoint", "title": "服务端点(IP:PORT)", "type": "str", "length": 256, "nullable": "no"},
|
|
{"name": "total_capacity_gb", "title": "总容量GB", "type": "int", "default": 0},
|
|
{"name": "used_capacity_gb", "title": "已用容量GB", "type": "int", "default": 0},
|
|
{"name": "status", "title": "状态(online/offline/maintenance)", "type": "char", "length": 16, "default": "online"},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
|
|
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"codes": [
|
|
{"field": "storage_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='storage_type'"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='storage_status'"}
|
|
]
|
|
}
|