MarkLogic Server 11.0 Product Documentation
admin:foreign-host-get-name

admin:foreign-host-get-name(
   $fh as element(cl:foreign-host)
) as xs:string

Summary

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.

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-name($fh)

  (: Returns the name of the foreign bootstrap host. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy