Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Way to get list of replication agents configured using JS

Avatar

Level 10

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

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

Jörg

View solution in original post

5 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Employee Advisor

Hi,

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

Jörg

Avatar

Level 10

Thanks Lokesh,

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

Avatar

Level 10

I dont see any OOTB servlet which list the agents.