flexrep:pull-set-urls( $pull as element(flexrep:pull), $urls as xs:string+ ) as element(flexrep:pull)
This function sets the URLs for the specified pull configuration.
Parameters | |
---|---|
pull |
The pull replication configuration returned by the
flexrep:pull-get function.
|
urls | THe URLs to set for the pull configuration. |
(: Execute against a Replica database. :) xquery version "1.0-ml"; import module namespace flexrep = "http://marklogic.com/xdmp/flexible-replication" at "/MarkLogic/flexrep.xqy"; let $pull-config := flexrep:pull-get(9535475951259984368, fn:true()) let $pull-config := flexrep:pull-set-urls($pull-config, "http://server321:8010/") return flexrep:pull-insert($pull-config) (: Sets the URL for the specified Pull Configuration to "http://server321:8010/". :)