容器镜像服务 SWR-查询共享镜像列表:响应参数

时间:2023-11-21 14:35:58

响应参数

状态码: 200

表3 响应Header参数

参数

参数类型

描述

Content-Range

String

offset(开始索引)-count(当前页记录条数)/total(总记录条数)

表4 响应Body参数

参数

参数类型

描述

[数组元素]

Array of ShowReposResp objects

请求成功

表5 ShowReposResp

参数

参数类型

描述

name

String

仓库名称

category

String

仓库类型(计划改造,每个镜像会有多个lable标示)

description

String

仓库描述信息

size

Long

仓库大小

is_public

Boolean

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

num_images

Long

仓库中镜像个数,0 ~ 9223372036854775807

num_download

Long

仓库下载次数

created_at

String

仓库创建时间,UTC日期格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00

updated_at

String

仓库更新时间,UTC日期格式,时间为UTC标准时间,用户需要根据本地时间计算偏移量;如东8区需要+8:00

logo

String

仓库logo地址(暂时未用)

url

String

仓库logo图片的URL,URL格式。(暂时未用)

path

String

镜像pull路径,格式为 swr.cn-north-1.myhuaweicloud.com/namespace/repository

internal_path

String

镜像pull路径,格式为 10.125.0.198:20202/namespace/repository

domain_name

String

租户名

namespace

String

租户的组织名称

tags

Array of strings

镜像版本列表

status

Boolean

查询他人共享镜像:共享是否过期 查询我共享的镜像:默认为false,无意义

total_range

Long

总记录条数

support.huaweicloud.com/api-swr/swr_02_0075.html