MarkLogic Server 11.0 Product Documentation
flexrep.configurationGetId

flexrep.configurationGetId(
   cfg as element(flexrep.configuration)
) as (Number|String)

Summary

This function returns the ID of the replication 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')
         });

  const cfg = flexrep.configurationGet(domain, true);

  flexrep.configurationGetId(cfg);

  // Returns the ID of the specified replication configuration.
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy