MarkLogic Server 11.0 Product Documentation
admin:cluster-get-foreign-master-database

admin:cluster-get-foreign-master-database(
   $config as element(configuration),
   $foreign-cluster-id as xs:unsignedLong,
   $database-ids as xs:unsignedLong*
) as element(db:foreign-master)*

Summary

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

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

Example


  xquery version "1.0-ml";

  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

  let $cfg := admin:get-configuration()
  let $dbid := admin:database-get-id($cfg, "Documents")
  let $cid := admin:cluster-get-foreign-cluster-ids($cfg)

  return admin:cluster-get-foreign-master-database($cfg, $cid, $dbid)

  (: Returns the database replication configuration for the Documents
     database on the master cluster. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy