Loading TOC...

MarkLogic 12 EA 2 Product Documentation
admin.clusterGetForeignClusterId

admin.clusterGetForeignClusterId(
   config as element(configuration),
   name as String
) as (Number|String)

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

  
  const admin = require('/MarkLogic/admin.xqy');
  const cfg = admin.getConfiguration()
  admin.clusterGetForeignClusterId(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.