
admin.hostGetForeignPort( config as element(configuration), host-id as (Number|String) ) as Number
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}
const admin = require('/MarkLogic/admin.xqy');
const cfg = admin.getConfiguration()
const hid = xdmp.host("master.marklogic.com")
admin.hostGetForeignPort(cfg, hid)
//Returns the port used by the specified host to listen for foreign
//communications.