admin.databaseGetConfigForForeignReplicasOnForeignCluster( config as element(configuration), foreign-cluster-id as (Number|String) ) as Sequence
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. |
http://marklogic.com/xdmp/privileges/admin/database
http://marklogic.com/xdmp/privileges/admin/database/{id}
let admin = require("/MarkLogic/admin.xqy") let cfg = admin.getConfiguration() let cid = admin.clusterGetForeignClusterIds(cfg) admin.databaseGetConfigForForeignReplicasOnForeignCluster(cfg, fn.head(cid))