admin.foreignHostGetName( fh as element(cl.foreignHost) ) as String
This function returns the name of 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.
|
const admin = require('/MarkLogic/admin.xqy'); var cfg = admin.getConfiguration() var fcl = admin.clusterGetForeignClusterId(cfg, "ClusterA") var fh = admin.foreignClusterGetBootstrapHosts(cfg, fcl) admin.foreignHostGetName(fh) //Returns the name of the foreign bootstrap host.