Loading TOC...

flexrep:configuration-set-alerting-uri

flexrep:configuration-set-alerting-uri(
   $cfg as element(flexrep:configuration),
   $uri as xs:string?
) as element(flexrep:configuration)

Summary

Set the alerting URI for a FlexRep configuration. This enables query-based replication to any targets that are configured with a user-id. The alerting URI may be anywhere within the database, however flexrep:domain-alerting-uri() returns a convenient directory withini the FlexRep configuration area.

Parameters
cfg The replication configuration.
uri The alerting configuration URI.

Example


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

flexrep:configuration-insert(
  flexrep:configuration-set-alerting-uri($cfg,
    flexrep:domain-alerting-uri($domain-id)))
    

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