flexrep.pullGet( domain-id as (Number|String), [assert as Boolean] ) as Sequence
This function returns the pull replication configuration for the specified domain.
// Execute against a Replica database. const flexrep = require('/MarkLogic/flexrep'); // Obtain the domain ID from the database used by the Master to enable CPF. const domain = xdmp.eval( 'const dom = require("/MarkLogic/cpf/domains");' + 'fn.data(dom.get("Default Master").xpath("//dom:domain-id"));', null, { 'database' : xdmp.database('Triggers') }); const cfg = flexrep.configurationGet(domain, true); const domainId = flexrep.configurationGetId(cfg); flexrep.pullGet(domainId, true); //Returns the Pull Configuration for the specified domain.
http://marklogic.com/xdmp/privileges/flexrep-admin
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.