Loading TOC...

MarkLogic 10 Product Documentation
flexrep:pull-get

flexrep:pull-get(
   $domain-id as xs:unsignedLong,
   [$assert as xs:boolean]
) as element(flexrep:pull)*

Summary

This function returns the pull replication configuration for the specified domain.

Parameters
domain-id The ID of the domain containing the replicated content. This value is obtained from the Trigger database used by the Master database.
assert Set to true to throw an exception if the configuration does not exist. The default value is false.

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";

  flexrep:pull-get(9535475951259984368,  fn:true())

  (: Returns the Pull Configuration for the specified domain. :)
     

Required Privileges

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

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