Enable or Disable Multiple Replications

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Enables/disables multiple replication tasks by repository or Artifactory server based in include and exclude patterns.

Notes: Requires Artifactory Pro

Security: Requires a privileged user

Usage: POST /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 /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 /api/replications/{enable | disable}
{
  "include" : [ "**" ],
  "exclude" : [ "http://artidr:port/artifactory/**" ]
}