Loading TOC...

MarkLogic Server 11.0 Product Documentation
flexrep:pull-get-target-id

flexrep:pull-get-target-id(
   $pull as element(flexrep:pull)
) as xs:unsignedLong

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

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

  for $pull-config in flexrep:pull-get-all() 

  return flexrep:pull-get-target-id($pull-config)

  (: 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.