28 lines
1.6 KiB
JSON
28 lines
1.6 KiB
JSON
{
|
|
"summary": [{
|
|
"name": "storage_mount",
|
|
"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": "export_id", "title": "存储导出", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "node_id", "title": "目标节点(compute_node.id)", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "cluster_id", "title": "所属集群", "type": "str", "length": 32},
|
|
{"name": "mount_point", "title": "挂载点路径", "type": "str", "length": 256, "nullable": "no"},
|
|
{"name": "mount_options", "title": "挂载参数", "type": "str", "length": 256},
|
|
{"name": "status", "title": "状态(mounted/unmounted/failed)", "type": "char", "length": 16, "default": "unmounted"},
|
|
{"name": "mounted_at", "title": "挂载时间", "type": "timestamp"},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"},
|
|
{"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"codes": [
|
|
{"field": "export_id", "table": "storage_export", "valuefield": "id", "textfield": "name"},
|
|
{"field": "node_id", "table": "compute_node", "valuefield": "id", "textfield": "name"},
|
|
{"field": "cluster_id", "table": "cluster", "valuefield": "id", "textfield": "name"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='mount_status'"}
|
|
]
|
|
}
|