查询镜像数量
此接口用于查询远程仓库和本地仓库的镜像数量。
接口描述
通信协议:HTTP
URL:GET /api/v1/image/summary
传参方式:无
请求参数
无
响应参数
字段名 | 类型 | 说明 |
---|---|---|
local | int | 本地仓库镜像总数量 |
remote | int | 远程仓库镜像总数量,但不包括 OCI 标准仓库 |
请求示例
curl --location --request GET 'http://localhost:3001/api/v1/image/summary'
响应示例
{
"status": 200,
"message": "success",
"fieldErrors": null,
"data": {
"local": 17,
"remote": 13
}
}
错误码
具体请参见 错误码说明。