admin.foreignHostGetConnectPort

admin.foreignHostGetConnectPort(
   fh as element(cl.foreignHost)
) as Number

Summary

This function returns the number of the port configured for 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.foreignHostGetConnectPort(fh)

  //Returns the number of the port configured for the foreign bootstrap host. 
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy