Get Repository Replication Configuration

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Returns the replication configuration for the given repository key, if found. Supported by local and remote repositories. Note: The 'enableEventReplication' parameter refers to both push and pull replication.

Notes: Requires Artifactory Pro

Security: Requires an admin user

Usage: GET /api/replications/{repoKey}

Produces: 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)

Sample Usage:

GET /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",   "replicationKey" : "generic-local_http__5d00703ade",
  "includePathPrefixPattern" : "/path/to/repo",
   "excludePathPrefixPattern" : "/path/to/repo",
   "checkBinaryExistenceInFilestore" : false
}

Note: For Enterprise instances that support multipush replication, this REST API will return an array:

GET /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",   "replicationKey" : "generic-local_http__5d00703ade",
  "includePathPrefixPattern" : "/path/to/repo",
   "excludePathPrefixPattern" : "/path/to/repo",
   "checkBinaryExistenceInFilestore" : false
}]