更新时间:2022-02-22 GMT+08:00

查询镜像仓库概要信息

功能介绍

查询组织下镜像仓库的概要信息。

URI

GET /v2/manage/namespaces/{namespace}/repos/{repository}

参数说明请参见表1

表1 参数说明

参数名称

是否必选

参数类型

描述

namespace

String

组织名称

repository

String

镜像仓库名称

请求消息

  • 请求参数

  • 请求样例
    GET https://{Endpoint}/v2/manage/namespaces/group/repos/busybox

响应消息

  • 响应参数
    表2 Response Body参数说明

    参数

    参数类型

    描述

    id

    Integer

    镜像仓库ID

    ns_id

    Integer

    组织ID

    name

    String

    镜像仓库名称

    category

    String

    镜像仓库类型,取值为app_server、linux、framework_app、database、lang、other、windows、arm。

    description

    String

    镜像仓库描述信息

    creator_id

    String

    镜像仓库创建者ID

    creator_name

    String

    镜像仓库创建者

    size

    Integer

    镜像仓库大小

    is_public

    Boolean

    镜像仓库是否为公共仓库,值为true或false。

    num_images

    Integer

    镜像仓库中镜像个数

    num_download

    Integer

    镜像仓库下载次数

    url

    String

    镜像仓库logo图片的URL,URL格式(该字段已废弃,默认为空)。

    path

    String

    镜像pull路径,格式为{Repository address}/{Namespace name}/{Repository name}。

    internal_path

    String

    镜像内网pull路径,格式为{Repository address}/{Namespace name}/{Repository name}。

    created

    String

    镜像仓库创建时间,UTC日期格式,时间为UTC标准时间。

    updated

    String

    镜像仓库更新时间,UTC日期格式,时间为UTC标准时间。

    domain_id

    String

    帐号ID

    priority

    Integer

    镜像排序优先级

  • 响应样例
    {
        "id": 865151,
        "ns_id": 1334795,
        "name": "busybox",
        "category": "other",
        "description": "containerops",
        "creator_id": "050b12577f00269a1fcfc01f65239697",
        "creator_name": "admin",
        "size": 2099575,
        "is_public": false,
        "num_images": 1,
        "num_download": 0,
        "url": "",
        "path": "{Repository address}/group/busybox",
        "internal_path": "{Repository address}/group/busybox",
        "created": "2021-06-02T09:59:25.51307Z",
        "updated": "2021-06-02T17:59:25.538056Z",
        "domain_id": "da44776c316c4a99b3683bb174f8821b", 
        "priority": 0
    }

状态码

状态码

描述

200

请求成功

400

错误请求,返回错误信息。

401

鉴权失败的报错信息

404

repository不存在

500

服务器内部错误,返回错误信息。