当前位置: 首页 > 工具软件 > Harbor > 使用案例 >

harbor-api

宣俊豪
2023-12-01
curl -X GET --header 'Accept: application/json' 'http://192.168.0.241/api/search?q=library'
curl -X GET --header 'Accept: application/json' 'https://172.16.100.216/api/search?q=library'
curl -u "admin:ops@456" -X GET -H "Content-Type: application/json" 'https://172.16.100.216/api/search?q=library'
curl -k -u "admin:ops@456" -X GET -H "Content-Type: application/json" 'https://172.16.100.216/api/search?q=library'

/chartrepo/{repo}/charts/{name}/{version}

删除镜像

curl -k -u "admin:ops@456" -X DELETE -H "Content-Type: application/json" "https://172.16.100.216/api/repositories?repo_name=library%2busybox"

获取镜像标签

curl -k -u "admin:ops@456" -X GET -H "Content-Type: application/json" "https://172.16.100.216/api/repositories/tags?repo_name=library%2busybox"

列出项目

curl -k -u "admin:ops@456" -X GET -H "Content-Type: application/json" "https://172.16.100.216/api/projects"

根据id 列出项目详细信息

curl -k -u "admin:ops@456" -X GET -H "Content-Type: application/json" "https://172.16.100.216/api/projects/3"
curl -k -u "admin:ops@456" -X GET -H "Content-Type: application/json" "https://172.16.100.216/api/project/busybox/tags"

repositories

 类似资料: