harbor api for accessing "info" field in repo
vlakshmi70@...
Hi,
Is there an API to get the "info" field in repo similar to say getting the label or tag for a repo-name. curl -X GET "https://harbor.com/api/ repositories/{repo_name}/info" -H "accept: application/json" thanks. |
|
Steven Ren
Hi Vlakshmi, If you installed Harbor, in Harbor UI, there is an API explorer page at the left bottom of the page, You can see all the APIs at there. Hope this helps. Best regards, Steven
From: <harbor-users@...> on behalf of "vlakshmi70 via lists.cncf.io" <vlakshmi70=yahoo.com@...>
Hi, |
|
vlakshmi70@...
Steven,
Yes I couldn't find one for GETTer API for "info" field in the repo APIs. I am using v1.8 of harbor. Not sure if this API for getting the "info" field has been added in a later revision?? Thanks |
|
Steven Zou
Could you try `GET http(s)://<harbor-hostname>/api/repositories/{repo_name}`? The `description` field of the returned repository model is the `info` data you’re looking for.
thanks®ards -- Steven Zou(邹佳)
Engineer, MAP(Modern Application Platform), VMware R&D | Harbor Maintainer
Mail: szou@... GitHub: github.com/steven-zou Cell: +8618600021252 Addr: 9F Tower C, Raycom Info Tech Park, No. 2 Kexueyuan South Road Haidian District, Beijing 100738 China
From: <harbor-users@...> on behalf of "vlakshmi70 via lists.cncf.io" <vlakshmi70=yahoo.com@...>
Steven, |
|