查询 OCI 仓库镜像列表
此接口用于查询符合 OCI 标准的镜像仓库的镜像列表。
接口描述
通信协议:HTTP
URL:GET /api/v1/image/_catalog
传参方式:query
请求参数
字段名 | 类型 | 是否必填 | 说明 |
---|---|---|---|
registryId | string | 是 | 镜像仓库 ID |
响应参数
字段名 | 类型 | 说明 |
---|---|---|
data | array | 镜像名称列表 |
请求示例
curl --location --request GET 'localhost:3001/api/v1/image/_catalog?registryId=82283746-ecfe-46cb-bb78-10bb2e315b80'
响应示例
{
"status": 200,
"message": "success",
"fieldErrors": null,
"data": [
"busybox",
"hello-world",
"httpd",
"redis",
"registry"
]
}
错误码
具体请参见 错误码说明。