Get Repositories

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Returns a list of minimal repository details for all repositories of the specified type. Filter the results using the parameters:

  • packageType for repositories of a specific package type

  • repositoryType for repositories of a specific type

  • project for repositories assigned to a specific project

Note: Federated Repositories are supported from Artifactory 7.18.3 and require an Enterprise or Enterprise+ subscription.

Since: 2.2.0 (packageType option was introduced in version 6.2.0)

Security: Requires a privileged user (can be anonymous)

Usage: GET /api/repositories[?type=repositoryType (local|remote|virtual|federated|distribution)]|[&packageType=bower | cargo| chef|cocoapods |composer|conan|cran|debian|docker|gems|gitlfs|go|gradle|helm|ivy|maven|nuget|opkg|p2|pub|puppet|pypi|rpm|sbt|swift| terraform|vagrant|yum|generic]|[&project=projectKey]

Produces: application/json (application.vnd.org.jfrog.artifactory.repositories.RepositoryDetailsList+json)

Sample Output:

GET /api/repositories
[
  {
    "key" : "libs-releases-local",
    "type" : "LOCAL",
    "description" : "Local repository for in-house libraries",
    "url" : "http://localhost:8081/artifactory/libs-releases-local",
    "packageType": "Generic"
  }, {
    "key" : "libs-snapshots-local",
    "type" : "LOCAL",
    "description" : "Local repository for in-house snapshots",
    "url" : "http://localhost:8081/artifactory/libs-snapshots-local",
    "packageType": "Maven"
  }
]