flexrep:domain-target-statuses() as element(flexrep:domain-target-status)*
This function returns the status for each domain target.
xquery version "1.0-ml"; import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" at "/MarkLogic/flexrep.xqy"; flexrep:domain-target-statuses() (: Returns the status for the targets in each domain configured for the database. :)
http://marklogic.com/xdmp/privileges/flexrep-user