查询 OCI 仓库镜像版本
此接口用于查询符合 OCI 标准的镜像仓库中某个镜像的版本列表。
接口描述
通信协议:HTTP
URL:GET /api/v1/image/tags
传参方式:query
请求参数
字段名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
registryId | string | 是 | 镜像仓库 ID |
imageName | string | 是 | 镜像名称 |
响应参数
字段名 | 类型 | 说明 |
---|---|---|
name | string | 镜像名称 |
tag | string | 镜像版本 |
请求示例
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"
}
]
}
错误码
具体请参见 错误码说明。