admin.foreignHost( host-id as (Number|String), host-name as String, connect-port as Number ) as element(cl.foreignHost)
This function configures a foreign host to be set by the
admin.foreignClusterSetBootstrapHosts
function as the bootstrap host for the foreign cluster.
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.