
admin.foreignHostGetId( fh as element(cl.foreignHost) ) as (Number|String)
This function returns the id of the foreign bootstrap host.
| Parameters | |
|---|---|
| fh | 
      The foreign host configuration element returned by the 
      
      admin.foreignHost
      or 
      admin.foreignClusterGetBootstrapHosts function.
     | 
	  
  
  const admin = require('/MarkLogic/admin.xqy');
  const cfg = admin.getConfiguration()
  const fcl = admin.clusterGetForeignClusterId(cfg, "ClusterA")
  const fh = admin.foreignClusterGetBootstrapHosts(cfg, fcl)
  admin.foreignHostGetId(fh)
   //Returns the id of the foreign bootstrap host.