Skip to main content
edubey
Level 10
Oct 16, 2015 2:28 AM UTC
Solved

Way to get list of replication agents configured using JS

Hi ,

Is there any way to get the list of replication agents configure on a instance,

While working on author, I need list of publish instance configured using JS.

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Oct 16, 2015 2:28 AM UTC

Hi,

if you just need the names, you can use http://host/etc/replication/agents.author.1.json and parse the JSON.

Jörg

5 replies

Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:28 AM UTC

I dont see any OOTB servlet which list the agents.

Translate
edubey
edubeyAuthor
Level 10
Oct 16, 2015 2:28 AM UTC

Thanks Lokesh,

Yup that could be the possible way, Just looking is there any OOTB servlet implemented by AEM to get the agents data.

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:28 AM UTC

Hi,

if you just need the names, you can use http://host/etc/replication/agents.author.1.json and parse the JSON.

Jörg

Translate
Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:28 AM UTC

Write a service to get all the list of replication agent and call that service in JS

you can use replication agent API get the same

Translate
Kunal_Gaba_
New Member
Oct 16, 2015 2:28 AM UTC

If you just want the list of agents then you can fire a GET request to the following URI - 

http://localhost:4502/bin/querybuilder.json?type=nt:unstructured&sling:resourceType=cq/replication/components/agent&group.1_path=/etc/replication/

Translate