Loading TOC...

MarkLogic 12 EA 1 Product Documentation
admin.databaseForeignMasterGetClusterId

admin.databaseForeignMasterGetClusterId(
   foreign-master as element(db.foreignMaster)
) as (Number|String)

Summary

This function returns the id of the cluster from the specified foreign master configuration.

Parameters
foreign-master The foreign master configuration.

Example


  let admin = require("/MarkLogic/admin.xqy")
  let cfg = admin.getConfiguration()
  let fmaster = admin.databaseGetForeignMaster(cfg, xdmp.database("Documents"))
  admin.databaseForeignMasterGetClusterId(fmaster)
    

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