Loading TOC...

MarkLogic 12 EA 2 Product Documentation
admin.databaseGetConfigForForeignReplicasOnForeignCluster

admin.databaseGetConfigForForeignReplicasOnForeignCluster(
   config as element(configuration),
   foreign-cluster-id as (Number|String)
) as Sequence

Summary

This function returns the replica configuration on a foreign cluster.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
foreign-cluster-id The ID of the foreign cluster containing the replica host.

Required Privileges

This operation requires at least one of the following privileges:

http://marklogic.com/xdmp/privileges/admin/database

http://marklogic.com/xdmp/privileges/admin/database/{id}

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let cid = admin.clusterGetForeignClusterIds(cfg)
  admin.databaseGetConfigForForeignReplicasOnForeignCluster(cfg, fn.head(cid))
    

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