校验仓库地址

更新时间:
2025-01-14

校验仓库地址

此接口用于校验新建的远程仓库地址是否已经存在。

接口描述

通信协议:HTTP

URL:GET /api/v1/registry/address/check

传参方式:query

请求参数

字段名 类型 是否必填 说明
addressstring仓库名称
idstring仓库 ID,如果配置 ID 则排除此 ID 对应的仓库地址

响应参数

响应体 data 字段类型为 boolean,true 表示存在,false 表示不存在。

请求示例

curl --location --request GET 'http://localhost:3001/api/v1/registry/address/check?address=http://ecmp.d.e0a.cc'

响应示例


{
    "status": 200,
    "message": "success",
    "fieldErrors": null,
    "data": true
}

错误码

具体请参见 错误码说明

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