如何使用 API 查看极狐GitLab 镜像仓库中的镜像?

GitLab 是一个全球知名的一体化 DevOps 平台,很多人都通过私有化部署 GitLab 来进行源代码托管。极狐GitLabhttps://gitlab.cn/install?channel=content\&utm_source=csdn 是 GitLab 在中国的发行版,专门为中国程序员服务。可以一键式部署极狐GitLab。

极狐GitLab 在 5 月 28 日正式发布了 AI 产品驭码CodeRider。现已开启免费试用,登录官网:https://coderider.gitlab.cn/ 即可申请试用。

更多关于极狐GitLabhttps://gitlab.cn 或者 DevOps 的最佳实践,可以关注文末的极狐GitLab 公众号。

学习极狐GitLab 的相关资料:

  1. 极狐GitLab 官网https://gitlab.cn
  2. 极狐GitLab 官网文档https://docs.gitlab.cn
  3. 极狐GitLab 论坛https://forum.gitlab.cn/
  4. 极狐GitLab 安装配置https://gitlab.cn/install
  5. 极狐GitLab 资源中心https://resources.gitlab.cn/
  6. AI 产品驭码CodeRiderhttps://coderider.gitlab.cn/

搜索【极狐GitLab】公众号,后台输入加群 ,备注gitlab,即可加入官方微信技术交流群。

关联阅读

上一篇文章中,我们使用 GET /groups/:id/registry/repositoriesAPI list 出来了群组下面的容器镜像仓库。那如何用 API 再查看某个具体的仓库下面的镜像呢?

当然可以使用下面的 API:

复制代码
GET /registry/repositories/:id

比如上面文章中list 出来了两个镜像仓库,ID 分别为 534和 535。以 535为例,可以使用下面的 API 完成 list 出该仓库下面的镜像详情:

复制代码
curl --header "PRIVATE-TOKEN: YOUR-PERSONAL-ACCESS-TOKEN" \
     "https://jihulab.com/api/v4/registry/repositories/535?tags=true&tags_count=true&size=true"

可以看到如下返回结果:

复制代码
{
  "id": 535,
  "name": "",
  "path": "jh-xiaomage-devops/go-demo",
  "project_id": 16274,
  "location": "registry.jihulab.com/jh-xiaomage-devops/go-demo",
  "created_at": "2022-02-21T18:45:07.090+08:00",
  "cleanup_policy_started_at": null,
  "tags_count": 1,
  "tags": [
    {
      "name": "1.0.0",
      "path": "jh-xiaomage-devops/go-demo:1.0.0",
      "location": "registry.jihulab.com/jh-xiaomage-devops/go-demo:1.0.0"
    }
  ],
  "delete_api_path": "https://jihulab.com/api/v4/projects/16274/registry/repositories/535",
  "size": null,
  "status": null
}
相关推荐
handsome09161 天前
最简单的CI/CD部署流水线用什么工具
ci/cd
深兰科技1 天前
俄罗斯T1集团代表团到访深兰科技,就具身智能与复杂场景工程化应用达成多项合作共识
windows·ci/cd·github·visual studio·具身智能·深兰科技·俄罗斯t1集团
极小狐1 天前
极狐GitLab 18.7 版本发布,带来了改进的 GitLab Duo 分析仪表盘与密钥有效性校验、支持为聊天和智能体选择 AI 模型,以及更多新功能!
人工智能·gitlab
ChineHe1 天前
Docker基础篇001_Docker入门指南(基于官方教程,5W字详细版)
运维·docker·微服务·容器·云计算·devops
一叶飘零_sweeeet1 天前
解决 GitLab 响应超时:清理日志 + 重启服务一步到位
gitlab
智能运维指南2 天前
信创背景下,企业DevOps平台选型的核心考量因素与战略规划
devops·devops产品·devops平台·devops系统·devops厂商
云雾J视界2 天前
RAG 还是微调?用 Gemini API 打造企业私有知识库的落地路径
大数据·人工智能·api·知识库·rag·gemini
FITA阿泽要努力2 天前
动手体验:5min实现第一个智能体——1
json·api·agent·requests·查询天气·pprint·f-string
张小凡vip3 天前
数据挖掘(五) -----JupyterHub 使用gitlab的账号体系进行认证
人工智能·数据挖掘·gitlab
沛沛老爹3 天前
从Web到AI:Agent Skills CI/CD流水线集成实战指南
java·前端·人工智能·ci/cd·架构·llama·rag