Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin:cluster-get-foreign-cluster-id

admin:cluster-get-foreign-cluster-id(
   $config as element(configuration),
   $name as xs:string
) as xs:unsignedLong

Summary

This function returns the id of the specified foreign cluster.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
name The name of the 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()

  return admin:cluster-get-foreign-cluster-id($cfg, "ClusterA")

  (: Returns the id of the foreign cluster named 'ClusterA'. :)
    

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