Way to get list of replication agents configured using JS | Community
Skip to main content
edubey
Level 10
October 16, 2015
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
Employee
October 16, 2015

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

Kunal_Gaba_
New Participant
October 16, 2015

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
Lokesh_Shivalingaiah
Level 10
October 16, 2015

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
joerghoh
joerghohAccepted solution
Employee
October 16, 2015

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
edubey
edubeyAuthor
Level 10
October 16, 2015

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
Lokesh_Shivalingaiah
Level 10
October 16, 2015

I dont see any OOTB servlet which list the agents.

Translate