admin:foreign-host( $host-id as xs:unsignedLong, $host-name as xs:string, $connect-port as xs:unsignedInt ) as element(cl:foreign-host)
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.
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $cfg := admin:get-configuration() let $fcl := admin:cluster-get-foreign-cluster-id($cfg, "ClusterA") return admin:foreign-host(13134636216063499728, "master.marklogic.com", 7998) (: Configures a host to be used as a foreign cluster bootstrap host. :)