查询 OCI 仓库镜像版本

更新时间:
2025-01-14

查询 OCI 仓库镜像版本

此接口用于查询符合 OCI 标准的镜像仓库中某个镜像的版本列表。

接口描述

通信协议:HTTP

URL:GET /api/v1/image/tags

传参方式:query

请求参数

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

响应参数

字段名 类型 说明
namestring镜像名称
tagstring镜像版本

请求示例

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

响应示例

{
    "status": 200,
    "message": "success",
    "fieldErrors": null,
    "data": [
        {
            "name": "hello-world",
            "tag": "latest"
        },
        {
            "name": "hello-world",
            "tag": "v2"
        }
    ]
}

错误码

具体请参见 错误码说明

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