flexrep.pullSetUrls

flexrep.pullSetUrls(
   pull as element(flexrep.pull),
   urls as String[]
) as element(flexrep.pull)

Summary

This function sets the URLs for the specified pull configuration.

Parameters
pull The pull replication configuration returned by the flexrep:pull-get function.
urls THe URLs to set for the pull configuration.

Example

// Execute against a Replica database.
const flexrep = require('/MarkLogic/flexrep');
  
  declareUpdate();
  let pullConfig = flexrep.pullGet(13991089731050213376, true);
  let pullCfg = flexrep.pullSetName(pullConfig, "http://server321:8010/");

  flexrep.pullInsert(pullCfg); 

  // Sets the URL for the specified Pull Configuration to "http://server321:8010/".
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy