flexrep.domainTargetStatuses() as Sequence
This function returns the status for each domain target.
const flexrep = require('/MarkLogic/flexrep'); flexrep.domainTargetStatuses(); // Returns the status for the targets in each domain configured for the database.
http://marklogic.com/xdmp/privileges/flexrep-user