Invoke Replication Agent Using http request | Community
Skip to main content
Level 2
Oct 24, 2018 12:10 AM UTC

Invoke Replication Agent Using http request

Hi,

I have custom replication agent with transport handler to invoke some REST API.

From AEM when I Activate/Deactivate any page - things work well.

Issue:

I want to invoke the replication agent/transport handler on author instance from a HTTP request from postman. is that possible?

My goal is to perform a performance run with that HTTP request.

Different trails made:

http://localhost:4502/etc/replication/agents.author/solragent.test.html  -> this would only work on GET and only path is /content

http://localhost:4502/bin/replication.json -> 403 Forbidden

We are using AEM 6.3

Is this possible?

Any pointers would greatly help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

7 replies

Shashi_Mulugu
New Participant
Oct 24, 2018 10:42 AM UTC

Disable all other replication agents, enable only your custom agent and either use the curl command or Post man with below options.

curl -u admin:admin -X POST -F path="/content/path/to/page" -F cmd="activate" http://localhost:4502/bin/replicate.json

Translate
Level 2
Oct 24, 2018 5:52 PM UTC

Hi,

That is still giving Authentication failure issue. Though admin/admin is the correct credentials to be used.

Translate
Nirmal_Jose
Employee
Oct 25, 2018 3:23 AM UTC

Have you setup basic authentication itself in the authentication tab. After setting that one, it worked for me

Translate