查询仓库列表

更新时间:
2025-01-14

查询仓库列表

此接口用于按条件查询远程仓库列表。

接口描述

通信协议:HTTP

URL:GET /api/v1/registry

传参方式:query

请求参数

字段名 类型 是否必填 说明
keystring搜索关键字

响应参数

字段名 类型 说明
namestring仓库名称
addressstring仓库地址
idstring仓库主键
createdTimestring创建时间
usernamestring连接仓库的账号
passwordstring连接仓库的密码
statusboolean仓库连接状态。true 表示在线;false 表示离线
typeenum仓库类型,如 docker、ECMP、unknown 等

请求示例

curl --location --request GET 'http://localhost:3001/api/v1/registry?key=C'

响应示例

{
    "status": 200,
    "message": "success",
    "fieldErrors": null,
    "data": [
        {
            "name": "OCI",
            "address": "http://192.168.XX.XX:5000",
            "id": "e6c846d4-1f92-467f-951f-197c2ce64d73",
            "createdTime": "2023-01-09 11:09:08",
            "username": "hello",
            "password": "myPWD",
            "status": true,
            "type": "docker"
        },
        {
            "name": "ECMP",
            "address": "http://ecmp.d.e0a.cc",
            "id": "2bd6d8fc-da11-44c9-b5b1-9b6008d5a3ac",
            "createdTime": "2023-01-09 11:09:42",
            "username": "hello",
            "password": "myPWD",
            "status": true,
            "type": "ECMP"
        }
    ]
}

错误码

具体请参见 错误码说明

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