跳到主要内容

存储内容

获取存储中的内容列表(ISO、备份、模板等)。

请求

GET /api/v1/pve/storage/:clusterId/:node/:storage/content
Authorization: Bearer <token>

路径参数

参数类型说明
clusterIdint集群 ID
nodestring节点名称
storagestring存储名称

查询参数

参数类型说明
contentstring内容类型(iso/backup/template)

响应

{
"code": 200,
"message": "success",
"data": {
"list": [
{
"volid": "local:iso/ubuntu-22.04.iso",
"size": 2048000000,
"format": "iso",
"content": "iso"
},
{
"volid": "local:backup/vzdump-qemu-100-2024_01_01-00_00_00.vma.zst",
"size": 10240000000,
"format": "vma",
"content": "backup"
}
]
}
}