Reputation: 3181
I am looking for a artifactory REST API that would list down all the repo-keys. If it could provide some more information then that would be really nice.
I looked up the Artifactory REST API documentation, but couldn't find one.
Did I miss anything ? Any other alternative ?
Upvotes: 6
Views: 10047
Reputation: 117
For jFrog cloud, below API should list all repo details. Pass username and password using HTTP basic authentincation headers.
HTTP GET https://jFrog-cloud-domain-name/artifactory/api/repositories
Below is sample JSON response.
[
{
"key": "ABC",
"description": "ABC Repo",
"type": "LOCAL",
"url": "https://<jFrog cloud domain name>/artifactory/ABC",
"packageType": "GitLfs"
},
{
"key": "DEF",
"description": "DEF Generic Repo",
"type": "LOCAL",
"url": "https://<jFrog cloud domain name>/artifactory/DEF",
"packageType": "Generic"
},
{
"key": "XYZ",
"description": "XYZ repo",
"type": "LOCAL",
"url": "https://<jFrog cloud domain name>/artifactory/XYZ",
"packageType": "Maven"
}
]
Upvotes: 0
Reputation: 2770
I expect you're just looking for GET /api/repositories.
This gives you the repo key, type, package type, description, and the URL of each repository, and you may filter by type or package type.
Upvotes: 11