
flexrep.configurationGetDomainName( cfg as element(flexrep.configuration) ) as String
This function returns the domain name associated with the specified replication configuration.
| Parameters | |
|---|---|
| cfg | The replication configuration. |
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.configurationGetDomainName(cfg);
// Returns the domain name for the specified replication configuration.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.