admin:foreign-host-get-name( $fh as element(cl:foreign-host) ) as xs: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.
|
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. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.