mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-06-23 10:03:53 +08:00
78 lines
1.7 KiB
YAML
78 lines
1.7 KiB
YAML
HostStorage:
|
|
type: object
|
|
description: 宿主机与存储关联表
|
|
properties:
|
|
host_id:
|
|
type: string
|
|
description: 宿主机ID
|
|
host:
|
|
type: string
|
|
description: 宿主机名称
|
|
baremetal:
|
|
type: string
|
|
description: 宿主机对应的物理机名称
|
|
storage_id:
|
|
type: string
|
|
description: 存储ID
|
|
mount_point:
|
|
type: string
|
|
example: /data
|
|
description: 挂载点
|
|
storagecache_id:
|
|
type: string
|
|
description: 缓存ID
|
|
imagecache_path:
|
|
type: string
|
|
example: /opt/cloud/workspace/disks/imagecache
|
|
description: 镜像缓存路径
|
|
can_delete:
|
|
type: boolean
|
|
description: 是否可删除
|
|
can_update:
|
|
type: boolean
|
|
description: 是否可以更新资源属性
|
|
created_at:
|
|
type: string
|
|
example: 2019-05-30T02:25:38.000000Z
|
|
description: 资源创建时间
|
|
capacity:
|
|
type: integer
|
|
example: 10240
|
|
description: 存储容量(单位MB)
|
|
storage_type:
|
|
type: string
|
|
example: local
|
|
description: 存储集群类型
|
|
free_capacity:
|
|
type: integer
|
|
example: 10240
|
|
description: 剩余存储容量(单位MB)
|
|
cmtbound:
|
|
type: float
|
|
example: 1.000000
|
|
description: 超售比
|
|
guest_disk_count:
|
|
type: integer
|
|
example: 10
|
|
description: 磁盘数量
|
|
|
|
HostStorageListResponse:
|
|
type: object
|
|
properties:
|
|
limit:
|
|
type: integer
|
|
example: 20
|
|
storages:
|
|
type: array
|
|
items:
|
|
$ref: '#/HostStorage'
|
|
total:
|
|
type: integer
|
|
example: 124
|
|
|
|
HostStorageResponse:
|
|
type: object
|
|
properties:
|
|
storage:
|
|
type: object
|
|
$ref: '#/HostStorage' |