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:foreign-cluster-set-bootstrap-hosts
function as the
bootstrap host for the foreign cluster.
const admin = require('/MarkLogic/admin.xqy'); var cfg = admin.getConfiguration() var fcl = admin.clusterGetForeignClusterId(cfg, "ClusterA") admin.foreignHost(13134636216063499728, "master.marklogic.com", 7998) //Configures a host to be used as a foreign cluster bootstrap host.