Pattern Search

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Get all artifacts matching the given Ant path pattern

Since: 2.2.4

Notes: Requires Artifactory Pro. Pattern "**" is not supported to avoid overloading search results.

Security: Requires a privileged non-anonymous user.

Usage: GET /api/search/pattern?pattern=repo-key:this/is/a/*pattern*.war

Produces: application/json (application/vnd.org.jfrog.artifactory.search.PatternResultFileSet+json)

Sample Output:

GET /api/search/pattern?pattern=libs-release-local:killer/*/ninja/*/*.jar
{
    "repositoryUri" : "http://localhost:8081/artifactory/libs-release-local",
    "sourcePattern" : "libs-release-local:killer/*/ninja/*/*.jar",
    files : [
        "killer/coding/ninja/1.0/monkey-1.0.jar",
        "killer/salty/ninja/1.5-SNAPSHOT/pickle-1.5-SNAPSHOT.jar"
    ]
}