查询 OCI 仓库镜像详情

更新时间:
2025-01-14

查询 OCI 仓库镜像详情

此接口用于查询符合 OCI 标准的镜像仓库中某版本镜像的详细信息。

接口描述

通信协议:HTTP

URL:GET /api/v1/image/tagDetail

传参方式:query

请求参数

字段名 类型 是否必填 说明
registryIdstring镜像仓库 ID
imageNamestring镜像名称
tagstring镜像版本

响应参数

字段名 类型 说明
sizeint镜像大小
osstring镜像系统
archstring镜像架构
createdTimestring镜像创建时间
pathstring镜像地址
hostnamestring用户配置的容器主机名称
pulledboolean该镜像是否已在本地仓库存在

请求示例

curl --location --request GET 'http://localhost:3001/api/v1/image/tagDetail?registryId=82283746-ecfe-46cb-bb78-10bb2e315b80&imageName=hello-world&tag=latest'

响应示例

{
    "status": 200,
    "message": "success",
    "fieldErrors": null,
    "data": {
        "size": 0.01,
        "os": "linux",
        "arch": "x86-64",
        "createdTime": "2021-09-23T23:47:57.442225064Z",
        "path": "http://192.168.XX.XX:5000/hello-world@latest",
        "hostname": "",
        "pulled": false
    }
}

错误码

具体请参见 错误码说明

文档内容是否对您有所帮助?
有帮助
没帮助