Examples of Searching in Remote Repositories with AQL

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Example 1: Input

The following example searches for all the fields of the domain item.

items.find(
    {
            "repo" : "docker-remote-repo"
    }
).transitive()

Example 1: Output

{
    "results": [
        {
            "repo": "docker-remote-repo-cache",
            "path": "alpine/latest",
            "name": "manifest.json",
            "type": "file",
            "size": 528,
            "created": "2021-03-21T13:54:52.383+02:00",
            "created_by": "admin",
            "modified": "2021-03-21T13:54:32.000+02:00",
            "modified_by": "admin",
            "updated": "2021-03-21T13:54:52.384+02:00"
        },
    ...
    ],
    "range": {
        "start_pos": 0,
        "end_pos": 12,
        "total": 12
    }
}

Example 2: Input

The following example limits the searches to results listed in the includesection.

items.find(
    {
                "repo" : "docker-remote-repo"
    }
).include("name").transitive()

Example 2: Output

{
    "results": [
        {
            "name": "manifest.json"
        },
        {
            "name": "sha256__4c0d98bf9879488e0407f897d9dd4bf758555a78e39675e72b5124ccf12c2580"
        },
        {
            "name": "sha256__e50c909a8df2b7c8b92a6e8730e210ebe98e5082871e66edd8ef4d90838cbd25.marker"
        },
        {
            "repo": "docker-remote-repo",
            "name": "manifest.json"
        },
        {
            "repo": "docker-remote-repo",
            "name": "repository.catalog"
        },
        {
            "repo": "docker-remote-repo",
            "name": "sha256__4c0d98bf9879488e0407f897d9dd4bf758555a78e39675e72b5124ccf12c2580"
        },
        {
            "repo": "docker-remote-repo",
            "name": "sha256__e50c909a8df2b7c8b92a6e8730e210ebe98e5082871e66edd8ef4d90838cbd25"
        }
    ],
    "range": {
        "start_pos": 0,
        "end_pos": 7,
        "total": 7
    }
}