Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.clusterGetForeignReplicaDatabases

admin.clusterGetForeignReplicaDatabases(
   config as element(configuration),
   foreign-cluster-id as (Number|String),
   database-ids as (Number|String)[]
) as Sequence

Summary

This function is executed on the master cluster to return the replication configuration for the specified local database to the specified foreign replica cluster.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
foreign-cluster-id The ID of the foreign replica cluster.
database-ids The ID of the master database on the local cluster.

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let dbid = admin.databaseGetId(cfg, "Documents")
  for(let cid of admin.clusterGetForeignClusterIds(cfg).toObject())
    admin.clusterGetForeignReplicaDatabases(cfg, cid, dbid)
     

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