Loading TOC...

MarkLogic 9 Product Documentation
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:foreign-host or admin:foreign-cluster-get-bootstrap-hosts function.

Example

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

  //Returns the number of the port configured for the foreign bootstrap host. 
    

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