Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin:database-get-config-for-foreign-replicas-on-foreign-cluster

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

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


  xquery version "1.0-ml";

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

  let $cfg := admin:get-configuration()
  let $cid := admin:cluster-get-foreign-cluster-ids($cfg)
  return
  admin:database-get-config-for-foreign-replicas-on-foreign-cluster(
     $cfg, $cid)

  (: Returns the database replica configuration for the foreign
     cluster. :)
    

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