Force Reindex

Xray REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Reindexes existing artifacts for missing components.

Notes: The repositories and builds need to be configured for indexing in Xray prior to running the command.

The reindexing process only adds missing files or components and does not remove existing ones.

The number of max entities that can be reindexed is limited to 1000 and is set as the default value. This value can be changed by setting the maxEntitiesToReindex parameter in the Xray System YAML File.Xray System YAML

Security: Requires an admin user

Usage: POST /api/v1/forceReindex

Consumes: application/json

{
    "artifactory_id": "art1AWS",
    "artifacts": [
        {
            "repository": "myDebian", // repository is a mandatory parameter, either path or sha256 or both should be provided - if both are provided we compare the given sha256 to the actual sha256 and fail if they are incompatible 
            "path": "/aaa/bb/ccc.deb", 
            "sha256": "aa146bx"
        }
    ],
    "builds": [
        {
            "name": "myb",  // both build name and build number must be provided
            "number": "12"
        }
    ]
}

Sample response

{
  "sent_to_reindex": {
    "artifacts": [
      {
        "repository": "myDebian",  
        "path": "aaa/bb/ccc",
        "sha256": "aa146bx"
      }
    ],
    "builds": [
      {
        "name": "myb",
        "number": "12"
      }
    ]
  },
}