Loading TOC...

flexrep.remoteTargetStatus

flexrep.remoteTargetStatus(
   pull as element(flexrep.pull)
) as element(flexrep.targetStatus)?

Summary

This function returns the status of the target in a pull replication configuration.

Parameters
pull The pull replication configuration containing the pull target (master database).

Example

// Execute on the Replica database.
const flexrep = require('/MarkLogic/flexrep');

  let pullConfig = flexrep.pullGetById(13991089731050212552);

  flexrep.remoteTargetStatus(pullConfig); 

  // Returns the status of the master database from which replica is pulling
  // updates.
   

Required Privileges

http://marklogic.com/xdmp/privileges/flexrep-user

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