flexrep.configurationDomainIds() as Sequence
This function returns the IDs of the domains configured for the Master database.
const flexrep = require('/MarkLogic/flexrep'); flexrep.configurationDomainIds(); // Returns the IDs of the domains used by the database on which the query // is executed.
http://marklogic.com/xdmp/privileges/flexrep-admin