Loading TOC...

admin:foreign-host-get-id

admin:foreign-host-get-id(
   fh as element(cl:foreign-host)
) as xs:unsignedLong

Summary

This function returns the id 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.

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")
  let $fh := admin:foreign-cluster-get-bootstrap-hosts($cfg, $fcl)

  return admin:foreign-host-get-id($fh)

  (: Returns the id of the foreign bootstrap host. :)
    

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