admin:host-get-foreign-port( $config as element(configuration), $host-id as xs:unsignedLong ) as xs:unsignedInt
This function returns the port used by the specified host to listen for communications from foreign hosts.
Parameters | |
---|---|
config | A configuration specification, typically as returned from one of the Admin module functions. |
host-id | The ID of the domestic host. |
http://marklogic.com/xdmp/privileges/admin/host
http://marklogic.com/xdmp/privileges/admin/host/{id}
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $cfg := admin:get-configuration() let $hid := xdmp:host("master.marklogic.com") return admin:host-get-foreign-port($cfg, $hid) (: Returns the port used by the specified host to listen for foreign communications. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.