Loading TOC...

MarkLogic Server 11.0 Product Documentation
flexrep:remote-target-status

flexrep:remote-target-status(
   $pull as element(flexrep:pull)
) as element(flexrep:target-status)?

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. :) 
  xquery version "1.0-ml"; 

  import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" 
      at "/MarkLogic/flexrep.xqy";

  let $pullconfig := flexrep:pull-get-by-id(2261113583548708683)

  return flexrep:remote-target-status($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.