
admin:foreign-host-get-connect-port( $fh as element(cl:foreign-host) ) as xs:unsignedInt
This function returns the number of the port configured for 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-connect-port($fh)
(: Returns the number of the port configured for the foreign bootstrap host. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.