Loading TOC...

MarkLogic 12 EA 1 Product Documentation
admin.foreignHost

admin.foreignHost(
   host-id as (Number|String),
   host-name as String,
   connect-port as Number
) as element(cl.foreignHost)

Summary

This function configures a foreign host to be set by the admin.foreignClusterSetBootstrapHosts function as the bootstrap host for the foreign cluster.

Parameters
host-id The ID of the foreign host.
host-name The name of the foreign host.
connect-port The port on which the foreign bootstrap host will listen for connections. This should be port 7998 in most situations.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  const cfg = admin.getConfiguration()
  const fcl = admin.clusterGetForeignClusterId(cfg, "ClusterA")
  admin.foreignHost(13134636216063499728,
                            "master.marklogic.com",
                            7998)

  //Configures a host to be used as a foreign cluster bootstrap host. 
    

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