REST API - Pull Repository

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

REST API - Pull Repository

mistercaste

Hi

I am trying the REST API to pull a repository (Artifactory PRO), however the link below only shows how to push.
What should I do in order to make a pull?

https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-Pull/PushReplication

Thank you





Reply | Threaded
Open this post in threaded view
|

Re: REST API - Pull Repository

drorb
This API is used for triggering both pull and push replications.
In order to use it for pull replication, user the repository key of the pulling repository (should be a remote repository):

POST /api/replication/<REPO_KEY>

Notice that you do not need to provide the url, username and password parameters as they are already part of the remote repository configuration.