Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.foreignHostGetName

admin.foreignHostGetName(
   fh as element(cl.foreignHost)
) as String

Summary

This function returns the name of the foreign bootstrap host.

Parameters
fh The foreign host configuration element returned by the admin.foreignHost or admin.foreignClusterGetBootstrapHosts function.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  const cfg = admin.getConfiguration()
  const fcl = admin.clusterGetForeignClusterId(cfg, "ClusterA")
  const fh = admin.foreignClusterGetBootstrapHosts(cfg, fcl)
  admin.foreignHostGetName(fh)

   //Returns the name of the foreign bootstrap host. 
    

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