Update Repository Replication Configuration

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Update existing replication configuration for given repository key, if found. Supported by local and remote repositories.

Notes: Requires Artifactory Pro

Note

For multiple repository replication, refer to the Create or Replace Local Multi-push Replication REST API.

Security: Requires an admin user

Usage: POST /api/replications/{repoKey}

Consumes: full or partial application/json (application/vnd.org.jfrog.artifactory.replications.ReplicationConfigRequest+json)

Since: 3.1.1 (update to include/exclude pattern on replication added in Artifactory 7.24.4)

Note: Enabling the checkBinaryExistenceInFilestore flag requires an Enterprise+ license. For more information, see Repository Replication .Repository Replication

Sample Usage:

POST /api/replications/libs-release-local

{
  "url" : "http://localhost:8081/artifactory/remote-repo",
  "socketTimeoutMillis" : 15000,
  "username" : "admin",
  "password" : "password",
  "enableEventReplication" : false,
  "enabled" : true,
  "cronExp" : "0 0 12 * * ?",
  "syncDeletes" : true,
  "syncProperties" : true,
  "syncStatistics" : false,
  "repoKey" : "libs-release-local",
  "includePathPrefixPattern" : "/path/to/repo,    
  "excludePathPrefixPattern" : "/path/to/repo", 
  "checkBinaryExistenceInFilestore" : "<true | false>" // When true, enables distributed checksum storage. For more information, see Optimizing Repository Replication with Checksum- Based Storage
}