跳到主要内容

查询镜像的版本列表

请求方法

GET

请求地址

/api/v1/image_registry/tag/list

请求参数(query)

参数名参数类型参数释义
image_nameString必传,镜像名。格式例如"base/pytorch"
sortString可选,排序类型。枚举值:"created", "tag"。默认"tag"
orderString可选,排序方式。枚举值:"asc", "desc"。默认"desc"
currentNumber可选,页码。默认1
page_sizeNumber可选,每页大小。默认30

返回数据

参数名参数类型参数释义
codeNumber错误码,0为正常
msgString错误描述
dataData数据Object

Data

参数名参数类型参数释义
totalNumber总数
list[]ImageTag列表

ImageTag

参数名参数类型参数释义
idNumberTag ID
tagStringTag
digistString镜像唯一标识
os_archStringOS/ARCH
sizeString镜像大小(bytes)
run_timesNumber运行次数
create_timeString创建时间

请求示例

/api/v1/image_registry/tag/list?image_name=bag/sd-webui

返回示例

{
"code": 0,
"msg": "OK",
"data": {
"total": 2,
"list": [
{
"id": 138,
"tag": "1.9.4-5",
"digist": "sha256:2989dfaea1b5b3815c268c5d48252431f15407e78d9f1c336d0a136c4d182c56",
"os_arch": "linux/amd64",
"size": "12768089226",
"run_times": 1,
"create_time": "2024-07-14 15:59:45"
},
{
"id": 137,
"tag": "1.9.4-3",
"digist": "sha256:f9a195339d55881ab873b18456a303baed9830707ab5424d70e9868e0d4e40ba",
"os_arch": "linux/amd64",
"size": "12768089874",
"run_times": 1,
"create_time": "2024-07-13 22:46:42"
}
]
}
}