Loading TOC...

admin:foreign-host

admin:foreign-host(
   $host-id as xs:unsignedLong,
   $host-name as xs:string,
   $connect-port as xs:unsignedInt
) as element(cl:foreign-host)

Summary

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.

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


  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. :)
    

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