Accessing Replication agents through curl commands | Community
Skip to main content
April 14, 2020
Solved

Accessing Replication agents through curl commands

  • April 14, 2020
  • 1 reply
  • 2004 views

I have a  requirement to access the custom replication agent(which will be created to publish out content until preview environment) through curl command.

I tried for direct activation(default publish replication agent) with below command

 

String[] command1 = { "curl", "--insecure", "-u", username + ":" + password, "-X", "POST", "-F",
                                         "path=" + pathForReplication, "-F", "cmd" + "=" + "activate", url };
 
                           executeCommand(command1);
                           System.out.println(command1.toString());
 
Requirement: Manually we need to initiate publish to preview workflow but though curl command how to access the replication agent(nothing but the workflow will link to preview replication agent)  which will send our content till preview environment.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by sunjot16

You can get the status of the Replication Agent(as follows) and perform several other actions, such as creating a new one, deleting an existing one, etc.

curl -u admin:admin "http://localhost:4502/etc/replication/agents.author/publish/jcr:conten t.queue.json?agent=publish"
http://localhost:4502/etc/replication/agents.author/publish/jcr:content.queue.js on?agent=publish

 

Try this document:

https://docs.adobe.com/content/help/en/experience-manager-64/administering/operations/curl.html#replication-agent

1 reply

sunjot16
Adobe Employee
sunjot16Adobe EmployeeAccepted solution
Adobe Employee
April 14, 2020

You can get the status of the Replication Agent(as follows) and perform several other actions, such as creating a new one, deleting an existing one, etc.

curl -u admin:admin "http://localhost:4502/etc/replication/agents.author/publish/jcr:conten t.queue.json?agent=publish"
http://localhost:4502/etc/replication/agents.author/publish/jcr:content.queue.js on?agent=publish

 

Try this document:

https://docs.adobe.com/content/help/en/experience-manager-64/administering/operations/curl.html#replication-agent