查询 OCI 仓库镜像详情
此接口用于查询符合 OCI 标准的镜像仓库中某版本镜像的详细信息。
接口描述
通信协议:HTTP
URL:GET /api/v1/image/tagDetail
传参方式:query
请求参数
字段名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
registryId | string | 是 | 镜像仓库 ID |
imageName | string | 是 | 镜像名称 |
tag | string | 是 | 镜像版本 |
响应参数
字段名 | 类型 | 说明 |
---|---|---|
size | int | 镜像大小 |
os | string | 镜像系统 |
arch | string | 镜像架构 |
createdTime | string | 镜像创建时间 |
path | string | 镜像地址 |
hostname | string | 用户配置的容器主机名称 |
pulled | boolean | 该镜像是否已在本地仓库存在 |
请求示例
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
}
}
错误码
具体请参见 错误码说明。