MarkLogic 9 Product Documentation
flexrep:pull-get-by-id

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

Summary

This function returns the pull replication configuration for the specified Pull ID.

Parameters
pull-id The ID of the pull replication configuration.
assert Determines whether to generate an error if the pull configuration does not exist. Set to true to generate an error, or false to return an empty sequence if the pull configuration does not exist. The default is false.

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

  flexrep:pull-get-by-id(2261113583548708683)

  (: Returns the pull replication configuration for the specified ID. :)
    

Required Privileges

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

Powered by MarkLogic Server | Terms of Use | Privacy Policy