Description: Enables/disables multiple replication tasks by repository or Artifactory server based on include and exclude patterns where include and exclude patterns should be target repository URLs.
Notes: Requires Artifactory Pro
Security: Requires a privileged user
Usage: POST artifactory/api/replications/{enable | disable}
Consumes: application/json
Since: 4.4.3
Sample Usage:
//Enable/disable all push replications except those going out to http://artimaster:port/artifactory and https://somearti:port/artifactory/local-repo.
POST artifactory/api/replications/{enable | disable}
{
"include" : [ "**" ],
"exclude" : [ "http://artimaster:port/artifactory/**", "https://somearti:port/artifactory/local-repo" ]
}
//Enable/disable all push replications expect those going out to http://artidr:port/artifactory
POST artifactory/api/replications/{enable | disable}
{
"include" : [ "**" ],
"exclude" : [ "http://artidr:port/artifactory/**" ]
}