Loading TOC...

MarkLogic Server 11.0 Product Documentation
flexrep.pullGetTargetId

flexrep.pullGetTargetId(
   pull as element(flexrep.pull)
) as (Number|String)

Summary

This function returns the ID of the target associated with the specified pull configuration.

Parameters
pull The pull replication configuration returned by the flexrep:pull-get function.

Example

// Execute against a Replica database. 
const flexrep = require('/MarkLogic/flexrep');

  for (let pullConfig of flexrep.pullGetAll()) {
    flexrep.pullGetTargetId(pullConfig);
  }

//Returns the target IDs associated with each pull configuration.
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.