MarkLogic 9 Product Documentation
flexrep.configurationGetAlertingUri

flexrep.configurationGetAlertingUri(
   cfg as element(flexrep.configuration)
) as String?

Summary

Get the alerting URI associated with a FlexRep configuration.

Parameters
cfg The replication configuration.

Example

const flexrep = require('/MarkLogic/flexrep');

  // Obtain the domain ID from the database used by the Master to enable CPF.
  const domain = xdmp.eval(
    'const dom = require("/MarkLogic/cpf/domains");' +
      'fn.data(dom.get("Default Master").xpath("//dom:domain-id"));',
       null,
         {
          'database' : xdmp.database('Triggers')
         });

   // Create a replication configuration for the Replicated Content domain.
   const cfg = flexrep.configurationCreate(domain);

flexrep.configurationGetAlertingUri(cfg);
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy